Skip to content

Commit 96f6fea

Browse files
committed
add renderer switch to helide to ignore sub-optimal ambientRadiance default
1 parent 3f978c4 commit 96f6fea

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/devices/helide/HelideDefinitions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@
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"],

src/devices/helide/renderer/Renderer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

123127
PixelSample Renderer::renderSample(

0 commit comments

Comments
 (0)