diff --git a/files/shaders/objects_vertex.glsl b/files/shaders/objects_vertex.glsl index b1004aad3..297941172 100644 --- a/files/shaders/objects_vertex.glsl +++ b/files/shaders/objects_vertex.glsl @@ -68,7 +68,7 @@ void main(void) #endif #if @detailMap - detailMapUV = (gl_TextureMatrix[@detailMap] * gl_MultiTexCoord@detailMap).xy; + detailMapUV = (gl_TextureMatrix[@detailMapUV] * gl_MultiTexCoord@detailMapUV).xy; #endif #if @emissiveMap