浏览代码

Docs: Added loop unroll note to ShaderMaterial

Mugen87 7 年之前
父节点
当前提交
ca38f19374
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/api/materials/ShaderMaterial.html

+ 4 - 0
docs/api/materials/ShaderMaterial.html

@@ -44,6 +44,10 @@
 				If you don't want the [page:WebGLProgram] to add anything to your shader code, you can use
 				If you don't want the [page:WebGLProgram] to add anything to your shader code, you can use
 				[page:RawShaderMaterial] instead of this class.
 				[page:RawShaderMaterial] instead of this class.
 			</li>
 			</li>
+			<li>
+				You can use the directive #pragma unroll_loop in order to unroll a *for* loop in GLSL by the shader preprocessor.
+				The directive has to be placed right above the loop. The loop itself has to be normalized/well-behaved.
+			</li>
 		</ul>
 		</ul>
 		</div>
 		</div>