소스 검색

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
 				[page:RawShaderMaterial] instead of this class.
 			</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>
 		</div>