소스 검색

Merge pull request #18802 from Mugen87/dev43

Examples: Fix webgl_buffergeometry_instancing_lambert.
Mr.doob 5 년 전
부모
커밋
9c7b4f496a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;
+
 			}
 			`;