File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples_tests/22.RaytracedAO Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ void main()
154
154
}
155
155
156
156
// decode vis buffer
157
- vec3 emissive = vec3(0.0,1 .0,0.0);
157
+ vec3 emissive = vec3(0.0,0 .0,0.0);
158
158
{
159
159
const uint objectID = visBuffer[0]&0x7fffffffu;
160
160
const uint triangleID = visBuffer[1];
@@ -163,7 +163,7 @@ void main()
163
163
nbl_glsl_MC_oriented_material_t material = nbl_glsl_MC_material_data_t_getOriented(InstData.data[objectID].material,frontfacing);
164
164
165
165
// use loaded data
166
- // emissive = nbl_glsl_MC_oriented_material_t_getEmissive(material);
166
+ emissive = nbl_glsl_MC_oriented_material_t_getEmissive(material);
167
167
gcs = nbl_glsl_MC_oriented_material_t_getGenChoiceStream(material);
168
168
rnps = nbl_glsl_MC_oriented_material_t_getRemAndPdfStream(material);
169
169
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ void main()
34
34
35
35
const bool frontface = true; // TODO: how to determine frontface easily from radeon rays!? barycentrics? ray direction vs. oriented cross product?
36
36
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;
38
38
39
39
// hit buffer needs clearing
40
40
hits[rayID].shapeid = -1;
You can’t perform that action at this time.
0 commit comments