Browse Source

Docs: Update ShaderMaterial

Mugen87 7 years ago
parent
commit
bfe5b6689e
1 changed files with 9 additions and 1 deletions
  1. 9 1
      docs/api/materials/ShaderMaterial.html

+ 9 - 1
docs/api/materials/ShaderMaterial.html

@@ -46,7 +46,15 @@
 			</li>
 			</li>
 			<li>
 			<li>
 				You can use the directive #pragma unroll_loop in order to unroll a *for* loop in GLSL by the shader preprocessor.
 				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.
+				The directive has to be placed right above the loop. The loop itself has to correspond to a defined standard.
+				<ul>
+					<li>
+						The loop has to be normalized/well-behaved.
+					</li>
+					<li>
+						The loop variable must be *i*.
+					</li>
+				</ul>
 			</li>
 			</li>
 		</ul>
 		</ul>
 		</div>
 		</div>