Explorar o código

cube_vert: documented “hack”.

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
89324eb01e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/shaders/ShaderLib/cube_vert.glsl

+ 1 - 1
src/renderers/shaders/ShaderLib/cube_vert.glsl

@@ -9,6 +9,6 @@ void main() {
 	#include <begin_vertex>
 	#include <project_vertex>
 
-	gl_Position.z = gl_Position.w;
+	gl_Position.z = gl_Position.w; // set z to camera.far
 
 }