mirror of
https://github.com/AcChosen/VR-Stage-Lighting.git
synced 2025-02-25 21:58:09 +01:00
Updated VRSL DMX: Creating Custom DMX Shaders (markdown)
parent
51060d1d39
commit
8c7a75f935
@ -99,7 +99,7 @@ The general use case, however, will be to use the `ReadDMX()` function with `Get
|
||||
|
||||
## Example Code
|
||||
|
||||
It is recommended, if possible, to get the DMX data in the vertex shader rather than the fragment shader. This is because since there is no UV mapping involved when sampling, it is generally faster to sample the data in the vertex shader and send it to the fragment shader through the v2f struct.
|
||||
It is recommended, if possible, to get the DMX data in the vertex shader rather than the fragment shader. This is because since there is no UV mapping involved when sampling, it is generally faster to sample the data in the vertex shader and send it to the fragment shader through the v2f struct. (If its not possible, all of the functions will still work in the fragment shader as normal).
|
||||
|
||||
Here is an example:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user