Skip to content

Commit

Permalink
Post SF Update (2.4.2)
Browse files Browse the repository at this point in the history
- Readjusted the smoothing algorithm for DMX movement as well as added a smoothing divider/multiplier for the local control panel to more accurately match the smoothing amounts between in-game and editor.
- Added toggleable extra buffer CRTs to the strobe textures so that fixture strobing can more accurately match up with GI strobing.
-Tweaked more smoothing values.
  • Loading branch information
AcChosen committed Aug 30, 2023
1 parent f61bc9d commit 3a5e946
Show file tree
Hide file tree
Showing 54 changed files with 1,238 additions and 116 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public class VRSLInspector : ShaderGUI

//Interpolation Render Texture
MaterialProperty _SmoothValue = null;
MaterialProperty _UseOldSchoolSmoothing = null;
MaterialProperty _MinimumSmoothnessDMX = null;
MaterialProperty _MaximumSmoothnessDMX = null;

Expand Down Expand Up @@ -1756,6 +1757,7 @@ public void DMXInterpolationGUI(MaterialEditor matEditor, MaterialProperty[] pro
{
GUILayout.Space(5);
EditorGUI.indentLevel++;
matEditor.ShaderProperty(_UseOldSchoolSmoothing, new GUIContent("Use Old School Smoothing Technique", "Uses the old smoothing technique. Recommended for Light+Color Textures."));
matEditor.ShaderProperty(_EnableLegacyGlobalMovementSpeedChannel, new GUIContent("Enable Legacy Global Movement Speed", "Enables the use of the old Global Movement Speed Channel (DMX Channel 511) instead of having each sector have its own movement speed control. /nThis will always be true when compatibility mode is enabled"));
matEditor.ShaderProperty(_EnableCompatibilityMode, new GUIContent("Enable Compatibility Mode", "Changes the grid from reading the new 208x1080 grid to the old 200x200 grid. \nThis property is not an instanced property."));
matEditor.ShaderProperty(_EnableDMX, new GUIContent("Enable DMX", "Enables or Disables reading from the DMX Render Textures"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: DMXRTMaterial-Interpolated-Color+Intensity-Horizontal
m_Shader: {fileID: 4800000, guid: 715ebff4a0305954f96e78ccb3676141, type: 3}
m_ShaderKeywords: _NINEUNIVERSEMODE_ON
m_ShaderKeywords: _NINEUNIVERSEMODE_ON _OLD_SCHOOL_SMOOTHING
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
Expand Down Expand Up @@ -94,11 +94,12 @@ Material:
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Sector: 0
- _SmoothValue: 0.755
- _SmoothValue: 0.7
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _UseOldSchoolSmoothing: 1
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,22 @@ Material:
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _MaximumSmoothnessDMX: 0.15
- _MaximumSmoothnessDMX: 0.5
- _MaximumSmoothnessOSC: 0.15
- _Metallic: 0
- _MinimumSmoothnessDMX: 0.0025
- _MinimumSmoothnessDMX: 0.25
- _MinimumSmoothnessOSC: 0.0025
- _Mode: 0
- _NineUniverseMode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Sector: 39
- _SmoothValue: 0.033
- _SmoothValue: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _UseOldSchoolSmoothing: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DMXRT-StrobeOutput-Vertical
m_Name: DMXRTMaterial-StrobeOutput-Horizontal
m_Shader: {fileID: 4800000, guid: 4fd2aba1f194f2944983084cf77021b3, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DMXRTMaterial-StrobeOutput-ReRender-Final-Horizontal
m_Shader: {fileID: 4800000, guid: ef72139c4ded1554faff62378cee3ee3, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Input:
m_Texture: {fileID: 8600000, guid: 99d1c91f47ceb344ea8d62554a087e98, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DMXRTMaterial-StrobeOutput-ReRender-Initial-Horizontal
m_Shader: {fileID: 4800000, guid: ef72139c4ded1554faff62378cee3ee3, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Input:
m_Texture: {fileID: 8600000, guid: 580ab95419bdcc845a4bd0b1a94983c0, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: DMXRTMaterial-StrobeTimings-Horizontal
m_Shader: {fileID: 4800000, guid: 70d085252a756e54e96824cb28a38a48, type: 3}
m_ShaderKeywords: _NINEUNIVERSEMODE_ON _VRSL_STATICFREQUENCIES
m_ShaderKeywords: _VRSL_STATICFREQUENCIES
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
Expand All @@ -32,10 +32,10 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _HighFrequency: 75
- _LowFrequency: 40
- _HighFrequency: 65
- _LowFrequency: 25
- _MaxStrobeFreq: 185
- _MedFrequency: 60
- _MedFrequency: 45
- _NineUniverseMode: 0
- _SmoothValue: 0.5
- _StrobeType: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Material:
m_Name: DMXRTMaterial-Interpolated-Color+Intensity-Legacy
m_Shader: {fileID: 4800000, guid: 715ebff4a0305954f96e78ccb3676141, type: 3}
m_ShaderKeywords: _ENABLECOMPATIBILITYMODE_ON _ENABLELEGACYGLOBALMOVEMENTSPEEDCHANNEL_ON
_OLD_SCHOOL_SMOOTHING
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
Expand Down Expand Up @@ -94,11 +95,12 @@ Material:
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Sector: 0
- _SmoothValue: 0.4
- _SmoothValue: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _UseOldSchoolSmoothing: 1
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ Material:
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _MaximumSmoothnessDMX: 0.15
- _MaximumSmoothnessDMX: 0.5
- _MaximumSmoothnessOSC: 0.15
- _Metallic: 0
- _MinimumSmoothnessDMX: 0.0025
- _MinimumSmoothnessDMX: 0.25
- _MinimumSmoothnessOSC: 0.0025
- _Mode: 0
- _NineUniverseMode: 0
Expand All @@ -100,6 +100,7 @@ Material:
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _UseOldSchoolSmoothing: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _MaxSpinSpeed: 0
- _MaxStrobeFreq: 100
- _NineUniverseMode: 0
- _SmoothValue: 0.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DMXRT-StrobeOutput-Legacy
m_Name: DMXRTMaterial-StrobeOutput-Legacy
m_Shader: {fileID: 4800000, guid: 4fd2aba1f194f2944983084cf77021b3, type: 3}
m_ShaderKeywords: _ENABLECOMPATIBILITYMODE_ON
m_LightmapFlags: 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: DMXRTMaterial-Interpolated-Color+Intensity-Vertical
m_Shader: {fileID: 4800000, guid: 715ebff4a0305954f96e78ccb3676141, type: 3}
m_ShaderKeywords:
m_ShaderKeywords: _OLD_SCHOOL_SMOOTHING
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
Expand Down Expand Up @@ -94,11 +94,12 @@ Material:
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Sector: 0
- _SmoothValue: 0.6
- _SmoothValue: 0.7
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _UseOldSchoolSmoothing: 1
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ Material:
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _MaximumSmoothnessDMX: 0.15
- _MaximumSmoothnessDMX: 0.5
- _MaximumSmoothnessOSC: 0.15
- _Metallic: 0
- _MinimumSmoothnessDMX: 0.0025
- _MinimumSmoothnessDMX: 0.25
- _MinimumSmoothnessOSC: 0.0025
- _Mode: 0
- _NineUniverseMode: 0
Expand All @@ -99,6 +99,7 @@ Material:
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _UseOldSchoolSmoothing: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
Loading

0 comments on commit 3a5e946

Please sign in to comment.