mirror of
https://github.com/AcChosen/VR-Stage-Lighting.git
synced 2024-11-23 23:21:07 +01:00
Update VRSLDMX.cginc
This commit is contained in:
parent
a49e54ac38
commit
293ba29c6c
@ -56,6 +56,11 @@ uint GetDMXChannel()
|
||||
return (uint) round(UNITY_ACCESS_INSTANCED_PROP(Props, _DMXChannel));
|
||||
}
|
||||
|
||||
int ConvertToRawDMXChannel(int chan, int universe)
|
||||
{
|
||||
return abs(chan + ((universe-1) * 512) + ((universe-1) * 8));
|
||||
}
|
||||
|
||||
uint getNineUniverseMode()
|
||||
{
|
||||
return (uint) UNITY_ACCESS_INSTANCED_PROP(Props, _NineUniverseMode);
|
||||
|
Loading…
Reference in New Issue
Block a user