Skip to content

Commit

Permalink
Updated Amplify Functions to be linear compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
acchosen2 committed Jun 26, 2024
1 parent f521779 commit 3c9fc5c
Show file tree
Hide file tree
Showing 19 changed files with 379 additions and 334 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1191,74 +1191,6 @@ Transform:
- {fileID: 110704968}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &344241843
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalPosition.y
value: 2.089
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalPosition.z
value: 3.18
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5341137405874932606, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6013984913286505017, guid: ea8d0e415afa42c4599dc865e6b3f615,
type: 3}
propertyPath: m_Name
value: DMX Value Watcher
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: ea8d0e415afa42c4599dc865e6b3f615, type: 3}
--- !u!1001 &437806082
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -7426,4 +7358,3 @@ SceneRoots:
- {fileID: 649714375}
- {fileID: 1611477621}
- {fileID: 885735502}
- {fileID: 344241843}
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ MonoBehaviour:
m_Name: VRSL-GetRGBValues
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n470.2857;508.5714;1335;515;106.1047;435.1141;1.286721;False;False\nNode;AmplifyShaderEditor.DynamicAppendNode;9;362,-13;Inherit;False;COLOR;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;COLOR;0\nNode;AmplifyShaderEditor.IntNode;46;-503.589,10.23071;Inherit;False;Constant;_Int1;Int
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n573.1429;350.8571;1206.286;666.4286;1083.553;530.1476;1.286721;True;False\nNode;AmplifyShaderEditor.DynamicAppendNode;9;362,-13;Inherit;False;COLOR;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;COLOR;0\nNode;AmplifyShaderEditor.IntNode;46;-503.589,10.23071;Inherit;False;Constant;_Int1;Int
1;3;0;Create;True;0;0;0;False;0;False;1;0;False;0;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;7;-686,-119;Inherit;False;Channel
Increment;0;3;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;4;-656,-202;Inherit;False;DMX
Channel;0;1;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;37;-369.7607,-89.33798;Inherit;False;2;2;0;INT;0;False;1;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;8;-482,-181;Inherit;False;2;2;0;INT;0;False;1;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;53;-372.589,-337.2693;Inherit;False;DMX
Grid Input;9;0;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.FunctionInput;6;-662,-347;Inherit;False;Legacy
Mode?;0;2;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;38;-315.7607,34.66202;Inherit;False;2;2;0;INT;0;False;1;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionNode;87;-58.64551,83.80005;Inherit;False;VRSL-ReadDMX;-1;;45;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;88;-58.58261,-203.5536;Inherit;False;VRSL-ReadDMX;-1;;46;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;89;-62.77179,-62.24646;Inherit;False;VRSL-ReadDMX;-1;;47;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;530,-82;Inherit;False;True;-1;RGB
Value;0;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0\nWireConnection;9;0;88;0\nWireConnection;9;1;89;0\nWireConnection;9;2;87;0\nWireConnection;37;0;8;0\nWireConnection;37;1;46;0\nWireConnection;8;0;4;0\nWireConnection;8;1;7;0\nWireConnection;38;0;37;0\nWireConnection;38;1;46;0\nWireConnection;87;96;53;0\nWireConnection;87;80;6;0\nWireConnection;87;77;38;0\nWireConnection;88;96;53;0\nWireConnection;88;80;6;0\nWireConnection;88;77;8;0\nWireConnection;89;96;53;0\nWireConnection;89;80;6;0\nWireConnection;89;77;37;0\nWireConnection;0;0;9;0\nASEEND*/\n//CHKSM=4656A8ED12592C1EF1D8507CEF481DE61603002E"
Mode?;0;2;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;38;-315.7607,34.66202;Inherit;False;2;2;0;INT;0;False;1;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionNode;93;-58.64551,83.80005;Inherit;False;VRSL-ReadDMX;-1;;51;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;94;-62.77179,-62.24646;Inherit;False;VRSL-ReadDMX;-1;;52;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;95;-58.58261,-203.5536;Inherit;False;VRSL-ReadDMX;-1;;53;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;530,-82;Inherit;False;True;-1;RGB
Value;0;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0\nWireConnection;9;0;95;0\nWireConnection;9;1;94;0\nWireConnection;9;2;93;0\nWireConnection;37;0;8;0\nWireConnection;37;1;46;0\nWireConnection;8;0;4;0\nWireConnection;8;1;7;0\nWireConnection;38;0;37;0\nWireConnection;38;1;46;0\nWireConnection;93;96;53;0\nWireConnection;93;80;6;0\nWireConnection;93;77;38;0\nWireConnection;94;96;53;0\nWireConnection;94;80;6;0\nWireConnection;94;77;37;0\nWireConnection;95;96;53;0\nWireConnection;95;80;6;0\nWireConnection;95;77;8;0\nWireConnection;0;0;9;0\nASEEND*/\n//CHKSM=B685BDE572001C4F654D35B570E289AB5DC446AB"
m_functionName:
m_description:
m_additionalIncludes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MonoBehaviour:
m_Name: VRSL-GetStrobeValue
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n412;153;1658;1001;1629.278;468.5681;1;True;False\nNode;AmplifyShaderEditor.FunctionInput;17;-1038.775,-143.2892;Inherit;False;Legacy
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n573.1429;350.8571;1206.286;666.4286;1283.421;421.4252;1;True;False\nNode;AmplifyShaderEditor.FunctionInput;17;-1038.775,-143.2892;Inherit;False;Legacy
Mode? (Bool);0;3;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;6;-840.5813,-51.63255;Inherit;False;2;2;0;INT;0;False;1;INT;6;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;1;-1029.109,-20.8685;Inherit;False;DMX
Channel;0;4;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;4;-1042.579,-232.0323;Inherit;False;DMX
Strobe Timer Texture;9;5;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.FunctionInput;39;-644.9973,11.49719;Inherit;False;Strobe
Expand All @@ -22,9 +22,9 @@ MonoBehaviour:
to square wave$$strobe = status > 0.2 ? strobe : 1@ //minimum channel threshold
set$$strobe = toggle == 1 ? strobe : 1@ //if toggle is not on, just output only
1$$return strobe@;1;Create;3;True;phase;FLOAT;0;In;;Inherit;False;True;status;FLOAT;0;In;;Inherit;False;True;toggle;INT;0;In;;Inherit;False;Get
Strobe;True;False;0;;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;42;-640.9155,-99.57251;Inherit;False;ReadDMX;-1;;47;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;43;-1048.278,144.4319;Inherit;False;DMX
Grid Input;9;0;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.FunctionNode;44;-653.9155,-229.5725;Inherit;False;ReadDMXRaw;-1;;48;257ccf99ab7848440b204b69d9f82d8e;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;31;-1037.824,66.82068;Inherit;False;Channel
Increment;0;1;False;1;0;INT;4;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;-96.5954,-190.7929;Inherit;False;True;-1;Output;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;6;0;1;0\nWireConnection;6;1;31;0\nWireConnection;40;0;39;0\nWireConnection;35;0;44;0\nWireConnection;35;1;42;0\nWireConnection;35;2;40;0\nWireConnection;42;96;43;0\nWireConnection;42;80;17;0\nWireConnection;42;77;6;0\nWireConnection;44;96;4;0\nWireConnection;44;80;17;0\nWireConnection;44;77;6;0\nWireConnection;0;0;35;0\nASEEND*/\n//CHKSM=6C828C63F698B244712E1F07F10402D9AAE55189"
Strobe;True;False;0;;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;43;-1048.278,144.4319;Inherit;False;DMX
Grid Input;9;0;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.FunctionInput;31;-1037.824,66.82068;Inherit;False;Channel
Increment;0;1;False;1;0;INT;4;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionNode;45;-640.9155,-99.57251;Inherit;False;VRSL-ReadDMX;-1;;49;daf3802ef6ad79c4f8b45fd9600401f1;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;46;-653.9155,-229.5725;Inherit;False;VRSL-ReadDMXRaw;-1;;50;257ccf99ab7848440b204b69d9f82d8e;0;3;96;SAMPLER2D;0;False;80;INT;0;False;77;INT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;-96.5954,-190.7929;Inherit;False;True;-1;Output;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;6;0;1;0\nWireConnection;6;1;31;0\nWireConnection;40;0;39;0\nWireConnection;35;0;46;0\nWireConnection;35;1;45;0\nWireConnection;35;2;40;0\nWireConnection;45;96;43;0\nWireConnection;45;80;17;0\nWireConnection;45;77;6;0\nWireConnection;46;96;4;0\nWireConnection;46;80;17;0\nWireConnection;46;77;6;0\nWireConnection;0;0;35;0\nASEEND*/\n//CHKSM=7A6FE8AE991AAE92B07B6FFF1EE0C570698A3BA6"
m_functionName:
m_description: A function for getting a strobe value from the dmx grid. The higher
the dmx value is from the stream, the faster the strobe rate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,30 @@ MonoBehaviour:
m_Name: VRSL-ReadDMX
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n470.2857;508.5714;1335;515;-817.6479;661.2088;1.3;False;False\nNode;AmplifyShaderEditor.IntNode;83;-25.40576,-510.0674;Inherit;False;Constant;_Int0;Int
0;0;0;Create;True;0;0;0;False;0;False;1;0;False;0;1;INT;0\nNode;AmplifyShaderEditor.WireNode;97;-236.1415,-106.0822;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.CustomExpressionNode;88;1188.859,-602.134;Inherit;False;
float3 cRGB = float3(c.r, c.g, c.b)@$ float value = LinearRgbToLuminance(cRGB)@$
value = LinearToGammaSpaceExact(value)@$ return value@;1;Create;1;True;c;FLOAT4;0,0,0,0;In;;Inherit;False;Sample
DMX;True;False;0;;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CustomExpressionNode;79;190.2844,-441.7575;Inherit;False;channel
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n573.1429;350.8571;1206.286;666.4286;129.5877;967.6372;1.3;True;False\nNode;AmplifyShaderEditor.IntNode;83;-25.40576,-510.0674;Inherit;False;Constant;_Int0;Int
0;0;0;Create;True;0;0;0;False;0;False;1;0;False;0;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;80;-47.40576,-586.0674;Inherit;False;LegacyMode;0;1;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.WireNode;97;-236.1415,-106.0822;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.CustomExpressionNode;79;190.2844,-441.7575;Inherit;False;channel
= channel - 1@$$float x = 0.02000@$float y = 0.02000@$$float ymod = floor(sector
/ 2.0)@ $$float xmod = sector % 2.0@$$x+= (xmod * 0.50)@$y+= (ymod * 0.04)@$$x+=
(channel * 0.04)@$$return float2(x,y)@$$;2;Create;2;True;channel;INT;0;In;;Inherit;False;True;sector;INT;0;In;;Inherit;False;Legacy
Read;False;False;0;;False;2;0;INT;0;False;1;INT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;95;-219.9075,-443.9388;Inherit;False;FLOAT2;1;0;FLOAT2;0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.WireNode;99;336.6586,-90.08216;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.AbsOpNode;94;-429.3547,-431.7595;Inherit;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.WireNode;98;791.0579,-126.8821;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.FunctionInput;80;-47.40576,-586.0674;Inherit;False;LegacyMode;0;1;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;77;-606.2667,-420.4579;Inherit;False;DMX
Read;False;False;0;;False;2;0;INT;0;False;1;INT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;95;-219.9075,-443.9388;Inherit;False;FLOAT2;1;0;FLOAT2;0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.WireNode;99;336.6586,-90.08216;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.SamplerNode;93;833.1604,-533.869;Inherit;True;Property;_TextureSample0;Texture
Sample 0;1;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.AbsOpNode;94;-429.3547,-431.7595;Inherit;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;77;-606.2667,-420.4579;Inherit;False;DMX
Channel;0;2;False;1;0;INT;0;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;96;-602.4658,-186.4489;Inherit;False;DMX
Grid Input;9;0;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.TexelSizeNode;87;-113.2081,-266.7121;Inherit;False;-1;1;0;SAMPLER2D;;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.CustomExpressionNode;78;-339.7133,-616.052;Inherit;False;uint
Grid Input;9;0;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.Compare;82;619.5942,-516.0674;Inherit;False;0;4;0;INT;0;False;1;INT;0;False;2;FLOAT2;0,0;False;3;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.CustomExpressionNode;78;-339.7133,-616.052;Inherit;False;uint
ch = abs(DMXChannel)@$uint x = ch % 13@$x = x == 0.0 ? 13.0 : x@$$float y = DMXChannel
/ 13.0@$y = frac(y)== 0.00000 ? y - 1 : y@$$if(x == 13.0)${$ y = DMXChannel
>= 90 && DMXChannel <= 101 ? y - 1 : y@$ y = DMXChannel >= 160 && DMXChannel
<= 205 ? y - 1 : y@$ y = DMXChannel >= 326 && DMXChannel <= 404 ? y -
1 : y@$ y = DMXChannel >= 676 && DMXChannel <= 819 ? y - 1 : y@$
y = DMXChannel >= 1339 ? y - 1 : y@$}$$float2 xAndy = float2(x,y)@$$return xAndy@;2;Create;1;True;DMXChannel;INT;0;In;;Float;False;Base
Read;False;False;0;;False;1;0;INT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.SamplerNode;93;833.1604,-537.7689;Inherit;True;Property;_TextureSample0;Texture
Sample 0;1;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.Compare;82;619.5942,-516.0674;Inherit;False;0;4;0;INT;0;False;1;INT;0;False;2;FLOAT2;0,0;False;3;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.CustomExpressionNode;84;142.5942,-341.0674;Inherit;False;y
Read;False;False;0;;False;1;0;INT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.TexelSizeNode;87;-113.2081,-266.7121;Inherit;False;-1;1;0;SAMPLER2D;;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.CustomExpressionNode;84;142.5942,-342.3674;Inherit;False;y
= y + 1@$$float resMultiplierX = (_OSCGridRenderTextureRAW_TexelSize.z / 13)@$float2
xyUV = float2(0.0,0.0)@$$xyUV.x = ((x * resMultiplierX) * _OSCGridRenderTextureRAW_TexelSize.x)@$xyUV.y
= (y * resMultiplierX) * _OSCGridRenderTextureRAW_TexelSize.y@$xyUV.y -= 0.001915@$
xyUV.x -= 0.015@$$return xyUV@$;2;Create;3;False;_OSCGridRenderTextureRAW_TexelSize;FLOAT4;0,0,0,0;In;;Inherit;False;True;x;INT;0;In;;Inherit;False;True;y;INT;0;In;;Inherit;False;Industry
Read;False;False;0;;False;3;0;FLOAT4;0,0,0,0;False;1;INT;0;False;2;INT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionOutput;0;1949.409,-513.8898;Inherit;False;True;-1;Channel
Value;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;97;0;96;0\nWireConnection;88;0;93;0\nWireConnection;79;0;95;0\nWireConnection;79;1;95;1\nWireConnection;95;0;78;0\nWireConnection;99;0;97;0\nWireConnection;94;0;77;0\nWireConnection;98;0;99;0\nWireConnection;87;0;96;0\nWireConnection;78;0;94;0\nWireConnection;93;0;98;0\nWireConnection;93;1;82;0\nWireConnection;82;0;80;0\nWireConnection;82;1;83;0\nWireConnection;82;2;79;0\nWireConnection;82;3;84;0\nWireConnection;84;0;87;0\nWireConnection;84;1;95;0\nWireConnection;84;2;95;1\nWireConnection;0;0;88;0\nASEEND*/\n//CHKSM=73B200025DC4E4946BFAB860A4FBD793590E061D"
Read;False;False;0;;False;3;0;FLOAT4;0,0,0,0;False;1;INT;0;False;2;INT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.WireNode;98;791.0579,-126.8821;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.CustomExpressionNode;88;1190.159,-600.834;Inherit;False;
float3 cRGB = float3(c.r, c.g, c.b)@$ float value = LinearRgbToLuminance(cRGB)@$$
return value@;1;Create;1;True;c;FLOAT4;0,0,0,0;In;;Inherit;False;Sample DMX;True;False;0;;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;1949.409,-513.8898;Inherit;False;True;-1;Channel
Value;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;97;0;96;0\nWireConnection;79;0;95;0\nWireConnection;79;1;95;1\nWireConnection;95;0;78;0\nWireConnection;99;0;97;0\nWireConnection;93;0;98;0\nWireConnection;93;1;82;0\nWireConnection;94;0;77;0\nWireConnection;82;0;80;0\nWireConnection;82;1;83;0\nWireConnection;82;2;79;0\nWireConnection;82;3;84;0\nWireConnection;78;0;94;0\nWireConnection;87;0;96;0\nWireConnection;84;0;87;0\nWireConnection;84;1;95;0\nWireConnection;84;2;95;1\nWireConnection;98;0;99;0\nWireConnection;88;0;93;0\nWireConnection;0;0;88;0\nASEEND*/\n//CHKSM=004E246B9AD5972BE57E183FBB3102276BF3EB38"
m_functionName:
m_description: A general purpose function for reading the DMX Grid from VRSL. Input
the DMX Channel and grid texture to read from. If you are using legacy mode,
Expand Down
Loading

0 comments on commit 3c9fc5c

Please sign in to comment.