Skip to content

Commit

Permalink
Update VRSLDMX.cgin function names
Browse files Browse the repository at this point in the history
  • Loading branch information
AcChosen committed Feb 17, 2023
1 parent 293ba29 commit 392aa19
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ sampler2D _Udon_DMXGridStrobeTimer, _Udon_DMXGridSpinTimer;
uniform float4 _Udon_DMXGridStrobeTimer_TexelSize, _Udon_DMXGridSpinTimer_TexelSize;
uint _EnableCompatibilityMode, _EnableVerticalMode;

float invLerp(float from, float to, float value)
float VRSL_invLerp(float from, float to, float value)
{
return (value - from) / (to - from);
}

float remap(float origFrom, float origTo, float targetFrom, float targetTo, float value)
float VRSL_remap(float origFrom, float origTo, float targetFrom, float targetTo, float value)
{
float rel = invLerp(origFrom, origTo, value);
float rel = VRSL_invLerp(origFrom, origTo, value);
return lerp(targetFrom, targetTo, rel);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CustomRenderTexture:
m_InitMaterial: {fileID: 0}
m_InitColor: {r: 0, g: 0, b: 0, a: 1}
m_InitTexture: {fileID: 0}
m_UpdateMode: 2
m_UpdateMode: 1
m_InitializationMode: 0
m_UpdateZoneSpace: 0
m_CurrentUpdateZoneSpace: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.3.1
2 changes: 1 addition & 1 deletion Packages/com.acchosen.vr-stage-lighting/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.acchosen.vr-stage-lighting",
"displayName": "VR Stage Lighting",
"version": "2.3.0",
"version": "2.3.1",
"description": "A collection of HLSL shaders, UdonSharp scripts, 3D models, prefabs, and assets designed to emulate the real control, quality, and complexity of professional stage lighting into VRChat in as many ways as possible.",
"gitDependencies": {},
"vpmDependencies": {},
Expand Down

0 comments on commit 392aa19

Please sign in to comment.