mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 12:10:44 +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@>
|
||||
vec4 skytexel = textureCubeLod(skyboxMap, direction, lod * textureQueryLevels(skyboxMap));
|
||||
<@else@>
|
||||
const int NUM_LEVELS = 10;
|
||||
vec4 skytexel = textureCubeLod(skyboxMap, direction, lod * NUM_LEVELS);
|
||||
vec4 skytexel = textureCube(skyboxMap, direction);
|
||||
<@endif@>
|
||||
return skytexel;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue