Difference between revisions of "Lua Shader Texture Lookup Functions"
From GiderosMobile
(Created page with "Texture lookup functions are available to vertex, geometry, and fragment shaders. However, the level of detail is not implicitly computed for vertex or geometry shaders. {|...") |
|||
Line 7: | Line 7: | ||
| texture2D || texture2D(fTexture,fTexCoord) || Example | | texture2D || texture2D(fTexture,fTexCoord) || Example | ||
|} | |} | ||
+ | |||
+ | {{SHADERS}} |
Latest revision as of 01:46, 7 November 2023
Texture lookup functions are available to vertex, geometry, and fragment shaders. However, the level of detail is not implicitly computed for vertex or geometry shaders.
Function | Syntax | Description |
---|---|---|
texture2D | texture2D(fTexture,fTexCoord) | Example |