fix: room brightness slider now applies 3x multiplier to ambient light
The ambient light was initialized with intensity * 3.0 but the slider and preset callbacks set raw value without the multiplier, making the setting appear to do nothing. Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
parent
a8f48a7897
commit
944076733e
|
|
@ -196,7 +196,7 @@ export class HudController {
|
|||
this._bindRange('opt-aura', 'aura');
|
||||
this._bindRange('opt-field', 'field', v => { obs._fieldMat.opacity = v; });
|
||||
this._bindRange('opt-waves', 'waves');
|
||||
this._bindRange('opt-ambient', 'ambient', v => { obs._ambient.intensity = v; });
|
||||
this._bindRange('opt-ambient', 'ambient', v => { obs._ambient.intensity = v * 3.0; });
|
||||
this._bindRange('opt-reflect', 'reflect', v => {
|
||||
obs._floorMat.roughness = 1.0 - v * 0.7;
|
||||
obs._floorMat.metalness = v * 0.5;
|
||||
|
|
@ -346,7 +346,7 @@ export class HudController {
|
|||
obs._applyPostSettings();
|
||||
obs._renderer.toneMappingExposure = obs.settings.exposure;
|
||||
obs._fieldMat.opacity = obs.settings.field;
|
||||
obs._ambient.intensity = obs.settings.ambient;
|
||||
obs._ambient.intensity = obs.settings.ambient * 3.0;
|
||||
obs._floorMat.roughness = 1.0 - obs.settings.reflect * 0.7;
|
||||
obs._floorMat.metalness = obs.settings.reflect * 0.5;
|
||||
obs._camera.fov = obs.settings.fov;
|
||||
|
|
|
|||
Loading…
Reference in New Issue