diff options
Diffstat (limited to 'src/Runtime/res/effectlib/evalLightmaps.glsllib')
-rw-r--r-- | src/Runtime/res/effectlib/evalLightmaps.glsllib | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Runtime/res/effectlib/evalLightmaps.glsllib b/src/Runtime/res/effectlib/evalLightmaps.glsllib index 1486cadc..1a9bc997 100644 --- a/src/Runtime/res/effectlib/evalLightmaps.glsllib +++ b/src/Runtime/res/effectlib/evalLightmaps.glsllib @@ -30,27 +30,27 @@ vec4 evalLightmap( in sampler2D sampler, in vec3 inCoords, in vec4 rotScale, in vec3 offset ) { - vec3 uTransform = vec3(rotScale.x, rotScale.y, offset.x); - vec3 vTransform = vec3(rotScale.z, rotScale.w, offset.y); + vec3 uTransform = vec3(rotScale.x, rotScale.y, offset.x); + vec3 vTransform = vec3(rotScale.z, rotScale.w, offset.y); - vec2 transfCoord = vec2( dot( uTransform, inCoords ), dot( vTransform, inCoords ) ); + vec2 transfCoord = vec2( dot( uTransform, inCoords ), dot( vTransform, inCoords ) ); - vec4 value = texture( sampler, transfCoord.xy); + vec4 value = texture( sampler, transfCoord.xy); - return value; + return value; } vec4 evalIndirectLightmap( in sampler2D sampler, in vec3 inCoords, in vec4 rotScale, in vec3 offset ) { - return evalLightmap( sampler, inCoords, rotScale, offset ); + return evalLightmap( sampler, inCoords, rotScale, offset ); } vec4 evalRadiosityLightmap( in sampler2D sampler, in vec3 inCoords, in vec4 rotScale, in vec3 offset ) { - return evalLightmap( sampler, inCoords, rotScale, offset ); + return evalLightmap( sampler, inCoords, rotScale, offset ); } vec4 evalShadowLightmap( in sampler2D sampler, in vec3 inCoords, in vec4 rotScale, in vec3 offset ) { - return evalLightmap( sampler, inCoords, rotScale, offset ); + return evalLightmap( sampler, inCoords, rotScale, offset ); }
\ No newline at end of file |