mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:27:04 +02:00
add comment for SKYBOX_DISTANCE
This commit is contained in:
parent
05661c6007
commit
b1d991deb2
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ void main(void) {
|
||||||
mat4 viewInverse = getViewInverse();
|
mat4 viewInverse = getViewInverse();
|
||||||
|
|
||||||
<@if HIFI_USE_BACKGROUND@>
|
<@if HIFI_USE_BACKGROUND@>
|
||||||
fragPositionES = vec4(-32000.0 * normalize(fragPositionES.xyz), 1.0);
|
// We choose an arbitrary large number > BLEND_DISTANCE in Haze.slh
|
||||||
|
const float SKYBOX_DISTANCE = 32000.0;
|
||||||
|
fragPositionES = vec4(-SKYBOX_DISTANCE * normalize(fragPositionES.xyz), 1.0);
|
||||||
<@endif@>
|
<@endif@>
|
||||||
|
|
||||||
vec4 fragPositionWS = viewInverse * fragPositionES;
|
vec4 fragPositionWS = viewInverse * fragPositionES;
|
||||||
|
|
Loading…
Reference in a new issue