Explorar o código

Docs: Added loop unroll example for ShaderMaterial

Mugen87 %!s(int64=7) %!d(string=hai) anos
pai
achega
631d4331c9
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      docs/api/materials/ShaderMaterial.html

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

@@ -49,12 +49,20 @@
 				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.
+						The loop has to be [link:https://en.wikipedia.org/wiki/Normalized_loop normalized/well-behaved].
 					</li>
 					<li>
 						The loop variable must be *i*.
 					</li>
 				</ul>
+				<code>
+		#pragma unroll_loop
+		for ( int i = 0; i < 10; i ++ ) {
+
+			// ...
+
+		}
+				</code>
 			</li>
 		</ul>
 		</div>