mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Use the texture matrix
This commit is contained in:
parent
3e854a84a2
commit
e845c576d4
@ -51,7 +51,7 @@ void main(void)
|
|||||||
vec3 viewNormal = normalize((gl_NormalMatrix * gl_Normal).xyz);
|
vec3 viewNormal = normalize((gl_NormalMatrix * gl_Normal).xyz);
|
||||||
|
|
||||||
#if @diffuseMap
|
#if @diffuseMap
|
||||||
diffuseMapUV = gl_MultiTexCoord@diffuseMapUV.xy;
|
diffuseMapUV = (gl_TextureMatrix[@diffuseMapUV] * gl_MultiTexCoord@diffuseMapUV).xy;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
lighting = doLighting(viewPos.xyz, viewNormal, gl_Color.xyz);
|
lighting = doLighting(viewPos.xyz, viewNormal, gl_Color.xyz);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user