1
0
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:
AcChosen 2023-02-16 13:10:06 -05:00
parent a49e54ac38
commit 293ba29c6c

View File

@ -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);