Browse Source

Merge pull request #13290 from Chaosus/projectionfix

Fix invalid transform when skip_vertex_transform used
Rémi Verschelde 7 năm trước cách đây
mục cha
commit
4a1d1cbbb4
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      drivers/gles3/shaders/scene.glsl

+ 0 - 5
drivers/gles3/shaders/scene.glsl

@@ -458,12 +458,7 @@ VERTEX_SHADER_CODE
 
 
 #endif //RENDER_DEPTH
 #endif //RENDER_DEPTH
 
 
-
-#if !defined(SKIP_TRANSFORM_USED) && !defined(RENDER_DEPTH_DUAL_PARABOLOID)
 	gl_Position = projection_matrix * vec4(vertex_interp,1.0);
 	gl_Position = projection_matrix * vec4(vertex_interp,1.0);
-#else
-	gl_Position = vertex;
-#endif
 
 
 	position_interp=gl_Position;
 	position_interp=gl_Position;