[External] Synty Polygon 외부 에셋 패키지 추가

Ultraworked with [Sisyphus](https://github.com/code-yeonggu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-03-11 17:58:10 +09:00
parent f0fef00b1c
commit 7c22b01ea8
2506 changed files with 540809 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 0730dae39bc73f34796280af9875ce14
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: f3534f26c7b573c45a1346e0634d57fc
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: d79125f9702e62b49acba79746359880
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 7e152165942817942a0ce6f06a871016
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: dfec08fb273e4674bb5398df25a5932c
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 0736e099ec10c9e46b9551b2337d0cc7
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 3b44a38ec6f81134ab0f820ac54d6a93
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9b3c74c1bd071884db83bf5c8405daa1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f234efb29ef9a1b41afea34ab10f5078
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,204 @@
using UnityEditor;
public class PolygonShaderGUI : ShaderGUI
{
private bool _showBaseTexture = false;
private bool _showOverlayTexture = false;
private bool _showAlphaTexture = false;
private bool _showNormalTexture = false;
private bool _showTriplanar = false;
private bool _showNormalTriplanar = false;
private bool _showEmissionTexture = false;
private bool _showSnow = false;
private bool _showWave = false;
private bool CreatePropertyGroup(string title, string[] groupProperties, bool foldout, MaterialEditor materialEditor, MaterialProperty[] allProperties)
{
foldout = EditorGUILayout.BeginFoldoutHeaderGroup(foldout, title);
if (foldout)
{
foreach (string property in groupProperties)
{
MaterialProperty propertyReference = FindProperty(property, allProperties);
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName, 1);
}
}
EditorGUILayout.EndFoldoutHeaderGroup();
return foldout;
}
override public void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
EditorGUILayout.LabelField("Basic Parameters", EditorStyles.boldLabel);
// Ungrouped Basic Parameters
string[] shaderProperties =
{
"_Color_Tint",
"_Metallic",
"_Smoothness",
"_Metallic_Smoothness_Texture",
"_Ambient_Occlusion",
"_Specular_Color",
"_Alpha_Transparency"
};
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName, 0);
}
EditorGUILayout.Separator();
// Base Texture Parameters
shaderProperties = new[]
{
"_Enable_Base_Texture",
"_Base_Texture",
"_Base_Tiling",
"_Base_Offset"
};
_showBaseTexture = CreatePropertyGroup("Base Texture", shaderProperties, _showBaseTexture, materialEditor, properties);
// Alpha Texture Parameters
shaderProperties = new[]
{
"_Enable_Alpha_Texture",
"_Alpha_Texture",
"_Alpha_Tiling",
"_Alpha_Offset"
};
_showAlphaTexture = CreatePropertyGroup("Alpha Texture", shaderProperties, _showAlphaTexture, materialEditor, properties);
// Normal Texture Parameters
shaderProperties = new[]
{
"_Enable_Normal_Texture",
"_Normal_Texture",
"_Normal_Tiling",
"_Normal_Offset"
};
_showNormalTexture = CreatePropertyGroup("Normal Texture", shaderProperties, _showNormalTexture, materialEditor, properties);
// Emission Texture Parameters
shaderProperties = new[]
{
"_Enable_Emission_Texture",
"_Emission_Texture",
"_Emission_Tiling",
"_Emission_Offset"
};
_showEmissionTexture = CreatePropertyGroup("Emission Texture", shaderProperties, _showEmissionTexture, materialEditor, properties);
EditorGUILayout.Separator();
EditorGUILayout.LabelField("Advanced Parameters", EditorStyles.boldLabel);
// Overlay Texture Parameters
shaderProperties = new[]
{
"_Enable_Overlay_Texture",
"_Overlay_Texture",
"_Overlay_Tiling",
"_Overlay_Offset",
"_OVERLAY_UV_CHANNEL",
"_Overlay_Intensity"
};
_showOverlayTexture = CreatePropertyGroup("Overlay Texture", shaderProperties, _showOverlayTexture, materialEditor, properties);
// Triplanar Texture Parameters
shaderProperties = new[]
{
"_Enable_Triplanar_Texture",
"_Triplanar_Texture_Top",
"_Triplanar_Tiling_Top",
"_Triplanar_Offset_Top",
"_Triplanar_Texture_Bottom",
"_Triplanar_Tiling_Bottom",
"_Triplanar_Offset_Bottom",
"_Triplanar_Texture_Side",
"_Triplanar_Tiling_Side",
"_Triplanar_Offset_Side",
"_Triplanar_Top_To_Side_Difference",
"_Triplanar_Fade", "_Triplanar_Intensity"
};
_showTriplanar = CreatePropertyGroup("Triplanar Texture", shaderProperties, _showTriplanar, materialEditor, properties);
// Triplanar Normal Texture Parameters
shaderProperties = new[]
{
"_Enable_Triplanar_Normals",
"_Triplanar_Normal_Texture_Top",
"_Triplanar_Normal_Intensity_Top",
"_Triplanar_Normal_Tiling_Top",
"_Triplanar_Normal_Offset_Top",
"_Triplanar_Normal_Texture_Bottom",
"_Triplanar_Normal_Intensity_Bottom",
"_Triplanar_Normal_Tiling_Bottom",
"_Triplanar_Normal_Offset_Bottom",
"_Triplanar_Normal_Texture_Side",
"_Triplanar_Normal_Intensity_Side",
"_Triplanar_Normal_Tiling_Side",
"_Triplanar_Normal_Offset_Side",
"_Triplanar_Normal_Top_To_Side_Difference",
"_Triplanar_Normal_Fade"
};
_showNormalTriplanar = CreatePropertyGroup("Triplanar Normal Texture", shaderProperties, _showNormalTriplanar, materialEditor, properties);
// Snow Parameters
shaderProperties = new[]
{
"_Enable_Snow",
"_Snow_Metallic",
"_Snow_Smoothness",
"_Snow_Level",
"_Snow_Transition",
"_Snow_Transition_Threshold",
"_Snow_Transition_Threshold_Steps",
"_Snow_Transition_Threshold_Step_Count",
"_Snow_Angle_Threshold",
"_Snow_Color",
"_Sea_Level",
"_Snow_Edge_Noise",
"_Snow_Noise_Tiling",
"_Snow_Noise_Offset",
"_Snow_Noise_Fade",
"_Snow_Noise_Top_To_Side_Difference",
"_Snow_Normal_Texture",
"_Snow_Overrides_Normals",
"_Snow_Normal_Intensity",
"_Snow_Normal_Tiling",
"_Snow_Normal_Offset",
"_Snow_Normal_Fade",
"_Snow_Metallic_Smoothness_Texture",
"_Snow_Metallic_Smoothness_Tiling",
"_Snow_Metallic_Smoothness_Offset"
};
_showSnow = CreatePropertyGroup("Snow", shaderProperties, _showSnow, materialEditor, properties);
// Wave Parameters
shaderProperties = new[]
{
"_Enable_Wave",
"_Wave_Direction_Vector",
"_Wave_Scale",
"_Wave_Noise_Tiling",
"_Wave_Speed",
"_Fade_Wave_To_Object_Origin",
"_Fade_Wave_Scale",
"_Fade_Wave_Vertical_Offset",
"_Wave_Object_Offset"
};
_showWave = CreatePropertyGroup("Wave", shaderProperties, _showWave, materialEditor, properties);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e16259084a99b0e489b0e53af4e783a0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,145 @@
using UnityEditor;
public class PolygonTransparencyShaderGUI : ShaderGUI
{
private bool _showBaseTexture = false;
private bool _showOverlayTexture = false;
private bool _showAlphaTexture = false;
private bool _showNormalTexture = false;
private bool _showEmissionTexture = false;
private bool _showSnow = false;
private bool CreatePropertyGroup(string title, string[] groupProperties, bool foldout, MaterialEditor materialEditor, MaterialProperty[] allProperties)
{
foldout = EditorGUILayout.BeginFoldoutHeaderGroup(foldout, title);
if (foldout)
{
foreach (string property in groupProperties)
{
MaterialProperty propertyReference = FindProperty(property, allProperties);
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName, 1);
}
}
EditorGUILayout.EndFoldoutHeaderGroup();
return foldout;
}
override public void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
EditorGUILayout.LabelField("Basic Parameters", EditorStyles.boldLabel);
// Ungrouped Basic Parameters
string[] shaderProperties =
{
"_Color_Tint",
"_Metallic",
"_Smoothness",
"_Metallic_Smoothness_Texture",
"_Ambient_Occlusion",
"_Alpha_Transparency",
"_Alpha_Clip_Threshold"
};
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName, 0);
}
EditorGUILayout.Separator();
// Base Texture Parameters
shaderProperties = new[]
{
"_Enable_Base_Texture",
"_Base_Texture",
"_Base_Tiling",
"_Base_Offset"
};
_showBaseTexture = CreatePropertyGroup("Base Texture", shaderProperties, _showBaseTexture, materialEditor, properties);
// Alpha Texture Parameters
shaderProperties = new[]
{
"_Enable_Alpha_Texture",
"_Alpha_Texture",
"_Alpha_Tiling",
"_Alpha_Offset"
};
_showAlphaTexture = CreatePropertyGroup("Alpha Texture", shaderProperties, _showAlphaTexture, materialEditor, properties);
// Normal Texture Parameters
shaderProperties = new[]
{
"_Enable_Normal_Texture",
"_Normal_Texture",
"_Normal_Tiling",
"_Normal_Offset"
};
_showNormalTexture = CreatePropertyGroup("Normal Texture", shaderProperties, _showNormalTexture, materialEditor, properties);
// Emission Texture Parameters
shaderProperties = new[]
{
"_Enable_Emission_Texture",
"_Emission_Texture",
"_Emission_Tiling",
"_Emission_Offset"
};
_showEmissionTexture = CreatePropertyGroup("Emission Texture", shaderProperties, _showEmissionTexture, materialEditor, properties);
EditorGUILayout.Separator();
EditorGUILayout.LabelField("Advanced Parameters", EditorStyles.boldLabel);
// Overlay Texture Parameters
shaderProperties = new[]
{
"_Enable_Overlay_Texture",
"_Overlay_Texture",
"_Overlay_Tiling",
"_Overlay_Offset",
"_OVERLAY_UV_CHANNEL",
"_Overlay_Intensity"
};
_showOverlayTexture = CreatePropertyGroup("Overlay Texture", shaderProperties, _showOverlayTexture, materialEditor, properties);
// Snow Parameters
shaderProperties = new[]
{
"_Enable_Snow",
"_Snow_Metallic",
"_Snow_Smoothness",
"_Snow_Level",
"_Snow_Transition",
"_Snow_Transition_Threshold",
"_Snow_Transition_Threshold_Steps",
"_Snow_Transition_Threshold_Step_Count",
"_Snow_Angle_Threshold",
"_Snow_Color",
"_Sea_Level",
"_Snow_Edge_Noise",
"_Snow_Noise_Tiling",
"_Snow_Noise_Offset",
"_Snow_Noise_Fade",
"_Snow_Noise_Top_To_Side_Difference",
"_Snow_Normal_Texture",
"_Snow_Overrides_Normals",
"_Snow_Normal_Intensity",
"_Snow_Normal_Tiling",
"_Snow_Normal_Offset",
"_Snow_Normal_Fade",
"_Snow_Metallic_Smoothness_Texture",
"_Snow_Metallic_Smoothness_Tiling",
"_Snow_Metallic_Smoothness_Offset"
};
_showSnow = CreatePropertyGroup("Snow", shaderProperties, _showSnow, materialEditor, properties);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d1879b1ba5fdfae4fb24baf9e99a44c3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,565 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class polygonShaderTransparent_UI : ShaderGUI
{
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Base", "Overlay", "Snow"};
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;
void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.defaultRenderPipeline;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}
//Build Surface Type options URP
public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
#region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make transparent
material.SetFloat("_BUILTIN_Surface", 1);
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_BUILTIN_AlphaClip", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_BUILTIN_CullMode", 2);
}
//Set URP
else if (renderPipeType == 1)
{
//Make transparent
material.SetFloat("_Surface", 1);
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_AlphaClip", 0);
material.SetFloat("_AlphaToMask", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 2);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawBaseSettings(materialEditor, properties);
break;
case 1:
DrawOverlaySettings(materialEditor, properties);
break;
case 2:
DrawSnowSettings(materialEditor, properties);
break;
}
}
#endregion
#region Vector Gui Custom Properties
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_UVPan", "Vector2" },
{ "_Base_Tiling", "Vector2" },
{ "_Base_Offset", "Vector2" },
{ "_Overlay_Tiling", "Vector2"},
{ "_Overlay_Offset", "Vector2" },
{ "_Normal_Tiling", "Vector2" },
{ "_Normal_Offset", "Vector2" },
{ "_Emission_Tiling", "Vector2" },
{ "_Emission_Offset", "Vector2" },
{ "_Alpha_Tiling", "Vector2" },
{ "_Alpha_Offset", "Vector2" },
{ "_AO_Tiling", "Vector2" },
{ "_AO_Offset", "Vector2" }
};
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
//Tab 1
#region BaseProperties
bool showBaseTextures = true;
bool showBaseNormals = true;
bool showBaseEmissions = true;
bool showBaseAlpha = true;
bool showBaseAO = true;
bool isTriplanarBaseEnabled = false;
bool isTriplanarEmissionEnabled = false;
private void DrawBaseSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
if (isTriplanarBaseEnabled)
{
EditorGUILayout.LabelField(">>> Triplanar enabled, Some Base Parameters Ignored. <<<", EditorStyles.boldLabel);
EditorGUILayout.Separator();
}
GUILayout.Label("Base Properties", EditorStyles.boldLabel);
// Add properties here
EditorGUILayout.BeginVertical(backdropStyle);
string[] shaderProperties =
{
"_Color_Tint",
"_Metallic",
"_Smoothness",
"_Metallic_Smoothness_Texture",
//"_Specular_Color",
"_UVPan"
};
EditorGUILayout.Separator();
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
#region BaseTextures
EditorGUILayout.Separator();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropBaseTex = FindProperty("_Enable_Base_Texture", properties);
materialEditor.ShaderProperty(materialPropBaseTex, "Enable Base Textures");
if (materialPropBaseTex.floatValue == 1)
{
showBaseTextures = EditorGUILayout.Foldout(showBaseTextures, "Base Textures");
if (showBaseTextures)
{
// Base Texture Parameters
shaderProperties = new[]
{
"_Base_Texture",
"_Base_Tiling",
"_Base_Offset"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region NormalTextures
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropNormalTex = FindProperty("_Enable_Normal_Texture", properties);
materialEditor.ShaderProperty(materialPropNormalTex, "Enable Normal Texture");
if (materialPropNormalTex.floatValue == 1)
{
showBaseNormals = EditorGUILayout.Foldout(showBaseNormals, "Base Normal Textures");
if (showBaseNormals)
{
// Normal Texture Parameters
shaderProperties = new[]
{
"_Normal_Texture",
"_Normal_Intensity",
"_Normal_Tiling",
"_Normal_Offset"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region EmissionTextures
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropEmissionTex = FindProperty("_Enable_Emission_Texture", properties);
materialEditor.ShaderProperty(materialPropEmissionTex, "Enable Emission Texture");
if (materialPropEmissionTex.floatValue == 1)
{
showBaseEmissions = EditorGUILayout.Foldout(showBaseEmissions, "Base Emission Textures");
if (isTriplanarEmissionEnabled)
{
EditorGUILayout.LabelField(">>> Emission Triplanar Enabled, Section Overriden <<<", EditorStyles.boldLabel);
EditorGUILayout.Separator();
}
if (showBaseEmissions)
{
// Emission Texture Parameters
shaderProperties = new[]
{
"_Emission_Texture",
"_Emission_Tiling",
"_Emission_Offset",
"_Emission_Color_Tint"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Alpha
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialAlphaTex = FindProperty("_Enable_Transparency", properties);
materialEditor.ShaderProperty(materialAlphaTex, "Enable Transparency");
if (materialAlphaTex.floatValue == 1)
{
showBaseAlpha = EditorGUILayout.Foldout(showBaseAlpha, "Base Transparency");
if (showBaseAlpha)
{
// Emission Texture Parameters
shaderProperties = new[]
{
"_Alpha_Texture",
"_Alpha_Tiling",
"_Alpha_Offset",
"_Alpha_Transparency",
"_Alpha_Clip_Threshold"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Ambient Occlusion
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropBaseAO = FindProperty("_Enable_Ambient_Occlusion", properties);
materialEditor.ShaderProperty(materialPropBaseAO, "Enable Ambient Occlusion");
if (materialPropBaseAO.floatValue == 1)
{
showBaseAO = EditorGUILayout.Foldout(showBaseAO, "Ambient Occlusion");
if (showBaseAO)
{
// Base Texture Parameters
shaderProperties = new[]
{
"_AO_Intensity",
"_AO_Texture",
"_AO_Tiling",
"_AO_Offset",
"_Generate_From_Base_Normals"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 2
#region OverlayProperties
private void DrawOverlaySettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyleOverlay = makeBackdrop();
GUILayout.Label("Overlay Texture Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyleOverlay);
MaterialProperty materialPropOverlayTex = FindProperty("_Enable_Overlay_Texture", properties);
materialEditor.ShaderProperty(materialPropOverlayTex, "Enable Overlay Texture");
if (materialPropOverlayTex.floatValue == 1)
{
string[] shaderProperties =
{
"_Overlay_Texture",
"_Overlay_Tiling",
"_Overlay_Offset",
"_OVERLAY_UV_CHANNEL",
"_Overlay_Intensity"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
//Tab 3
#region SnowProperties
private void DrawSnowSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyleSnow = makeBackdrop();
GUILayout.Label("Snow Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyleSnow);
MaterialProperty materialPropSnow = FindProperty("_Enable_Snow", properties);
materialEditor.ShaderProperty(materialPropSnow, "Enable Snow");
if (materialPropSnow.floatValue == 1)
{
string[] shaderProperties =
{
"_Snow_Use_World_Up",
"_Snow_Color",
"_Snow_Metallic",
"_Snow_Smoothness",
"_Snow_Level",
"_Snow_Transition"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
#region Create Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ccb2f47ff735f614aa4094376621aabb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,686 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class polygonShader_UI : ShaderGUI
{
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Base", "Overlay", "Triplanar", "Snow" };
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;
void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.defaultRenderPipeline;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}
//Build Surface Type options BIRP
public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
}
else // Opaque
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
material.DisableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_CullMode");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_CullMode", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_BUILTIN_ALPHATEST_ON");
material.EnableKeyword("_BUILTIN_AlphaClip");
}
else
{
material.DisableKeyword("_BUILTIN_ALPHATEST_ON");
material.DisableKeyword("_BUILTIN_AlphaClip");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
#region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make opaque
material.SetFloat("_BUILTIN_Surface", 0);
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ZWRITE_ON");
material.DisableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
//alpha clip on
material.SetFloat("_BUILTIN_AlphaClip", 0);
material.EnableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_BUILTIN_AlphaClip");
//Render both faces
material.SetFloat("_BUILTIN_CullMode", 2);
}
//Set URP
else if (renderPipeType == 1)
{
//Make opaque
material.SetFloat("_Surface", 0);
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
//alpha clip on
material.SetFloat("_AlphaClip", 1);
material.SetFloat("_AlphaToMask", 1);
material.EnableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 2);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawBaseSettings(materialEditor, properties);
break;
case 1:
DrawOverlaySettings(materialEditor, properties);
break;
case 2:
DrawTriplanarSettings(materialEditor, properties);
break;
case 3:
DrawSnowSettings(materialEditor, properties);
break;
}
}
#endregion
#region Vector Gui Custom Properties
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_UVPan", "Vector2" },
{ "_Base_Tiling", "Vector2" },
{ "_Base_Offset", "Vector2" },
{ "_Overlay_Tiling", "Vector2"},
{ "_Overlay_Offset", "Vector2" },
{ "_Normal_Tiling", "Vector2" },
{ "_Normal_Offset", "Vector2" },
{ "_Emission_Tiling", "Vector2" },
{ "_Emission_Offset", "Vector2" },
{ "_AO_Tiling", "Vector2" },
{ "_AO_Offset", "Vector2" },
{ "_Triplanar_Tiling_Top", "Vector2" },
{ "_Triplanar_Offset_Top", "Vector2" },
{ "_Triplanar_Tiling_Bottom", "Vector2" },
{ "_Triplanar_Offset_Bottom", "Vector2" },
{ "_Triplanar_Tiling_Side", "Vector2" },
{ "_Triplanar_Offset_Side", "Vector2" },
{ "_Triplanar_Normal_Tiling_Top", "Vector2" },
{ "_Triplanar_Normal_Offset_Top", "Vector2" },
{ "_Triplanar_Normal_Tiling_Bottom", "Vector2" },
{ "_Triplanar_Normal_Offset_Bottom", "Vector2" },
{ "_Triplanar_Normal_Tiling_Side", "Vector2" },
{ "_Triplanar_Normal_Offset_Side", "Vector2" }
};
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
//Tab 1
#region BaseProperties
bool showBaseTextures = true;
bool showBaseNormals = true;
bool showBaseEmissions = true;
bool showBaseAO = true;
bool isTriplanarBaseEnabled = false;
bool isTriplanarEmissionEnabled = false;
private void DrawBaseSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
if (isTriplanarBaseEnabled)
{
EditorGUILayout.LabelField(">>> Triplanar enabled, Some Base Parameters Ignored. <<<", EditorStyles.boldLabel);
EditorGUILayout.Separator();
}
GUILayout.Label("Base Properties", EditorStyles.boldLabel);
// Add properties here
EditorGUILayout.BeginVertical(backdropStyle);
string[] shaderProperties =
{
"_Color_Tint",
"_Metallic",
"_Smoothness",
"_Metallic_Smoothness_Texture",
//"_Specular_Color",
"_UVPan"
};
EditorGUILayout.Separator();
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
#region BaseTextures
EditorGUILayout.Separator();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropBaseTex = FindProperty("_Enable_Base_Texture", properties);
materialEditor.ShaderProperty(materialPropBaseTex, "Enable Base Textures");
if (materialPropBaseTex.floatValue == 1)
{
showBaseTextures = EditorGUILayout.Foldout(showBaseTextures, "Base Textures");
if (showBaseTextures)
{
// Base Texture Parameters
shaderProperties = new[]
{
"_Base_Texture",
"_Base_Tiling",
"_Base_Offset"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region NormalTextures
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropNormalTex = FindProperty("_Enable_Normal_Texture", properties);
materialEditor.ShaderProperty(materialPropNormalTex, "Enable Normal Texture");
if (materialPropNormalTex.floatValue == 1)
{
showBaseNormals = EditorGUILayout.Foldout(showBaseNormals, "Base Normal Textures");
if (showBaseNormals)
{
// Normal Texture Parameters
shaderProperties = new[]
{
"_Normal_Texture",
"_Normal_Intensity",
"_Normal_Tiling",
"_Normal_Offset"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region EmissionTextures
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropEmissionTex = FindProperty("_Enable_Emission_Texture", properties);
materialEditor.ShaderProperty(materialPropEmissionTex, "Enable Emission Texture");
if (materialPropEmissionTex.floatValue == 1)
{
showBaseEmissions = EditorGUILayout.Foldout(showBaseEmissions, "Base Emission Textures");
if (isTriplanarEmissionEnabled)
{
EditorGUILayout.LabelField(">>> Emission Triplanar Enabled, Section Overriden <<<", EditorStyles.boldLabel);
EditorGUILayout.Separator();
}
if (showBaseEmissions)
{
// Emission Texture Parameters
shaderProperties = new[]
{
"_Emission_Texture",
"_Emission_Tiling",
"_Emission_Offset",
"_Emission_Color_Tint"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Ambient Occlusion
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty materialPropBaseAO = FindProperty("_Enable_Ambient_Occlusion", properties);
materialEditor.ShaderProperty(materialPropBaseAO, "Enable Ambient Occlusion");
if (materialPropBaseAO.floatValue == 1)
{
showBaseAO = EditorGUILayout.Foldout(showBaseAO, "Ambient Occlusion");
if (showBaseAO)
{
// Base Texture Parameters
shaderProperties = new[]
{
"_AO_Intensity",
"_AO_Texture",
"_AO_Tiling",
"_AO_Offset",
"_Generate_From_Base_Normals"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 2
#region OverlayProperties
private void DrawOverlaySettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyleOverlay = makeBackdrop();
GUILayout.Label("Overlay Texture Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyleOverlay);
MaterialProperty materialPropOverlayTex = FindProperty("_Enable_Overlay_Texture", properties);
materialEditor.ShaderProperty(materialPropOverlayTex, "Enable Overlay Texture");
if (materialPropOverlayTex.floatValue == 1)
{
string[] shaderProperties =
{
"_Overlay_Texture",
"_Overlay_Tiling",
"_Overlay_Offset",
"_OVERLAY_UV_CHANNEL",
"_Overlay_Intensity"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
//Tab 3
#region TriplanarProperties
bool enableTriplanarBase = true;
bool enableTriplanarNormals = true;
bool enableTriplanarEmission = true;
private void DrawTriplanarSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyleTriplanar = makeBackdrop();
#region Base Triplanar Textures
EditorGUILayout.BeginVertical(backdropStyleTriplanar);
MaterialProperty materialPropTriplanarBase = FindProperty("_Enable_Triplanar_Texture", properties);
materialEditor.ShaderProperty(materialPropTriplanarBase, "Enable Base Triplanar Textures");
if (materialPropTriplanarBase.floatValue == 1)
{
isTriplanarBaseEnabled = true;
enableTriplanarBase = EditorGUILayout.Foldout(enableTriplanarBase, "Triplanar Base Textures");
if (enableTriplanarBase)
{
// Triplanar Base
string[] shaderProperties =
{
"_Triplanar_Texture_Top",
"_Triplanar_Tiling_Top",
"_Triplanar_Offset_Top",
"_Triplanar_Texture_Bottom",
"_Triplanar_Tiling_Bottom",
"_Triplanar_Offset_Bottom",
"_Triplanar_Texture_Side",
"_Triplanar_Tiling_Side",
"_Triplanar_Offset_Side",
"_Triplanar_Top_To_Side_Difference",
"_Triplanar_Fade",
"_Triplanar_Intensity",
"_Top_Metallic",
"_Side_Metallic",
"_Bottom_Metallic",
"_Top_Smoothness",
"_Side_Smoothness",
"_Bottom_Smoothness"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
else
{
isTriplanarBaseEnabled = false;
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Normal Triplanar Textures
EditorGUILayout.BeginVertical(backdropStyleTriplanar);
MaterialProperty materialPropTriplanarNormals = FindProperty("_Enable_Triplanar_Normals", properties);
materialEditor.ShaderProperty(materialPropTriplanarNormals, "Enable Triplanar Normals");
if (materialPropTriplanarNormals.floatValue == 1)
{
enableTriplanarNormals = EditorGUILayout.Foldout(enableTriplanarNormals, "Triplanar Normal Textures");
if (enableTriplanarNormals)
{
// Triplanar Base
string[] shaderProperties =
{
"_Triplanar_Normal_Texture_Top",
"_Triplanar_Normal_Intensity_Top",
"_Triplanar_Normal_Tiling_Top",
"_Triplanar_Normal_Offset_Top",
"_Triplanar_Normal_Texture_Bottom",
"_Triplanar_Normal_Intensity_Bottom",
"_Triplanar_Normal_Tiling_Bottom",
"_Triplanar_Normal_Offset_Bottom",
"_Triplanar_Normal_Texture_Side",
"_Triplanar_Normal_Intensity_Side",
"_Triplanar_Normal_Tiling_Side",
"_Triplanar_Normal_Offset_Side",
"_Triplanar_Normal_Top_To_Side_Difference",
"_Triplanar_Normal_Fade"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Emission Triplanar Textures
EditorGUILayout.BeginVertical(backdropStyleTriplanar);
MaterialProperty materialPropTriplanarEmission = FindProperty("_Enable_Triplanar_Emission", properties);
materialEditor.ShaderProperty(materialPropTriplanarEmission, "Enable Triplanar Emission");
if (materialPropTriplanarEmission.floatValue == 1)
{
isTriplanarEmissionEnabled = true;
enableTriplanarEmission = EditorGUILayout.Foldout(enableTriplanarEmission, "Triplanar Emission Textures");
if (enableTriplanarEmission)
{
// Triplanar Base
string[] shaderProperties =
{
"_Triplanar_Emission_Texture",
"_Triplanar_Emission_Tiling",
"_Triplanar_Emission_Blend",
"_Triplanar_Emission_Intensity",
"_Triplanar_Emission_Color_Tint"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
}
else
{
isTriplanarEmissionEnabled = false;
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 4
#region SnowProperties
private void DrawSnowSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyleSnow = makeBackdrop();
GUILayout.Label("Snow Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyleSnow);
MaterialProperty materialPropSnow = FindProperty("_Enable_Snow", properties);
materialEditor.ShaderProperty(materialPropSnow, "Enable Snow");
if (materialPropSnow.floatValue == 1)
{
string[] shaderProperties =
{
"_Snow_Use_World_Up",
"_Snow_Color",
"_Snow_Metallic",
"_Snow_Smoothness",
"_Snow_Level",
"_Snow_Transition"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
#region Create Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6329e7ab75a0e524bbb95f69ccaac50e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 19e269a311c45cd4482cf0ac0e694503
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: fdea4239d29733541b44cd6960afefcd
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: de1d86872962c37429cb628a7de53613
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 3d532bc2d70158948859b7839127e562
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f0710c22501bad3478c493867df6199d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,574 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "69f7cad33f8e4d849866057dad5f6fe3",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "ae0b5416bd1b47b09683c882a4b40ffe"
}
],
"m_Nodes": [
{
"m_Id": "5606b2120dc24d93ac441dc9a990871b"
},
{
"m_Id": "2eeaafafe03c4047a0b5b5fd8c878567"
},
{
"m_Id": "07dc8592bc7e4e448d756a0b3cbe0df1"
},
{
"m_Id": "bcea6953ac314ab0b1f3911dc9f4804c"
},
{
"m_Id": "d36c1bb228b3422c95559bce11c2a045"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "07dc8592bc7e4e448d756a0b3cbe0df1"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5606b2120dc24d93ac441dc9a990871b"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2eeaafafe03c4047a0b5b5fd8c878567"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "07dc8592bc7e4e448d756a0b3cbe0df1"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bcea6953ac314ab0b1f3911dc9f4804c"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d36c1bb228b3422c95559bce11c2a045"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "d36c1bb228b3422c95559bce11c2a045"
},
"m_SlotId": 4
},
"m_InputSlot": {
"m_Node": {
"m_Id": "07dc8592bc7e4e448d756a0b3cbe0df1"
},
"m_SlotId": 1
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "5606b2120dc24d93ac441dc9a990871b"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubtractNode",
"m_ObjectId": "07dc8592bc7e4e448d756a0b3cbe0df1",
"m_Group": {
"m_Id": ""
},
"m_Name": "Subtract",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -25.000015258789064,
"y": 0.00002574920654296875,
"width": 126.0,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "a72c24c2c59e4abea858414612e5f91b"
},
{
"m_Id": "f044e97490b34fcab06fe53e929b8105"
},
{
"m_Id": "db11fee03226465eac883e5143f942e3"
}
],
"synonyms": [
"subtraction",
"remove",
"minus",
"take away"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot",
"m_ObjectId": "2684db785b2e4b6d844244538c01d192",
"m_Id": 0,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": [],
"m_ScreenSpaceType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SceneDepthNode",
"m_ObjectId": "2eeaafafe03c4047a0b5b5fd8c878567",
"m_Group": {
"m_Id": ""
},
"m_Name": "Scene Depth",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -207.99996948242188,
"y": 0.00002574920654296875,
"width": 144.99998474121095,
"height": 112.00004577636719
}
},
"m_Slots": [
{
"m_Id": "2684db785b2e4b6d844244538c01d192"
},
{
"m_Id": "db629677ffbd48bfb593980137f7f282"
}
],
"synonyms": [
"zbuffer",
"zdepth"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_DepthSamplingMode": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "48f487d4523545d8933f486c51ae0672",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "5606b2120dc24d93ac441dc9a990871b",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 194.9999542236328,
"y": 0.00002193450927734375,
"width": 121.00004577636719,
"height": 76.99995422363281
}
},
"m_Slots": [
{
"m_Id": "b470380097cc4a8a911e68cdef8534f7"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "71bb8309bfad41209f1aec2781a1eae7",
"m_Id": 3,
"m_DisplayName": "B",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "a07832aed8a74d8da05fe8d53c7c3ceb",
"m_Id": 2,
"m_DisplayName": "G",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "G",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "a72c24c2c59e4abea858414612e5f91b",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "ae0b5416bd1b47b09683c882a4b40ffe",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "b1ce146d06074349a8428db588fa347a",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "b470380097cc4a8a911e68cdef8534f7",
"m_Id": 1,
"m_DisplayName": "Out_Vector4",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "OutVector4",
"m_StageCapability": 2,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionNode",
"m_ObjectId": "bcea6953ac314ab0b1f3911dc9f4804c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Screen Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -351.9999694824219,
"y": 118.0000228881836,
"width": 145.00003051757813,
"height": 128.99996948242188
}
},
"m_Slots": [
{
"m_Id": "48f487d4523545d8933f486c51ae0672"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_ScreenSpaceType": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "c22d6fdb191d486e863120af0a42c255",
"m_Id": 1,
"m_DisplayName": "R",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "R",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "c6d5d3063f1c44519781f59d34af6fdb",
"m_Id": 4,
"m_DisplayName": "A",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SplitNode",
"m_ObjectId": "d36c1bb228b3422c95559bce11c2a045",
"m_Group": {
"m_Id": ""
},
"m_Name": "Split",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -183.00003051757813,
"y": 118.0000228881836,
"width": 120.00004577636719,
"height": 148.99996948242188
}
},
"m_Slots": [
{
"m_Id": "b1ce146d06074349a8428db588fa347a"
},
{
"m_Id": "c22d6fdb191d486e863120af0a42c255"
},
{
"m_Id": "a07832aed8a74d8da05fe8d53c7c3ceb"
},
{
"m_Id": "71bb8309bfad41209f1aec2781a1eae7"
},
{
"m_Id": "c6d5d3063f1c44519781f59d34af6fdb"
}
],
"synonyms": [
"separate"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "db11fee03226465eac883e5143f942e3",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "db629677ffbd48bfb593980137f7f282",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "f044e97490b34fcab06fe53e929b8105",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: abf4c2b1199f01c40aeb6364b98d9ae3
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 12e6dd34d7398d44a8bfb1e75bc2b4d5
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

View File

@@ -0,0 +1,938 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "d87e0a2296da47c395e70b65a289cbd6",
"m_Properties": [
{
"m_Id": "a67a3deacf2743cebd544c9f3270cd58"
},
{
"m_Id": "49affa59ec9142c99d0605d25b713c5c"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "59e48bf9c11f4f5b835be80ad5f29150"
}
],
"m_Nodes": [
{
"m_Id": "f22eb1096b2542879ae63dbea730d691"
},
{
"m_Id": "22432c95a9884ac3813865fb1a293197"
},
{
"m_Id": "7cf1cb174d1c44439d6ad463fc8afc94"
},
{
"m_Id": "e9f94246f87048e0be413a938a3a944e"
},
{
"m_Id": "ecffa5f590f94ae9bb383c8cc57daa91"
},
{
"m_Id": "7fffc868e2264d7ab29dc0b70e460474"
},
{
"m_Id": "1f7d9c4a02b94ce4aedeac6e8c3b32f5"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "1f7d9c4a02b94ce4aedeac6e8c3b32f5"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7fffc868e2264d7ab29dc0b70e460474"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "22432c95a9884ac3813865fb1a293197"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1f7d9c4a02b94ce4aedeac6e8c3b32f5"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "22432c95a9884ac3813865fb1a293197"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1f7d9c4a02b94ce4aedeac6e8c3b32f5"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7cf1cb174d1c44439d6ad463fc8afc94"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e9f94246f87048e0be413a938a3a944e"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7fffc868e2264d7ab29dc0b70e460474"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e9f94246f87048e0be413a938a3a944e"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "e9f94246f87048e0be413a938a3a944e"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f22eb1096b2542879ae63dbea730d691"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "ecffa5f590f94ae9bb383c8cc57daa91"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7fffc868e2264d7ab29dc0b70e460474"
},
"m_SlotId": 0
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "f22eb1096b2542879ae63dbea730d691"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2Node",
"m_ObjectId": "1f7d9c4a02b94ce4aedeac6e8c3b32f5",
"m_Group": {
"m_Id": ""
},
"m_Name": "Vector 2",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -670.0,
"y": 108.0,
"width": 128.0,
"height": 101.0
}
},
"m_Slots": [
{
"m_Id": "b054c20fcde54e6c8f4b4739167378be"
},
{
"m_Id": "53f483db65474b01bd8af164288cd773"
},
{
"m_Id": "929713f296ac4563b16cd7565feeee6c"
}
],
"synonyms": [
"2",
"v2",
"vec2",
"float2"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Value": {
"x": 0.0,
"y": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "2230bb581f4d46b8a79c73d2c49df2dd",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.TimeNode",
"m_ObjectId": "22432c95a9884ac3813865fb1a293197",
"m_Group": {
"m_Id": ""
},
"m_Name": "Time",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -834.0,
"y": 108.0,
"width": 124.0,
"height": 173.0
}
},
"m_Slots": [
{
"m_Id": "d20a8b891f7a42d3bc23e06fd80b1f0a"
},
{
"m_Id": "e212136cc2f244fbad707a0bc047f07d"
},
{
"m_Id": "91f1b240a1ca4559bc1f59311173a209"
},
{
"m_Id": "bc010807a53b40f59e9716de4e5e6d11"
},
{
"m_Id": "315882e7b13749f3bad1b9b9f537b9cd"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "315882e7b13749f3bad1b9b9f537b9cd",
"m_Id": 4,
"m_DisplayName": "Smooth Delta",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Smooth Delta",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "48e11ceabeb84efb88feb559469dbd76",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 2.0,
"e01": 2.0,
"e02": 2.0,
"e03": 2.0,
"e10": 2.0,
"e11": 2.0,
"e12": 2.0,
"e13": 2.0,
"e20": 2.0,
"e21": 2.0,
"e22": 2.0,
"e23": 2.0,
"e30": 2.0,
"e31": 2.0,
"e32": 2.0,
"e33": 2.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "49affa59ec9142c99d0605d25b713c5c",
"m_Guid": {
"m_GuidSerialized": "73b086de-4cff-4df7-9621-c11eaf153a72"
},
"m_Name": "Speed",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Speed",
"m_DefaultReferenceName": "_Speed",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "53f483db65474b01bd8af164288cd773",
"m_Id": 2,
"m_DisplayName": "Y",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Y",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"Y"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "59e48bf9c11f4f5b835be80ad5f29150",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "a67a3deacf2743cebd544c9f3270cd58"
},
{
"m_Id": "49affa59ec9142c99d0605d25b713c5c"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "5ca92aec134e4615b95e8e371ad34820",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "7cf1cb174d1c44439d6ad463fc8afc94",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -384.0,
"y": 0.0,
"width": 93.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "b12166f22f524ad58fb4d31fccb82f3c"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "a67a3deacf2743cebd544c9f3270cd58"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
"m_ObjectId": "7fffc868e2264d7ab29dc0b70e460474",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -499.0,
"y": 34.0,
"width": 208.0,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "5ca92aec134e4615b95e8e371ad34820"
},
{
"m_Id": "48e11ceabeb84efb88feb559469dbd76"
},
{
"m_Id": "e7d484a04b614b569ec169e7bbf2dee5"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "91f1b240a1ca4559bc1f59311173a209",
"m_Id": 2,
"m_DisplayName": "Cosine Time",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Cosine Time",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "929713f296ac4563b16cd7565feeee6c",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "a67a3deacf2743cebd544c9f3270cd58",
"m_Guid": {
"m_GuidSerialized": "35fc6820-d7a4-4f81-9841-a73c4bedceaa"
},
"m_Name": "UV",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "UV",
"m_DefaultReferenceName": "_UV",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "a70308157ab843c180e3f0960cac6332",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "b054c20fcde54e6c8f4b4739167378be",
"m_Id": 1,
"m_DisplayName": "X",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "X",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "b12166f22f524ad58fb4d31fccb82f3c",
"m_Id": 0,
"m_DisplayName": "UV",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "b77fe6ca10e54435ba0309797712fdf6",
"m_Id": 0,
"m_DisplayName": "Speed",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "bc010807a53b40f59e9716de4e5e6d11",
"m_Id": 3,
"m_DisplayName": "Delta Time",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Delta Time",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "ca65de65f5424248acc97fabb43aa46d",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "d20a8b891f7a42d3bc23e06fd80b1f0a",
"m_Id": 0,
"m_DisplayName": "Time",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Time",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "e212136cc2f244fbad707a0bc047f07d",
"m_Id": 1,
"m_DisplayName": "Sine Time",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Sine Time",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "e7d484a04b614b569ec169e7bbf2dee5",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.AddNode",
"m_ObjectId": "e9f94246f87048e0be413a938a3a944e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Add",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -236.0,
"y": 0.0,
"width": 208.0,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "ca65de65f5424248acc97fabb43aa46d"
},
{
"m_Id": "2230bb581f4d46b8a79c73d2c49df2dd"
},
{
"m_Id": "a70308157ab843c180e3f0960cac6332"
}
],
"synonyms": [
"addition",
"sum",
"plus"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "ea70fcb5741f484185ba81efae3c2223",
"m_Id": 1,
"m_DisplayName": "Out_Vector4",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out_Vector4",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "ecffa5f590f94ae9bb383c8cc57daa91",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -652.0,
"y": 74.0,
"width": 110.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "b77fe6ca10e54435ba0309797712fdf6"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "49affa59ec9142c99d0605d25b713c5c"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "f22eb1096b2542879ae63dbea730d691",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "ea70fcb5741f484185ba81efae3c2223"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 155f6dcfc5af9f14081d4d2a3126b26f
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 84b801d6ba770ed4cbb93d4825f3f26b
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 5c77de5c7c1c4184ea6f895125eb8812
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: b8ba6a7cdeb9ceb4b9f815877052de4b
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

View File

@@ -0,0 +1,904 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "3f7ff864cc87426aad32658e312d852f",
"m_Properties": [
{
"m_Id": "364a58dc4a7547fba433a283ee3d3f6f"
}
],
"m_Keywords": [],
"m_Dropdowns": [
{
"m_Id": "1d83bab2942d4b55bc55057996a96c94"
}
],
"m_CategoryData": [
{
"m_Id": "053cd10256814b588bf0759c1a5c2359"
}
],
"m_Nodes": [
{
"m_Id": "cfa3093a124c44f5a0a05b32453d588e"
},
{
"m_Id": "42d0518b92fd4764ab0bcde2f42f220f"
},
{
"m_Id": "dc292ce311844de59a65c00fd2995275"
},
{
"m_Id": "a1d8ffa4c85947f6a34c6211d9e25474"
},
{
"m_Id": "15e35babdb2245e2b0ee00dfb1c7df49"
},
{
"m_Id": "0af30373bb3a4f3b87f00cc96040438a"
},
{
"m_Id": "28ed3ddf9f6a483b8c78eaaa9a603f69"
},
{
"m_Id": "ee9dffd84a7349f7a0cbe6f96be5674d"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0af30373bb3a4f3b87f00cc96040438a"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "cfa3093a124c44f5a0a05b32453d588e"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "15e35babdb2245e2b0ee00dfb1c7df49"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "ee9dffd84a7349f7a0cbe6f96be5674d"
},
"m_SlotId": 5
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "28ed3ddf9f6a483b8c78eaaa9a603f69"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0af30373bb3a4f3b87f00cc96040438a"
},
"m_SlotId": 1388117528
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "42d0518b92fd4764ab0bcde2f42f220f"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "ee9dffd84a7349f7a0cbe6f96be5674d"
},
"m_SlotId": 4
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a1d8ffa4c85947f6a34c6211d9e25474"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "ee9dffd84a7349f7a0cbe6f96be5674d"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "dc292ce311844de59a65c00fd2995275"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "ee9dffd84a7349f7a0cbe6f96be5674d"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "ee9dffd84a7349f7a0cbe6f96be5674d"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0af30373bb3a4f3b87f00cc96040438a"
},
"m_SlotId": -334228649
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "cfa3093a124c44f5a0a05b32453d588e"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "053cd10256814b588bf0759c1a5c2359",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "364a58dc4a7547fba433a283ee3d3f6f"
},
{
"m_Id": "1d83bab2942d4b55bc55057996a96c94"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphNode",
"m_ObjectId": "0af30373bb3a4f3b87f00cc96040438a",
"m_Group": {
"m_Id": ""
},
"m_Name": "Panner",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -231.0,
"y": 0.0,
"width": 208.0,
"height": 303.0
}
},
"m_Slots": [
{
"m_Id": "e5ecd6f827394a0493c704822fd671a3"
},
{
"m_Id": "8f96ea8a14aa4a829192fd16c4fa414a"
},
{
"m_Id": "835c36c30ef54de4955f0471b0629b42"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"155f6dcfc5af9f14081d4d2a3126b26f\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [
"35fc6820-d7a4-4f81-9841-a73c4bedceaa",
"73b086de-4cff-4df7-9621-c11eaf153a72"
],
"m_PropertyIds": [
-334228649,
1388117528
],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "0b7946df56ae48ba8f82005226c81d19",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "14d2ccd5b2d4432b9232b93e84327d46",
"m_Id": 2,
"m_DisplayName": "UV2",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV2",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVNode",
"m_ObjectId": "15e35babdb2245e2b0ee00dfb1c7df49",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -854.0,
"y": 392.0,
"width": 145.0,
"height": 129.0
}
},
"m_Slots": [
{
"m_Id": "0b7946df56ae48ba8f82005226c81d19"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ShaderDropdown",
"m_ObjectId": "1d83bab2942d4b55bc55057996a96c94",
"m_Guid": {
"m_GuidSerialized": "769f0cb5-f6cc-4bdf-81fd-d7815a28137a"
},
"m_Name": "Channel",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Channel",
"m_DefaultReferenceName": "_Channel",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Entries": [
{
"id": 4,
"displayName": "UV0"
},
{
"id": 1,
"displayName": "UV1"
},
{
"id": 2,
"displayName": "UV2"
},
{
"id": 5,
"displayName": "UV3"
}
],
"m_Value": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "28ed3ddf9f6a483b8c78eaaa9a603f69",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -391.0,
"y": 77.0,
"width": 130.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "8417a6c7ed494f05b32c5b17e5ac5cad"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "364a58dc4a7547fba433a283ee3d3f6f"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "364a58dc4a7547fba433a283ee3d3f6f",
"m_Guid": {
"m_GuidSerialized": "a43f4da8-4b21-4d75-8f0c-a49b0c65cbd8"
},
"m_Name": "PanSpeed",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "PanSpeed",
"m_DefaultReferenceName": "_PanSpeed",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVNode",
"m_ObjectId": "42d0518b92fd4764ab0bcde2f42f220f",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -854.0,
"y": 0.0,
"width": 145.0,
"height": 129.0
}
},
"m_Slots": [
{
"m_Id": "50681fc924ca41428d1dafdba38cea65"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "482a0402d6e24ee3b44397138b4291cf",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "50681fc924ca41428d1dafdba38cea65",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "54f8ce0b65d54ef78ef17bbcd5b546fa",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "5541fc6ea28c4ec4910c371861c50fff",
"m_Id": 1,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "6a31bb3b7a9e4658bb897294a64eb7d2",
"m_Id": 1,
"m_DisplayName": "UV1",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV1",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "835c36c30ef54de4955f0471b0629b42",
"m_Id": 1,
"m_DisplayName": "Out_Vector4",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out_Vector4",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "8417a6c7ed494f05b32c5b17e5ac5cad",
"m_Id": 0,
"m_DisplayName": "PanSpeed",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "8f96ea8a14aa4a829192fd16c4fa414a",
"m_Id": 1388117528,
"m_DisplayName": "Speed",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_Speed",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVNode",
"m_ObjectId": "a1d8ffa4c85947f6a34c6211d9e25474",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -855.0,
"y": 260.0,
"width": 145.0,
"height": 129.0
}
},
"m_Slots": [
{
"m_Id": "f1524f1073ea49d5b7c1d8d27c94e1b5"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "cfa3093a124c44f5a0a05b32453d588e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "5541fc6ea28c4ec4910c371861c50fff"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVNode",
"m_ObjectId": "dc292ce311844de59a65c00fd2995275",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -854.0,
"y": 131.0,
"width": 145.0,
"height": 129.0
}
},
"m_Slots": [
{
"m_Id": "54f8ce0b65d54ef78ef17bbcd5b546fa"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "e0a3601f87794e89aa9d11a1761cbe4a",
"m_Id": 4,
"m_DisplayName": "UV0",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV0",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "e5ecd6f827394a0493c704822fd671a3",
"m_Id": -334228649,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DropdownNode",
"m_ObjectId": "ee9dffd84a7349f7a0cbe6f96be5674d",
"m_Group": {
"m_Id": ""
},
"m_Name": "Channel",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -617.0,
"y": 0.0,
"width": 208.0,
"height": 350.0
}
},
"m_Slots": [
{
"m_Id": "482a0402d6e24ee3b44397138b4291cf"
},
{
"m_Id": "e0a3601f87794e89aa9d11a1761cbe4a"
},
{
"m_Id": "6a31bb3b7a9e4658bb897294a64eb7d2"
},
{
"m_Id": "14d2ccd5b2d4432b9232b93e84327d46"
},
{
"m_Id": "f8ab4960aced4b21b47cff615a0a7f55"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Dropdown": {
"m_Id": "1d83bab2942d4b55bc55057996a96c94"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "f1524f1073ea49d5b7c1d8d27c94e1b5",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "f8ab4960aced4b21b47cff615a0a7f55",
"m_Id": 5,
"m_DisplayName": "UV3",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV3",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 39b601832c475fa4c918a8592c7747eb
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 00952b6128ee725428f24b329070410b
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e17f8fe2503580447a3784d34b316d11
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}