mirror of
https://github.com/AcChosen/VR-Stage-Lighting.git
synced 2024-11-23 23:21:07 +01:00
Update VRSLDMX.cgin function names
This commit is contained in:
parent
293ba29c6c
commit
392aa19392
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
2.3.0
|
||||
2.3.1
|
@ -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": {},
|
||||
|
Loading…
Reference in New Issue
Block a user