Explorar o código

Simplify code

WestLangley %!s(int64=7) %!d(string=hai) anos
pai
achega
e3f654df67
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/renderers/shaders/ShaderLib/background_vert.glsl

+ 1 - 2
src/renderers/shaders/ShaderLib/background_vert.glsl

@@ -5,7 +5,6 @@ void main() {
 
 
 	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
 	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
 
 
-	gl_Position = vec4( position, 1.0 );
-	gl_Position.z = 1.0;
+	gl_Position = vec4( position.xy, 1.0, 1.0 );
 
 
 }
 }

粤ICP备19079148号