Skip to content

Commit 1f334b8

Browse files
committed
Brought back proper scene rendering
1 parent cb528ef commit 1f334b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples_tests/22.RaytracedAO/raygen.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void main()
154154
}
155155

156156
// decode vis buffer
157-
vec3 emissive = vec3(0.0,1.0,0.0);
157+
vec3 emissive = vec3(0.0,0.0,0.0);
158158
{
159159
const uint objectID = visBuffer[0]&0x7fffffffu;
160160
const uint triangleID = visBuffer[1];
@@ -163,7 +163,7 @@ void main()
163163
nbl_glsl_MC_oriented_material_t material = nbl_glsl_MC_material_data_t_getOriented(InstData.data[objectID].material,frontfacing);
164164

165165
// use loaded data
166-
//emissive = nbl_glsl_MC_oriented_material_t_getEmissive(material);
166+
emissive = nbl_glsl_MC_oriented_material_t_getEmissive(material);
167167
gcs = nbl_glsl_MC_oriented_material_t_getGenChoiceStream(material);
168168
rnps = nbl_glsl_MC_oriented_material_t_getRemAndPdfStream(material);
169169

examples_tests/22.RaytracedAO/resolve.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void main()
3434

3535
const bool frontface = true; // TODO: how to determine frontface easily from radeon rays!? barycentrics? ray direction vs. oriented cross product?
3636
nbl_glsl_MC_oriented_material_t material = nbl_glsl_MC_material_data_t_getOriented(InstData.data[hit.shapeid].material,frontface);
37-
//color += nbl_glsl_MC_oriented_material_t_getEmissive(material)*thoughput;
37+
color += nbl_glsl_MC_oriented_material_t_getEmissive(material)*thoughput;
3838

3939
// hit buffer needs clearing
4040
hits[rayID].shapeid = -1;

0 commit comments

Comments
 (0)