Skip to content

Commit

Permalink
Update VRSLDMX.cginc
Browse files Browse the repository at this point in the history
  • Loading branch information
AcChosen committed Feb 16, 2023
1 parent a49e54a commit 293ba29
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 293ba29

Please sign in to comment.