mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 21:03:27 +02:00
Fix glsl failed compilation on Mac
This commit is contained in:
parent
f2c4e04a5a
commit
67b9dd248d
1 changed files with 39 additions and 40 deletions
|
@ -20,8 +20,7 @@ vec4 evalSkyboxLight(vec3 direction, float lod) {
|
||||||
<@if GPU_TRANSFORM_PROFILE == GPU_CORE@>
|
<@if GPU_TRANSFORM_PROFILE == GPU_CORE@>
|
||||||
vec4 skytexel = textureCubeLod(skyboxMap, direction, lod * textureQueryLevels(skyboxMap));
|
vec4 skytexel = textureCubeLod(skyboxMap, direction, lod * textureQueryLevels(skyboxMap));
|
||||||
<@else@>
|
<@else@>
|
||||||
const int NUM_LEVELS = 10;
|
vec4 skytexel = textureCube(skyboxMap, direction);
|
||||||
vec4 skytexel = textureCubeLod(skyboxMap, direction, lod * NUM_LEVELS);
|
|
||||||
<@endif@>
|
<@endif@>
|
||||||
return skytexel;
|
return skytexel;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue