Browse Source

Merge pull request #18802 from Mugen87/dev43

Examples: Fix webgl_buffergeometry_instancing_lambert.
Mr.doob 5 years ago
parent
commit
9c7b4f496a
1 changed files with 4 additions and 0 deletions
  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;
+
 			}
 			`;