瀏覽代碼

Add missing instanced comment to example

Olli Etuaho 6 年之前
父節點
當前提交
7b23555d86
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/webgl_buffergeometry_instancing_lambert.html

+ 2 - 1
examples/webgl_buffergeometry_instancing_lambert.html

@@ -84,6 +84,7 @@
 			`
 			#define LAMBERT
 
+			// instanced
 			attribute vec3 instanceOffset;
 			attribute vec3 instanceColor;
 			attribute float instanceScale;
@@ -128,8 +129,8 @@
 				#include <defaultnormal_vertex>
 
 				#include <begin_vertex>
-				// position instanced
 
+				// position instanced
 				transformed *= instanceScale;
 				transformed = transformed + instanceOffset;