File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 9191 ],
9292 "description" : " visualization modes (most for debugging)"
9393 },
94+ {
95+ "name" : " ignoreAmbientLighting" ,
96+ "types" : [" ANARI_BOOL" ],
97+ "tags" : [],
98+ "default" : true ,
99+ "description" : " ignore 'ambientRaidance' and 'ambientColor' parameters on the renderer"
100+ },
94101 {
95102 "name" : " eyeLightBlendRatio" ,
96103 "types" : [" ANARI_FLOAT32" ],
Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ void Renderer::commitParameters()
118118 m_mode = renderModeFromString (getParamString (" mode" , " default" ));
119119 m_taskGrainSize.x = getParam<int32_t >(" taskGrainSizeWidth" , 4 );
120120 m_taskGrainSize.y = getParam<int32_t >(" taskGrainSizeHeight" , 4 );
121+
122+ bool ignoreAmbientLighting = getParam<bool >(" ignoreAmbientLighting" , true );
123+ if (ignoreAmbientLighting)
124+ m_ambientRadiance = 1 .f ;
121125}
122126
123127PixelSample Renderer::renderSample (
You can’t perform that action at this time.
0 commit comments