Difference between revisions of "Lua Shader Language Helper Functions"
From GiderosMobile
(Created page with "{| class="wikitable" |- ! Function !! Syntax !! Description |- | discard || discard() || The discard function is only allowed within fragment shaders. It can be used within a...") |
|||
| Line 5: | Line 5: | ||
| discard || discard() || The discard function is only allowed within fragment shaders. It can be used within a fragment shader to abandon the operation on the current fragment. This function causes the fragment to be discarded and no updates to any buffers will occur. | | discard || discard() || The discard function is only allowed within fragment shaders. It can be used within a fragment shader to abandon the operation on the current fragment. This function causes the fragment to be discarded and no updates to any buffers will occur. | ||
|} | |} | ||
| + | |||
| + | {{SHADERS}} | ||
Latest revision as of 01:43, 7 November 2023
| Function | Syntax | Description |
|---|---|---|
| discard | discard() | The discard function is only allowed within fragment shaders. It can be used within a fragment shader to abandon the operation on the current fragment. This function causes the fragment to be discarded and no updates to any buffers will occur. |