Content deleted Content added
m linking |
Fixed "inveresqrt" typo |
||
Line 71:
Similar to the [[C (programming language)|C programming language]], GLSL supports loops and branching, for instance: if-else, for, switch, etc. Recursion is forbidden and checked for during compilation.
User-defined functions are supported and built-in functions are provided. The graphics card manufacturer may optimize built-in functions at the hardware level. Many of these functions are similar to those in the math library of the C programming language while others are specific to graphics programming. Most of the built-in functions and operators, can operate both on scalars and vectors (up to 4 elements), for one or both operands. Common built-in functions that are provided and are commonly used for graphics purposes are: {{code|mix}}, {{code|smoothstep}}, {{code|normalize}}, {{code|
=== Preprocessor ===
|