mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:49:33 +02:00
Merge pull request #12276 from jherico/RC63_haze_hotfix
RC63 Hotfix: Fix haze parameters uniform buffer size
This commit is contained in:
commit
eebbb7e563
1 changed files with 3 additions and 2 deletions
|
@ -117,13 +117,14 @@ namespace graphics {
|
||||||
|
|
||||||
// Amount of background (skybox) to display, overriding the haze effect for the background
|
// Amount of background (skybox) to display, overriding the haze effect for the background
|
||||||
float hazeBackgroundBlend{ INITIAL_HAZE_BACKGROUND_BLEND };
|
float hazeBackgroundBlend{ INITIAL_HAZE_BACKGROUND_BLEND };
|
||||||
|
|
||||||
// The haze attenuation exponents used by both fragment and directional light attenuation
|
// The haze attenuation exponents used by both fragment and directional light attenuation
|
||||||
float hazeRangeFactor{ convertHazeRangeToHazeRangeFactor(INITIAL_HAZE_RANGE) };
|
float hazeRangeFactor{ convertHazeRangeToHazeRangeFactor(INITIAL_HAZE_RANGE) };
|
||||||
float hazeHeightFactor{ convertHazeAltitudeToHazeAltitudeFactor(INITIAL_HAZE_HEIGHT) };
|
float hazeHeightFactor{ convertHazeAltitudeToHazeAltitudeFactor(INITIAL_HAZE_HEIGHT) };
|
||||||
|
|
||||||
float hazeKeyLightRangeFactor{ convertHazeRangeToHazeRangeFactor(INITIAL_KEY_LIGHT_RANGE) };
|
float hazeKeyLightRangeFactor{ convertHazeRangeToHazeRangeFactor(INITIAL_KEY_LIGHT_RANGE) };
|
||||||
|
|
||||||
float hazeKeyLightAltitudeFactor{ convertHazeAltitudeToHazeAltitudeFactor(INITIAL_KEY_LIGHT_ALTITUDE) };
|
float hazeKeyLightAltitudeFactor{ convertHazeAltitudeToHazeAltitudeFactor(INITIAL_KEY_LIGHT_ALTITUDE) };
|
||||||
|
// Padding required to align the structure to sizeof(vec4)
|
||||||
|
vec3 __padding;
|
||||||
|
|
||||||
Parameters() {}
|
Parameters() {}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue