Ver Fonte

Examples: Fix webgl_buffergeometry_instancing_lambert.

Mugen87 há 5 anos atrás
pai
commit
27d4588251
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      examples/webgl_buffergeometry_instancing_lambert.html

+ 4 - 0
examples/webgl_buffergeometry_instancing_lambert.html

@@ -49,6 +49,8 @@
 			#include <logdepthbuf_pars_vertex>
 			#include <clipping_planes_pars_vertex>
 
+			varying vec2 vHighPrecisionZW;
+
 			void main() {
 
 				#include <uv_vertex>
@@ -76,6 +78,8 @@
 				#include <logdepthbuf_vertex>
 				#include <clipping_planes_vertex>
 
+				vHighPrecisionZW = gl_Position.zw;
+
 			}
 			`;