diff --git a/.rive_head b/.rive_head index d8f4dac3a..b6def711a 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -55853117b23477b737f1ede00bd4f9fddf0d9bec +27085dfb0c26c8ccb9b05b69c7a3923d981d9f80 diff --git a/package/Editor/AssetEditor.cs b/package/Editor/AssetEditor.cs index 84c26a0df..ffd275f47 100644 --- a/package/Editor/AssetEditor.cs +++ b/package/Editor/AssetEditor.cs @@ -446,13 +446,36 @@ int height if (rt != null) { - RenderTexture.active = rt; + RenderTexture sourceForRead = rt; + RenderTexture temp = null; + + // Static preview: use the runtime decode material (Rive/UI/Default) in Linear color space. + // This decodes gamma to linear, which works correctly with ReadPixels→Texture2D path. + // We DON'T use the pass-through shader here because the blit+ReadPixels seems to cause issues, and leads to nothing rendering for the static preview. + // TODO: Remove this once we have a proper way to display the texture in Linear color space. + if (Rive.TextureHelper.ProjectNeedsColorSpaceFix) + { + var mat = Rive.TextureHelper.GammaToLinearUIMaterial; + if (mat != null) + { + temp = RenderTexture.GetTemporary(rt.width, rt.height, 0, RenderTextureFormat.ARGB32); + Graphics.Blit(rt, temp, mat); + sourceForRead = temp; + } + } + + RenderTexture.active = sourceForRead; Texture2D tex = new Texture2D(width, height); tex.ReadPixels(rect, 0, 0); tex.Apply(true); RenderTexture.active = prev; + if (temp != null) + { + RenderTexture.ReleaseTemporary(temp); + } + RenderTexture.ReleaseTemporary(rt); return tex; } return null; @@ -522,7 +545,7 @@ RenderTexture Render(Rect rect, bool isStatic = false) rt = temp; } - RenderTexture.ReleaseTemporary(rt); + // Caller releases the temporary RT return rt; } @@ -532,15 +555,35 @@ public override void OnPreviewGUI(Rect rect, GUIStyle background) { RenderTexture rt = Render(rect); - UnityEditor.EditorGUI.DrawPreviewTexture( - FlipY() - ? new Rect(rect.x, rect.y + rect.height, rect.width, -rect.height) - : rect, - rt - ); + var drawRect = FlipY() + ? new Rect(rect.x, rect.y + rect.height, rect.width, -rect.height) + : rect; + + // Live preview: use a simple pass-through shader in Linear color space. + // Rive outputs gamma values, and it looks like EditorGUI.DrawPreviewTexture expects sRGB input. + // We DON'T use the decode material here because it would decode to linear, causing burnt/dark colors. + // The pass-through shader (Hidden/Rive/Editor/SRGBEncodePreview) just returns the texture unchanged. + // TODO: Remove this once we have a proper way to display the texture in Linear color space. + var mat = (Rive.TextureHelper.ProjectNeedsColorSpaceFix ? GetEncodePreviewMaterial() : null); + UnityEditor.EditorGUI.DrawPreviewTexture(drawRect, rt, mat); + RenderTexture.ReleaseTemporary(rt); } } + private static Material s_encodePreviewMaterial; + private static Material GetEncodePreviewMaterial() + { + if (s_encodePreviewMaterial != null) return s_encodePreviewMaterial; + var shader = Shader.Find("Hidden/Rive/Editor/SRGBEncodePreview"); + if (shader == null) return null; + s_encodePreviewMaterial = new Material(shader) + { + name = "Rive_Editor_SRGBEncodePreview", + hideFlags = HideFlags.HideAndDontSave + }; + return s_encodePreviewMaterial; + } + private void UnloadPreview() { m_stateMachine = null; diff --git a/package/Editor/Components/TexturePanelRendererEditor.cs b/package/Editor/Components/TexturePanelRendererEditor.cs index f62206098..2667ebd2f 100644 --- a/package/Editor/Components/TexturePanelRendererEditor.cs +++ b/package/Editor/Components/TexturePanelRendererEditor.cs @@ -1,13 +1,41 @@ -using Rive.Components; -using UnityEditor; - - -namespace Rive.EditorTools -{ - [CustomEditor(typeof(RiveTextureRenderer), true)] - internal class TexturePanelRendererEditor : PanelRendererInspector - { - - } -} - +using Rive.Components; +using UnityEditor; +using UnityEngine.UIElements; + + +namespace Rive.EditorTools +{ + + [CustomEditor(typeof(RiveTextureRenderer), true)] + internal class TexturePanelRendererEditor : PanelRendererInspector + { + public override VisualElement CreateInspectorGUI() + { + var root = base.CreateInspectorGUI() ?? new VisualElement(); + + // For worldspace renderers, we display a button to convert materials on the current mesh renderer, if needed. + // Makes it easier for users to switch to Rive materials without having to know the right ones to pick. + var textureRenderer = (RiveTextureRenderer)target; + if (textureRenderer != null && textureRenderer.Renderer != null) + { + System.Action clickAction = () => + { + // This will replace any non-Rive materials with Rive equivalents, even if the existing materials are not Unity defaults. + MaterialConversionUtility.ReplaceMaterialsWithRive(textureRenderer.Renderer); + }; + var convertButton = new Button(() => clickAction()) + { + text = "Replace Materials with Rive Materials" + }; + convertButton.name = "RiveConvertMaterialsButton"; + convertButton.userData = clickAction; // allow tests to invoke without event system/panel + convertButton.style.marginTop = 6; + root.Add(convertButton); + } + + return root; + } + + } +} + diff --git a/package/Editor/Menu/SupportInfoMenu.cs b/package/Editor/Menu/SupportInfoMenu.cs index 59d365c66..cf9c9aecc 100644 --- a/package/Editor/Menu/SupportInfoMenu.cs +++ b/package/Editor/Menu/SupportInfoMenu.cs @@ -45,7 +45,7 @@ private static string GenerateSupportInfo() string operatingSystem = SystemInfo.operatingSystem; string graphicsDevice = SystemInfo.graphicsDeviceName + " (" + SystemInfo.graphicsDeviceType + ")"; - string riveVersion = GetPackageVersion(PackageInfo.PACKAGE_NAME); + string riveVersion = GetPackageVersion(Rive.EditorTools.PackageInfo.PACKAGE_NAME); return "Rive Unity Support Info\n" + @@ -57,7 +57,7 @@ private static string GenerateSupportInfo() $"Render Pipeline: {renderPipeline}\n" + $"OS: {operatingSystem}\n" + $"GPU: {graphicsDevice}\n" + - $"Rive Plugin: {PackageInfo.PACKAGE_NAME} {riveVersion}\n"; + $"Rive Plugin: {Rive.EditorTools.PackageInfo.PACKAGE_NAME} {riveVersion}\n"; } private static string GetRenderPipelineDescription() diff --git a/package/Editor/PackageVersionChecker.cs b/package/Editor/PackageVersionChecker.cs index 9bc4bc0e4..fca808dcc 100644 --- a/package/Editor/PackageVersionChecker.cs +++ b/package/Editor/PackageVersionChecker.cs @@ -24,7 +24,7 @@ private static void OnPackagesRegistered(PackageRegistrationEventArgs args) // Check if the Rive package was updated foreach (var changedPackage in args.changedTo) { - if (changedPackage.name == PackageInfo.PACKAGE_NAME) + if (changedPackage.name == Rive.EditorTools.PackageInfo.PACKAGE_NAME) { ShowRestartDialog(changedPackage.version); break; @@ -42,7 +42,7 @@ private static void ShowRestartDialog(string newVersion) ); DebugLogger.Instance.LogWarning( - $"[{PackageInfo.PACKAGE_NAME}] Package updated to {newVersion}. " + + $"[{Rive.EditorTools.PackageInfo.PACKAGE_NAME}] Package updated to {newVersion}. " + "Please restart the Unity Editor to make sure the new version is fully loaded. If you skip this step, you might run into issues, and riv files may not work properly." ); } diff --git a/package/Editor/Shaders.meta b/package/Editor/Shaders.meta new file mode 100644 index 000000000..de22dbb47 --- /dev/null +++ b/package/Editor/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1530c7930ed7d4437995a5d0cdc9a669 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Editor/Shaders/SRGBEncodePreview.shader b/package/Editor/Shaders/SRGBEncodePreview.shader new file mode 100644 index 000000000..8bb880456 --- /dev/null +++ b/package/Editor/Shaders/SRGBEncodePreview.shader @@ -0,0 +1,60 @@ +// Editor-only shader for Rive asset preview in the Unity Inspector. +// This is a simple pass-through shader used ONLY for live preview in Linear color space projects in AssetEditor.cs. +// +// Why pass-through? +// - Rive outputs gamma into the RenderTexture +// - EditorGUI.DrawPreviewTexture expects sRGB input for correct display +// - We just pass the values through unchanged to avoid color conversion issues +// +// Note: Static preview uses a different path (Rive/UI/Default decode material + ReadPixels) so this shader is not used there. +Shader "Hidden/Rive/Editor/SRGBEncodePreview" +{ + SubShader + { + Tags { "RenderType"="Opaque" "Queue"="Overlay" } + Pass + { + ZWrite Off + Cull Off + ZTest Always + Blend One Zero + + HLSLPROGRAM + #pragma vertex vert + #pragma fragment frag + + #include "UnityCG.cginc" + + struct appdata + { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + }; + + struct v2f + { + float4 pos : SV_POSITION; + float2 uv : TEXCOORD0; + }; + + v2f vert(appdata v) + { + v2f o; + o.pos = UnityObjectToClipPos(v.vertex); + o.uv = v.uv; + return o; + } + + sampler2D _MainTex; + + float4 frag(v2f i) : SV_Target + { + // Simple pass-through: Rive RenderTexture contains gamma values, + // return them unchanged for correct display in EditorGUI preview + float4 c = tex2D(_MainTex, i.uv); + return c; + } + ENDHLSL + } + } +} \ No newline at end of file diff --git a/package/Editor/Shaders/SRGBEncodePreview.shader.meta b/package/Editor/Shaders/SRGBEncodePreview.shader.meta new file mode 100644 index 000000000..d6d4ba3c2 --- /dev/null +++ b/package/Editor/Shaders/SRGBEncodePreview.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c21beb37ff9a947549f53fb49764de5a +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/EditorOnly/MaterialConversionUtility.cs b/package/Runtime/Components/EditorOnly/MaterialConversionUtility.cs new file mode 100644 index 000000000..fc435c05b --- /dev/null +++ b/package/Runtime/Components/EditorOnly/MaterialConversionUtility.cs @@ -0,0 +1,420 @@ +using UnityEngine; +#if UNITY_EDITOR +using UnityEditor; +#endif + +namespace Rive.Components +{ + + /// + /// Helper class for converting default RP materials to Rive variants. + /// + internal static class MaterialConversionUtility + { +#if UNITY_EDITOR + // Exposed constants so tests and editor code can reference folder and name conventions from one place. + internal static class Constants + { + public const string PackageName = Rive.EditorTools.PackageInfo.PACKAGE_NAME; + public const string RPFolderRoot = "RenderPipelines"; + public const string URPFolder = "URP"; + public const string HDRPFolder = "HDRP"; + public const string BuiltInFolder = "BuiltIn"; + public const string MaterialsFolder = "Materials"; + + public const string BaseRiveLit = "RiveLit"; + public const string BaseRiveUnlit = "RiveUnlit"; + + public const string SuffixURP = "URP"; + public const string SuffixHDRP = "HDRP"; + public const string SuffixBiRP = "BiRP"; + + // Unity default shader names for detection (used to identify pipeline defaults) + public const string UnityDefaultShaderURPLit = "Universal Render Pipeline/Lit"; + public const string UnityDefaultShaderURPUnlit = "Universal Render Pipeline/Unlit"; + public const string UnityDefaultShaderHDRPLit = "HDRP/Lit"; + public const string UnityDefaultShaderHDRPUnlit = "HDRP/Unlit"; + public const string UnityDefaultShaderBuiltInLit = "Standard"; + public const string UnityDefaultShaderBuiltInUnlitPrefix = "Unlit/"; + + // Expected material names for the current render pipeline + internal static string ExpectedLitNameForCurrentPipeline + { + get + { + return BaseRiveLit + GetCurrentPipelineSuffix(); + } + } + internal static string ExpectedUnlitNameForCurrentPipeline + { + get + { + return BaseRiveUnlit + GetCurrentPipelineSuffix(); + } + } + + private static string GetCurrentPipelineSuffix() + { + switch (GetCurrentPipeline()) + { + case Pipeline.URP: + return SuffixURP; + case Pipeline.HDRP: + return SuffixHDRP; + default: + return SuffixBiRP; + } + } + } + + private enum Pipeline + { + BuiltIn = 0, + URP = 1, + HDRP = 2, + } + + private static Pipeline GetCurrentPipeline() + { + var rp = UnityEngine.Rendering.GraphicsSettings.currentRenderPipeline; + if (rp == null) + { + return Pipeline.BuiltIn; + } + var typeName = rp.GetType().FullName; + if (!string.IsNullOrEmpty(typeName)) + { + if (typeName.Contains("UniversalRenderPipelineAsset")) + { + return Pipeline.URP; + } + if (typeName.Contains("HDRenderPipelineAsset")) + { + return Pipeline.HDRP; + } + } + return Pipeline.BuiltIn; + } + + // --------------------------- + // Project-material resolution + // --------------------------- + private static Material s_cachedLitMaterial; + private static Material s_cachedUnlitMaterial; + + private static string GetTargetFolderPath() + { + return "Assets/Plugins/Rive/Materials"; + } + + private static string GetBaseName(bool lit) + { + return lit ? Constants.BaseRiveLit : Constants.BaseRiveUnlit; + } + + private static string GetRPFolder(out string suffix) + { + switch (GetCurrentPipeline()) + { + case Pipeline.URP: + suffix = Constants.SuffixURP; + return Constants.URPFolder; + case Pipeline.HDRP: + suffix = Constants.SuffixHDRP; + return Constants.HDRPFolder; + default: + suffix = Constants.SuffixBiRP; + return Constants.BuiltInFolder; + } + } + + private static void EnsureAssetFolder(string path) + { + var parts = path.Split('/'); + if (parts.Length == 0 || parts[0] != "Assets") return; + string current = "Assets"; + for (int i = 1; i < parts.Length; i++) + { + string next = current + "/" + parts[i]; + if (!AssetDatabase.IsValidFolder(next)) + { + AssetDatabase.CreateFolder(current, parts[i]); + } + current = next; + } + } + + private static Shader LoadShaderFromRenderPipelinesFolder(string rpFolder, bool lit, out string resolvedName) + { + // Attempt to load shader directly from RP ShaderGraph asset + string litOrUnlit = lit ? "Lit" : "Unlit"; + string shaderGraphPath = $"Packages/{Constants.PackageName}/Runtime/Components/Public/RenderPipelines/{rpFolder}/Shaders/{litOrUnlit}.shadergraph"; + var shader = AssetDatabase.LoadAssetAtPath(shaderGraphPath); + if (shader != null) + { + resolvedName = shader.name; + return shader; + } + // Fallback search within the RP Shaders folder for any Shader assets and pick by name hint + string folder = $"Packages/{Constants.PackageName}/Runtime/Components/Public/RenderPipelines/{rpFolder}/Shaders"; + string[] guids = AssetDatabase.FindAssets("t:Shader", new[] { folder }); + for (int i = 0; i < guids.Length; i++) + { + string path = AssetDatabase.GUIDToAssetPath(guids[i]); + var s = AssetDatabase.LoadAssetAtPath(path); + if (s != null && s.name.IndexOf(litOrUnlit, System.StringComparison.OrdinalIgnoreCase) >= 0) + { + resolvedName = s.name; + return s; + } + } + resolvedName = $""; + return null; + } + + private static Shader GetPipelineShader(bool lit, out string shaderName) + { + switch (GetCurrentPipeline()) + { + case Pipeline.URP: + return LoadShaderFromRenderPipelinesFolder(Constants.URPFolder, lit, out shaderName); + case Pipeline.HDRP: + return LoadShaderFromRenderPipelinesFolder(Constants.HDRPFolder, lit, out shaderName); + default: + return LoadShaderFromRenderPipelinesFolder(Constants.BuiltInFolder, lit, out shaderName); + } + + } + + private static System.Collections.Generic.List FindProjectMaterialsUsingShader(Shader shader) + { + var results = new System.Collections.Generic.List(); + if (shader == null) + { + return results; + } + var guids = AssetDatabase.FindAssets("t:material", new[] { "Assets" }); + for (int i = 0; i < guids.Length; i++) + { + var path = AssetDatabase.GUIDToAssetPath(guids[i]); + var mat = AssetDatabase.LoadAssetAtPath(path); + if (mat != null && mat.shader == shader) + { + results.Add(mat); + } + } + results.Sort((a, b) => + { + string ta = AssetDatabase.GetAssetPath(a); + string tb = AssetDatabase.GetAssetPath(b); + bool aPrefer = ta.StartsWith(GetTargetFolderPath()); + bool bPrefer = tb.StartsWith(GetTargetFolderPath()); + if (aPrefer == bPrefer) return string.Compare(ta, tb, System.StringComparison.OrdinalIgnoreCase); + return aPrefer ? -1 : 1; + }); + return results; + } + + private static bool ShaderMatches(Shader candidate, Shader target, string targetName) + { + if (candidate == null) + { + return false; + } + if (target != null && candidate == target) + { + return true; + } + if (!string.IsNullOrEmpty(targetName) && + string.Equals(candidate.name, targetName, System.StringComparison.OrdinalIgnoreCase)) + { + return true; + } + return false; + } + + /// + /// Resolve or create a project-local Rive material with exact-name-first strategy: + /// 1) Use Assets/Plugins/Rive/Materials/<Base+Suffix>.mat if present. + /// 2) Else use any material in Assets with that exact name and matching shader. + /// 3) Else, if materials exist with the matching shader, optionally prompt to use suggested; otherwise create. + /// 4) Else create under Assets/Plugins/Rive/Materials with a unique name. + /// + private static Material LoadOrCreateProjectRiveMaterial(bool lit) + { + if (lit && s_cachedLitMaterial != null) return s_cachedLitMaterial; + if (!lit && s_cachedUnlitMaterial != null) return s_cachedUnlitMaterial; + + string suffix; + string rpFolder = GetRPFolder(out suffix); + string expectedName = GetBaseName(lit) + suffix; + + // 1) Exact expected path in Assets/Plugins/Rive/Materials + string targetFolder = GetTargetFolderPath(); + string targetPath = $"{targetFolder}/{expectedName}.mat"; + var atTarget = AssetDatabase.LoadAssetAtPath(targetPath); + if (atTarget != null) + { + if (lit) s_cachedLitMaterial = atTarget; else s_cachedUnlitMaterial = atTarget; + return atTarget; + } + + // Resolve shader + var shader = GetPipelineShader(lit, out var shaderName); + if (shader == null) + { + Debug.LogWarning($"Rive: Could not resolve shader for current render pipeline (lit={lit})."); + } + + // 2) Exact-name anywhere in Assets with matching shader + string[] nameMatches = AssetDatabase.FindAssets($"t:material {expectedName}", new[] { "Assets" }); + for (int i = 0; i < nameMatches.Length; i++) + { + string path = AssetDatabase.GUIDToAssetPath(nameMatches[i]); + var mat = AssetDatabase.LoadAssetAtPath(path); + // If the user has a material with the exact expected name, prefer it regardless of shader; + // this allows overriding shader source differences (Graph vs HLSL) while honoring the name contract. + if (mat != null && mat.name == expectedName) + { + if (lit) s_cachedLitMaterial = mat; else s_cachedUnlitMaterial = mat; + return mat; + } + } + + // 3) If no exact-name match is found, always create a new material in the Plugins folder. + + // 4) Create new in Assets/Plugins/Rive/Materials with unique name if needed + EnsureAssetFolder(targetFolder); + string basePath = $"{targetFolder}/{expectedName}.mat"; + string uniquePath = AssetDatabase.GenerateUniqueAssetPath(basePath); + + Material toSave = new Material(shader != null ? shader : Shader.Find("Hidden/InternalErrorShader")); + + AssetDatabase.CreateAsset(toSave, uniquePath); + AssetDatabase.SaveAssets(); + AssetDatabase.ImportAsset(uniquePath); + + if (lit) s_cachedLitMaterial = toSave; else s_cachedUnlitMaterial = toSave; + return toSave; + } + + + /// + /// Ensures that the given renderer has Rive materials assigned for any default materials. Unlike ReplaceMaterialsWithRive, this only replaces materials that appear to be Unity default materials that Unity would assign automatically. + /// + /// + internal static void EnsureRiveMaterialsOnRenderer(UnityEngine.Renderer renderer) + { + if (renderer == null) + { + return; + } + + var materials = renderer.sharedMaterials; + bool changed = false; + for (int i = 0; i < materials.Length; i++) + { + var mat = materials[i]; + if (mat == null || mat.shader == null) + { + continue; + } + string shaderName = mat.shader.name; + bool isDefaultLit = false; + bool isDefaultUnlit = false; + + + switch (GetCurrentPipeline()) + { + case Pipeline.URP: + isDefaultLit = shaderName == Constants.UnityDefaultShaderURPLit || + shaderName == "Universal Render Pipeline/Simple Lit"; + isDefaultUnlit = shaderName == Constants.UnityDefaultShaderURPUnlit; + break; + case Pipeline.HDRP: + isDefaultLit = shaderName == Constants.UnityDefaultShaderHDRPLit; + isDefaultUnlit = shaderName == Constants.UnityDefaultShaderHDRPUnlit; + break; + default: + isDefaultLit = shaderName == Constants.UnityDefaultShaderBuiltInLit; + isDefaultUnlit = shaderName.StartsWith(Constants.UnityDefaultShaderBuiltInUnlitPrefix); + break; + } + + if (isDefaultLit || isDefaultUnlit) + { + var target = LoadOrCreateProjectRiveMaterial(lit: !isDefaultUnlit); + if (target != null && target != mat) + { + materials[i] = target; + changed = true; + } + } + } + + if (changed) + { + renderer.sharedMaterials = materials; + EditorUtility.SetDirty(renderer); + } + } + /// + /// Replaces any non-Rive materials on the given renderer with Rive equivalents. Unlike EnsureRiveMaterialsOnRenderer, this will replace any material that is not already a Rive material, even if it's a custom material. + /// + /// + internal static void ReplaceMaterialsWithRive(UnityEngine.Renderer renderer) + { + if (renderer == null) + { + return; + } + var materials = renderer.sharedMaterials; + // If there are no materials at all, assign a single lit material. + if (materials == null || materials.Length == 0) + { + var targetIfNone = LoadOrCreateProjectRiveMaterial(lit: true); + if (targetIfNone != null) + { + renderer.sharedMaterials = new[] { targetIfNone }; + EditorUtility.SetDirty(renderer); + } + return; + } + bool changed = false; + for (int i = 0; i < materials.Length; i++) + { + var mat = materials[i]; + if (mat == null || mat.shader == null) + { + // Replace missing/invalid material with a lit material by default. + var defaultLit = LoadOrCreateProjectRiveMaterial(lit: true); + if (defaultLit != null) + { + materials[i] = defaultLit; + changed = true; + } + continue; + } + string shaderName = mat.shader.name ?? string.Empty; + bool appearsUnlit = + shaderName.IndexOf("unlit", System.StringComparison.OrdinalIgnoreCase) >= 0 || + shaderName.StartsWith("Unlit/", System.StringComparison.OrdinalIgnoreCase); + + var target = LoadOrCreateProjectRiveMaterial(lit: !appearsUnlit); + if (target != null && target != mat) + { + materials[i] = target; + changed = true; + } + } + if (changed) + { + renderer.sharedMaterials = materials; + EditorUtility.SetDirty(renderer); + } + } +#endif + } +} + + diff --git a/package/Runtime/Components/EditorOnly/MaterialConversionUtility.cs.meta b/package/Runtime/Components/EditorOnly/MaterialConversionUtility.cs.meta new file mode 100644 index 000000000..22103c9a0 --- /dev/null +++ b/package/Runtime/Components/EditorOnly/MaterialConversionUtility.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8a7e31256da344ea6847dbe0dde1888a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/Previews/CanvasPanelPreview.cs b/package/Runtime/Components/Previews/CanvasPanelPreview.cs index 1c51c2aca..db5f583ac 100644 --- a/package/Runtime/Components/Previews/CanvasPanelPreview.cs +++ b/package/Runtime/Components/Previews/CanvasPanelPreview.cs @@ -1,124 +1,141 @@ -using UnityEngine; - -#if UNITY_EDITOR -using UnityEditor; -using UnityEditor.SceneManagement; -using UnityEngine.SceneManagement; -#endif - -namespace Rive.Components -{ - /// - /// Handles the preview rendering for the RiveCanvasPanel component in the editor. - /// - internal class CanvasPanelPreview : PanelPreview - { -#if UNITY_EDITOR - private CanvasRendererRawImage m_displayImage; - private Texture m_lastPreviewTexture; - private bool m_isUpdating; - - public CanvasPanelPreview(RivePanel panel) : base(panel) - { - m_displayImage = panel.GetComponent(); - } - - protected override void Initialize() - { - EditorSceneManager.sceneLoaded += OnSceneLoaded; - base.Initialize(); - } - - public override void Dispose() - { - EditorSceneManager.sceneLoaded -= OnSceneLoaded; - CleanupResources(); - base.Dispose(); - } - - private void OnSceneLoaded(Scene arg0, LoadSceneMode arg1) - { - UpdateEditorPreview(); - } - - protected override void CleanupResources() - { - base.CleanupResources(); - if (m_displayImage != null) - { - m_displayImage.CleanupEditorPreview(); - } - m_lastPreviewTexture = null; - m_isUpdating = false; - } - - protected override void UpdateEditorPreview() - { - // We want to prevent multiple calls to UpdateEditorPreview in the same frame - // as that can cause performance issues and glitches - if (!m_isUpdating && RivePanel != null && RivePanel.gameObject.activeInHierarchy && RivePanel.enabled) - { - DelayedUpdatePreview(); - } - - } - - private void DelayedUpdatePreview() - { - // If the scene is not loaded, we don't want to update the preview - // because it can cause issues when switching scenes - if (m_displayImage == null && RivePanel != null) - { - m_displayImage = RivePanel.GetComponent(); - } - - if (m_displayImage == null) - { - m_isUpdating = false; - return; - } - - if (!EditorSceneManager.GetActiveScene().isLoaded || - Application.isPlaying || - RivePanel == null || - m_displayImage == null) - { - m_isUpdating = false; - return; - } - - Texture previewTexture; - - if (RivePanel == null) - { - previewTexture = GetDefaultTexture(); - } - else - { - RenderTexture rt = RenderPreview(); - previewTexture = rt != null ? rt : GetDefaultTexture(); - } - - if (previewTexture != m_lastPreviewTexture || m_displayImage.mainTexture != previewTexture) - { - m_displayImage.UpdateEditorPreview(previewTexture); - - m_lastPreviewTexture = previewTexture; - - // Update PreviewRenderTexture only if the new texture is a RenderTexture - if (previewTexture is RenderTexture) - { - PreviewRenderTexture = previewTexture as RenderTexture; - } - else - { - PreviewRenderTexture = null; - } - } - - m_isUpdating = false; - - } -#endif - } +using UnityEngine; + +#if UNITY_EDITOR +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine.SceneManagement; +#endif + +namespace Rive.Components +{ + /// + /// Handles the preview rendering for the RiveCanvasPanel component in the editor. + /// + internal class CanvasPanelPreview : PanelPreview + { +#if UNITY_EDITOR + private CanvasRendererRawImage m_displayImage; + private Texture m_lastPreviewTexture; + private bool m_isUpdating; + + public CanvasPanelPreview(RivePanel panel) : base(panel) + { + m_displayImage = panel.GetComponent(); + } + + protected override void Initialize() + { + EditorSceneManager.sceneLoaded += OnSceneLoaded; + base.Initialize(); + } + + public override void Dispose() + { + EditorSceneManager.sceneLoaded -= OnSceneLoaded; + CleanupResources(); + base.Dispose(); + } + + private void OnSceneLoaded(Scene arg0, LoadSceneMode arg1) + { + UpdateEditorPreview(); + } + + protected override void CleanupResources() + { + base.CleanupResources(); + if (m_displayImage != null) + { + m_displayImage.CleanupEditorPreview(); + } + m_lastPreviewTexture = null; + m_isUpdating = false; + } + + protected override void UpdateEditorPreview() + { + // We want to prevent multiple calls to UpdateEditorPreview in the same frame + // as that can cause performance issues and glitches + if (!m_isUpdating && RivePanel != null && RivePanel.gameObject.activeInHierarchy && RivePanel.enabled) + { + DelayedUpdatePreview(); + } + + } + + private void DelayedUpdatePreview() + { + // If the scene is not loaded, we don't want to update the preview + // because it can cause issues when switching scenes + if (m_displayImage == null && RivePanel != null) + { + m_displayImage = RivePanel.GetComponent(); + } + + if (m_displayImage == null) + { + m_isUpdating = false; + return; + } + + if (!EditorSceneManager.GetActiveScene().isLoaded || + Application.isPlaying || + RivePanel == null || + m_displayImage == null) + { + m_isUpdating = false; + return; + } + + Texture previewTexture; + + if (RivePanel == null) + { + previewTexture = GetDefaultTexture(); + } + else + { + RenderTexture rt = RenderPreview(); + previewTexture = rt != null ? rt : GetDefaultTexture(); + } + + // Ensure correct color in Linear space by using the decode UI material + if (Rive.TextureHelper.ProjectNeedsColorSpaceFix) + { + var decodeMat = Rive.TextureHelper.GammaToLinearUIMaterial; + if (decodeMat != null && m_displayImage.material != decodeMat) + { + m_displayImage.material = decodeMat; + } + } + else + { + if (m_displayImage.material != null) + { + m_displayImage.material = null; + } + } + + if (previewTexture != m_lastPreviewTexture || m_displayImage.mainTexture != previewTexture) + { + m_displayImage.UpdateEditorPreview(previewTexture); + + m_lastPreviewTexture = previewTexture; + + // Update PreviewRenderTexture only if the new texture is a RenderTexture + if (previewTexture is RenderTexture) + { + PreviewRenderTexture = previewTexture as RenderTexture; + } + else + { + PreviewRenderTexture = null; + } + } + + m_isUpdating = false; + + } +#endif + } } \ No newline at end of file diff --git a/package/Runtime/Components/Previews/WorldspacePanelPreview.cs b/package/Runtime/Components/Previews/WorldspacePanelPreview.cs index 0fc0fa3f9..f0fa7b1a7 100644 --- a/package/Runtime/Components/Previews/WorldspacePanelPreview.cs +++ b/package/Runtime/Components/Previews/WorldspacePanelPreview.cs @@ -111,6 +111,30 @@ private IEnumerator UpdatePreviewCoroutine() previewTexture = rt != null ? rt : GetDefaultTexture(); } + // Apply color correction in Linear color space for correct preview display + // The scene view renders 3D objects normally, so we need to use a material that decodes + // Rive's gamma output to linear for the scene view to display correctly. + if (Rive.TextureHelper.ProjectNeedsColorSpaceFix) + { + var decodeMat = Rive.TextureHelper.GammaToLinearUIMaterial; + if (decodeMat != null && m_previewMaterial != null && m_previewMaterial.shader != decodeMat.shader) + { + m_previewMaterial.shader = decodeMat.shader; + } + } + else + { + // In Gamma color space, use Unlit/Transparent, no need to decode anything. + if (m_previewMaterial != null && m_previewMaterial.shader.name != "Unlit/Transparent") + { + Shader unlitTransparent = Shader.Find("Unlit/Transparent"); + if (unlitTransparent != null) + { + m_previewMaterial.shader = unlitTransparent; + } + } + } + if (previewTexture != m_lastPreviewTexture) { if (m_previewMaterial != null) diff --git a/package/Runtime/Components/Public/PanelRenderers/RiveCanvasRenderer.cs b/package/Runtime/Components/Public/PanelRenderers/RiveCanvasRenderer.cs index ab12787d6..f367c0c01 100644 --- a/package/Runtime/Components/Public/PanelRenderers/RiveCanvasRenderer.cs +++ b/package/Runtime/Components/Public/PanelRenderers/RiveCanvasRenderer.cs @@ -1,5 +1,6 @@ using Rive.EditorTools; using Rive.Utils; +using Rive; using UnityEngine; namespace Rive.Components @@ -248,10 +249,19 @@ private void Start() private void UpdateCustomMaterial() { - if (DisplayImage != null) + if (DisplayImage == null) { - DisplayImage.material = m_customMaterial; + return; + } + + Material materialToApply = m_customMaterial; + + if (materialToApply == null && Application.isPlaying && TextureHelper.ProjectNeedsColorSpaceFix) + { + materialToApply = TextureHelper.GammaToLinearUIMaterial; } + + DisplayImage.material = materialToApply; } diff --git a/package/Runtime/Components/Public/PanelRenderers/RiveTextureRenderer.cs b/package/Runtime/Components/Public/PanelRenderers/RiveTextureRenderer.cs index 9bea81f89..f6c382969 100644 --- a/package/Runtime/Components/Public/PanelRenderers/RiveTextureRenderer.cs +++ b/package/Runtime/Components/Public/PanelRenderers/RiveTextureRenderer.cs @@ -1,509 +1,525 @@ -using System; -using System.Collections.Generic; -using Rive.EditorTools; -using Rive.Utils; -using UnityEngine; -using UnityEngine.Serialization; - -namespace Rive.Components -{ - /// - /// Renders a RivePanel to a texture. This component should be attached to a GameObject that has a Renderer component. - /// - [AddComponentMenu("Rive/Rive Texture Renderer")] -#if UNITY_EDITOR - [InspectorSection(InspectorSections.RendererSettings, "Renderer Settings", startExpanded: true)] - [HideComponents(hideFlags: HideFlags.HideInInspector, typeof(TexturePanelInputProvider), typeof(PanelVisibilityOptimizer))] -#endif - public class RiveTextureRenderer : PanelRenderer - { - private static class InspectorSections - { - - public const string RendererSettings = "RendererSettings"; - } - - public enum TextureAssignmentMode - { - /// - /// Sets the texture to the main texture of the material. - /// - MainTexture = 0, - - /// - /// Sets the texture to the specified material properties. - /// - TextureProperties = 1 - } - - [Tooltip("The RivePanel to display")] - [InspectorField(displayName: "Rive Panel")] - [SerializeField] private RivePanel m_initialRivePanel; - - private IRivePanel m_rivePanel; - - [InspectorField(InspectorSections.RendererSettings, displayName: "Mesh Renderer")] - [Tooltip("The MeshRenderer that will display the Rive graphic.")] - [SerializeField] private UnityEngine.Renderer m_objectRenderer; - - [InspectorField(InspectorSections.RendererSettings)] - [Tooltip("Determines how the texture is set on the material. If set to MainTexture, the texture is set to the main texture of the material. If set to TextureProperties, the texture is set to the specified material properties.")] - [SerializeField] private TextureAssignmentMode m_textureAssignmentMode = TextureAssignmentMode.MainTexture; - - - [Tooltip("Determines the RivePanel will automatically stop rendering when the mesh is not visible to the camera.")] - [SerializeField] private VisibilityOptimizationMode m_visibilityOptimization = VisibilityOptimizationMode.AlwaysRender; - - private Material[] m_materials; - - - private PanelVisibilityOptimizer m_visibilityOptimizer; - - private TexturePanelInputProvider m_inputProvider; - - - - /// - /// Inherits from SerializedDictionary to store the material property names. This is needed because Unity does not properly serialize Lists within Lists in the SerializedDictionary. - /// - [System.Serializable] - internal class SerializedDictionary_Material_ListString : SerializedDictionary - { - - } - // We use a custom editor to display the material property names in a more user-friendly way - - // We use a holder class to store the list of property names for each material because Unity does not properly serialize Lists within Lists in the SerializedDictionary. - [System.Serializable] - internal class PropertyNameListHolder - { - [SerializeField] - List m_propertyNames = new List(); - - - private List m_propertyIDs; - public List PropertyNames => m_propertyNames; - - public List PropertyIDs - { - get - { - if (m_propertyIDs == null || m_propertyIDs.Count != m_propertyNames.Count) - { - UpdatePropertyIDs(); - } - return m_propertyIDs; - } - } - - public void UpdatePropertyIDs() - { - if (m_propertyIDs == null) - { - m_propertyIDs = new List(); - } - m_propertyIDs.Clear(); - for (int i = 0; i < m_propertyNames.Count; i++) - { - m_propertyIDs.Add(Shader.PropertyToID(m_propertyNames[i])); - } - } - -#if UNITY_EDITOR - public static string BindingPath_PropertyNames => nameof(m_propertyNames); -#endif - } - - -#if UNITY_EDITOR - [ShowIf(nameof(ShouldShowMaterialPropertyNames))] - [InspectorField(InspectorSections.RendererSettings)] - [Tooltip("The material properties to set the texture to.")] - [MaterialProperties(nameof(GetRendererMaterials), UnityEditor.ShaderUtil.ShaderPropertyType.TexEnv)] -#endif - [SerializeField] - private SerializedDictionary_Material_ListString m_materialPropertyNameData = new SerializedDictionary_Material_ListString(); - - -#if UNITY_EDITOR - - private Material[] GetRendererMaterials() - { - if (m_objectRenderer == null) - { - return new Material[0]; - } - - return m_objectRenderer.sharedMaterials; - } - - private bool ShouldShowMaterialPropertyNames => m_textureAssignmentMode == TextureAssignmentMode.TextureProperties; - - - protected override void OnValidate() - { - base.OnValidate(); - - if (m_objectRenderer == null || !ReferenceEquals(m_objectRenderer.gameObject, this.gameObject)) - { - m_objectRenderer = GetComponent(); - } - } - - -#endif - - - /// - /// Returns the Renderer component that is used to render the Rive graphic. - /// - public UnityEngine.Renderer Renderer => m_objectRenderer; - - /// - /// The mode of setting the material texture. Use this to determine how the texture is set on the material. - /// - public TextureAssignmentMode MaterialTextureAssignmentMode - { - get => m_textureAssignmentMode; - set - { - m_textureAssignmentMode = value; - } - } - - - /// - /// Determines if the RivePanel should stop rendering when the mesh is not visible to the camera. - /// - public VisibilityOptimizationMode VisibilityOptimization - { - get - { - if (m_visibilityOptimizer != null) - { - return m_visibilityOptimizer.VisibilityMode; - } - - return m_visibilityOptimization; - } - set - { - m_visibilityOptimization = value; - if (m_visibilityOptimizer != null) - { - m_visibilityOptimizer.VisibilityMode = value; - } - } - } - - /// - /// Gets the number of materials that have property names assigned. - /// - public int MaterialPropertyCount => m_materialPropertyNameData.Count; - - - public override IRivePanel RivePanel - { - get - { - // Outside of play mode, we want to reference the serialized field. - if (!Application.isPlaying) - { - return m_initialRivePanel; - } - return m_rivePanel; - } - internal set - { - - m_initialRivePanel = value as RivePanel; - } - } - - public Action OnPanelChanged; - - /// - /// Sets the RivePanel that this renderer will render. - /// - /// - public void SetPanel(IRivePanel panel) - { - if (ReferenceEquals(m_rivePanel, panel)) - { - return; - } - - if (m_rivePanel != null) - { - m_rivePanel.UnregisterInputProvider(m_inputProvider); - - UnsubscribeFromPanelEvents(); - } - m_rivePanel = panel; - - if (m_rivePanel != null) - { - if (m_inputProvider != null) - { - m_rivePanel.RegisterInputProvider(m_inputProvider); - - } - SubscribeToPanelEvents(); - } - - UpdateVisualTarget(); - - OnPanelChanged?.Invoke(); - } - - protected override void OnEnable() - { - Setup(); - base.OnEnable(); - - if (m_rivePanel != null && m_inputProvider != null) - { - RivePanel.RegisterInputProvider(m_inputProvider); - } - } - - protected override void OnDisable() - { - base.OnDisable(); - - if (m_rivePanel != null && m_inputProvider != null) - { - m_rivePanel.UnregisterInputProvider(m_inputProvider); - } - - } - - private void LogInputErrorWarningsIfNeeded() - { - if (PointerInputMode == PointerInputMode.DisablePointerInput) - { - return; - } - // If there's no event system in the scene, we log a warning. - if (UnityEngine.EventSystems.EventSystem.current == null) - { - DebugLogger.Instance.LogWarning($"No EventSystem found in the scene. Please add an {nameof(UnityEngine.EventSystems.EventSystem)} to the scene to receive pointer input events."); - } - -#if UNITY_EDITOR - var camera = Camera.main; - if (camera != null && camera.gameObject.GetComponent() == null) - { - DebugLogger.Instance.LogWarning($"No {nameof(UnityEngine.EventSystems.PhysicsRaycaster)} found on the main camera. Please add a {nameof(UnityEngine.EventSystems.PhysicsRaycaster)} component to the main camera to receive pointer input events. Or set the {nameof(PointerInputMode)} to {nameof(PointerInputMode.DisablePointerInput)}."); - } - -#endif - - } - - private void Start() - { - LogInputErrorWarningsIfNeeded(); - - - - - - } - - - - private void SpawnVisibilityOptimizerIfNeeded() - { - if (m_objectRenderer == null || m_visibilityOptimizer != null) - { - return; - } - - - - if (!m_objectRenderer.TryGetComponent(out m_visibilityOptimizer)) - { - // We add the component to the GameObject that has the Renderer component because we can't be certain that it's the same GameObject as the RivePanel. - m_visibilityOptimizer = m_objectRenderer.gameObject.AddComponent(); - } - - m_visibilityOptimizer.VisibilityMode = m_visibilityOptimization; - } - - public IEnumerable GetMaterialPropertyNames(int materialIndex) - { - return m_materialPropertyNameData.TryGetValue(materialIndex, out var holder) - ? holder.PropertyNames - : Array.Empty(); - } - - public void SetMaterialPropertyNames(int materialIndex, IEnumerable propertyNames) - { - if (!m_materialPropertyNameData.TryGetValue(materialIndex, out var holder)) - { - holder = new PropertyNameListHolder(); - m_materialPropertyNameData[materialIndex] = holder; - } - holder.PropertyNames.Clear(); - holder.PropertyNames.AddRange(propertyNames); - - // Force recreation of property IDs on next use - holder.UpdatePropertyIDs(); - } - - public void ClearMaterialPropertyNames() - { - m_materialPropertyNameData.Clear(); - } - - - - - /// - /// Checks if a material index has any property names assigned. - /// - public bool HasPropertyNames(int materialIndex) => m_materialPropertyNameData.ContainsKey(materialIndex); - - - private void SetMaterialTexture(RenderTexture texture, Vector2 offset, Vector2 scale) - { - if (m_objectRenderer == null) - { - return; - } - // We loop through all the material properties and set the texture to all of them. - // We do this because the material might have multiple textures that we want to update. - // We also need to account for there being multiple materials on the renderer. - - for (int i = 0; i < m_materials.Length; i++) - { - var material = m_materials[i]; - if (material == null) - { - continue; - } - - if (m_textureAssignmentMode == TextureAssignmentMode.MainTexture) - { - material.mainTexture = texture; - material.mainTextureOffset = offset; - material.mainTextureScale = scale; - } - else if (m_textureAssignmentMode == TextureAssignmentMode.TextureProperties) - { - if (m_materialPropertyNameData.TryGetValue(i, out var holder)) - { - var propertyIDs = holder.PropertyIDs; - for (int g = 0; g < propertyIDs.Count; g++) - { - material.SetTexture(propertyIDs[g], texture); - material.SetTextureOffset(propertyIDs[g], offset); - material.SetTextureScale(propertyIDs[g], scale); - } - } - } - } - } - - private void Setup() - { - if (m_objectRenderer == null) - { - m_objectRenderer = GetComponent(); - } - - if (m_objectRenderer == null) - { - DebugLogger.Instance.Log($"No {nameof(UnityEngine.Renderer)} found. Please assign a renderer to the {nameof(RiveTextureRenderer)}."); - return; - } - - if (m_rivePanel == null) - { - m_rivePanel = m_initialRivePanel; - } - - // Cache the materials so we can set the texture on them later - m_materials = m_objectRenderer.materials; - - - SpawnVisibilityOptimizerIfNeeded(); - - SpawnInputProviderIfNeeded(); - - - } - - /// - /// Spawns the input provider on the game object that has the MeshRenderer and collider. The input provider receives IPointer events from the Unity Event System and forwards them to the RiveWidgets, so it needs to be attached to the same GameObject that receives the events, which is the Render game object with the collider. - /// - private void SpawnInputProviderIfNeeded() - { - if (m_objectRenderer == null) - { - return; - } - - if (m_inputProvider != null) - { - return; - } - - if (!m_objectRenderer.gameObject.TryGetComponent(out m_inputProvider)) - { - m_inputProvider = m_objectRenderer.gameObject.AddComponent(); - } - - } - - - protected override void UpdateVisualTarget() - { - var renderTexture = RivePanel.RenderTexture; - - - Vector2 offset = RivePanel.OffsetInRenderTexture; - Vector2 scale = RivePanel.ScaleInRenderTexture; - - SetMaterialTexture(renderTexture, offset, scale); - - } - - /// - /// Refreshes the materials on the renderer. This method should be called after changing the materials on the renderer. - /// - public void RefreshMaterials() - { - m_materials = m_objectRenderer.materials; - - UpdateVisualTarget(); - } - - void OnDestroy() - { - - if (m_materials == null) - { - return; - } - // Destroy the materials that we instantiated. - for (int i = m_materials.Length - 1; i >= 0; i--) - { - var material = m_materials[i]; - - if (material == null) - { - continue; - } - Destroy(material); - } - - - - } - - - - } -} +using System; +using System.Collections.Generic; +using Rive.EditorTools; +using Rive.Utils; +using UnityEngine; +using UnityEngine.Serialization; + +namespace Rive.Components +{ + /// + /// Renders a RivePanel to a texture. This component should be attached to a GameObject that has a Renderer component. + /// + [AddComponentMenu("Rive/Rive Texture Renderer")] +#if UNITY_EDITOR + [InspectorSection(InspectorSections.RendererSettings, "Renderer Settings", startExpanded: true)] + [HideComponents(hideFlags: HideFlags.HideInInspector, typeof(TexturePanelInputProvider), typeof(PanelVisibilityOptimizer))] +#endif + public class RiveTextureRenderer : PanelRenderer + { + private static class InspectorSections + { + + public const string RendererSettings = "RendererSettings"; + } + + public enum TextureAssignmentMode + { + /// + /// Sets the texture to the main texture of the material. + /// + MainTexture = 0, + + /// + /// Sets the texture to the specified material properties. + /// + TextureProperties = 1 + } + + [Tooltip("The RivePanel to display")] + [InspectorField(displayName: "Rive Panel")] + [SerializeField] private RivePanel m_initialRivePanel; + + private IRivePanel m_rivePanel; + + [InspectorField(InspectorSections.RendererSettings, displayName: "Mesh Renderer")] + [Tooltip("The MeshRenderer that will display the Rive graphic.")] + [SerializeField] private UnityEngine.Renderer m_objectRenderer; + + [InspectorField(InspectorSections.RendererSettings)] + [Tooltip("Determines how the texture is set on the material. If set to MainTexture, the texture is set to the main texture of the material. If set to TextureProperties, the texture is set to the specified material properties.")] + [SerializeField] private TextureAssignmentMode m_textureAssignmentMode = TextureAssignmentMode.MainTexture; + + + [Tooltip("Determines the RivePanel will automatically stop rendering when the mesh is not visible to the camera.")] + [SerializeField] private VisibilityOptimizationMode m_visibilityOptimization = VisibilityOptimizationMode.AlwaysRender; + + private Material[] m_materials; + + + private PanelVisibilityOptimizer m_visibilityOptimizer; + + private TexturePanelInputProvider m_inputProvider; + + + + /// + /// Inherits from SerializedDictionary to store the material property names. This is needed because Unity does not properly serialize Lists within Lists in the SerializedDictionary. + /// + [System.Serializable] + internal class SerializedDictionary_Material_ListString : SerializedDictionary + { + + } + // We use a custom editor to display the material property names in a more user-friendly way + + // We use a holder class to store the list of property names for each material because Unity does not properly serialize Lists within Lists in the SerializedDictionary. + [System.Serializable] + internal class PropertyNameListHolder + { + [SerializeField] + List m_propertyNames = new List(); + + + private List m_propertyIDs; + public List PropertyNames => m_propertyNames; + + public List PropertyIDs + { + get + { + if (m_propertyIDs == null || m_propertyIDs.Count != m_propertyNames.Count) + { + UpdatePropertyIDs(); + } + return m_propertyIDs; + } + } + + public void UpdatePropertyIDs() + { + if (m_propertyIDs == null) + { + m_propertyIDs = new List(); + } + m_propertyIDs.Clear(); + for (int i = 0; i < m_propertyNames.Count; i++) + { + m_propertyIDs.Add(Shader.PropertyToID(m_propertyNames[i])); + } + } + +#if UNITY_EDITOR + public static string BindingPath_PropertyNames => nameof(m_propertyNames); +#endif + } + + +#if UNITY_EDITOR + [ShowIf(nameof(ShouldShowMaterialPropertyNames))] + [InspectorField(InspectorSections.RendererSettings)] + [Tooltip("The material properties to set the texture to.")] + [MaterialProperties(nameof(GetRendererMaterials), UnityEditor.ShaderUtil.ShaderPropertyType.TexEnv)] +#endif + [SerializeField] + private SerializedDictionary_Material_ListString m_materialPropertyNameData = new SerializedDictionary_Material_ListString(); + + +#if UNITY_EDITOR + + private Material[] GetRendererMaterials() + { + if (m_objectRenderer == null) + { + return new Material[0]; + } + + return m_objectRenderer.sharedMaterials; + } + + private bool ShouldShowMaterialPropertyNames => m_textureAssignmentMode == TextureAssignmentMode.TextureProperties; + + + protected override void OnValidate() + { + base.OnValidate(); + + if (m_objectRenderer == null || !ReferenceEquals(m_objectRenderer.gameObject, this.gameObject)) + { + m_objectRenderer = GetComponent(); + } + } + + +#endif + + // Perform one-time conversion of default pipeline materials when the component is first added or Reset is invoked. + void Reset() + { +#if UNITY_EDITOR + + if (m_objectRenderer == null) + { + m_objectRenderer = GetComponent(); + + if (m_objectRenderer == null) + { + return; + } + } + + MaterialConversionUtility.EnsureRiveMaterialsOnRenderer(m_objectRenderer); +#endif + } + + + + + /// + /// Returns the Renderer component that is used to render the Rive graphic. + /// + public UnityEngine.Renderer Renderer => m_objectRenderer; + + /// + /// The mode of setting the material texture. Use this to determine how the texture is set on the material. + /// + public TextureAssignmentMode MaterialTextureAssignmentMode + { + get => m_textureAssignmentMode; + set + { + m_textureAssignmentMode = value; + } + } + + + /// + /// Determines if the RivePanel should stop rendering when the mesh is not visible to the camera. + /// + public VisibilityOptimizationMode VisibilityOptimization + { + get + { + if (m_visibilityOptimizer != null) + { + return m_visibilityOptimizer.VisibilityMode; + } + + return m_visibilityOptimization; + } + set + { + m_visibilityOptimization = value; + if (m_visibilityOptimizer != null) + { + m_visibilityOptimizer.VisibilityMode = value; + } + } + } + + /// + /// Gets the number of materials that have property names assigned. + /// + public int MaterialPropertyCount => m_materialPropertyNameData.Count; + + + public override IRivePanel RivePanel + { + get + { + // Outside of play mode, we want to reference the serialized field. + if (!Application.isPlaying) + { + return m_initialRivePanel; + } + return m_rivePanel; + } + internal set + { + + m_initialRivePanel = value as RivePanel; + } + } + + public Action OnPanelChanged; + + /// + /// Sets the RivePanel that this renderer will render. + /// + /// + public void SetPanel(IRivePanel panel) + { + if (ReferenceEquals(m_rivePanel, panel)) + { + return; + } + + if (m_rivePanel != null) + { + m_rivePanel.UnregisterInputProvider(m_inputProvider); + + UnsubscribeFromPanelEvents(); + } + m_rivePanel = panel; + + if (m_rivePanel != null) + { + if (m_inputProvider != null) + { + m_rivePanel.RegisterInputProvider(m_inputProvider); + + } + SubscribeToPanelEvents(); + } + + UpdateVisualTarget(); + + OnPanelChanged?.Invoke(); + } + + protected override void OnEnable() + { + Setup(); + base.OnEnable(); + + if (m_rivePanel != null && m_inputProvider != null) + { + RivePanel.RegisterInputProvider(m_inputProvider); + } + } + + protected override void OnDisable() + { + base.OnDisable(); + + if (m_rivePanel != null && m_inputProvider != null) + { + m_rivePanel.UnregisterInputProvider(m_inputProvider); + } + + } + + private void LogInputErrorWarningsIfNeeded() + { + if (PointerInputMode == PointerInputMode.DisablePointerInput) + { + return; + } + // If there's no event system in the scene, we log a warning. + if (UnityEngine.EventSystems.EventSystem.current == null) + { + DebugLogger.Instance.LogWarning($"No EventSystem found in the scene. Please add an {nameof(UnityEngine.EventSystems.EventSystem)} to the scene to receive pointer input events."); + } + +#if UNITY_EDITOR + var camera = Camera.main; + if (camera != null && camera.gameObject.GetComponent() == null) + { + DebugLogger.Instance.LogWarning($"No {nameof(UnityEngine.EventSystems.PhysicsRaycaster)} found on the main camera. Please add a {nameof(UnityEngine.EventSystems.PhysicsRaycaster)} component to the main camera to receive pointer input events. Or set the {nameof(PointerInputMode)} to {nameof(PointerInputMode.DisablePointerInput)}."); + } + +#endif + + } + + private void Start() + { + LogInputErrorWarningsIfNeeded(); + } + + + + private void SpawnVisibilityOptimizerIfNeeded() + { + if (m_objectRenderer == null || m_visibilityOptimizer != null) + { + return; + } + + + + if (!m_objectRenderer.TryGetComponent(out m_visibilityOptimizer)) + { + // We add the component to the GameObject that has the Renderer component because we can't be certain that it's the same GameObject as the RivePanel. + m_visibilityOptimizer = m_objectRenderer.gameObject.AddComponent(); + } + + m_visibilityOptimizer.VisibilityMode = m_visibilityOptimization; + } + + public IEnumerable GetMaterialPropertyNames(int materialIndex) + { + return m_materialPropertyNameData.TryGetValue(materialIndex, out var holder) + ? holder.PropertyNames + : Array.Empty(); + } + + public void SetMaterialPropertyNames(int materialIndex, IEnumerable propertyNames) + { + if (!m_materialPropertyNameData.TryGetValue(materialIndex, out var holder)) + { + holder = new PropertyNameListHolder(); + m_materialPropertyNameData[materialIndex] = holder; + } + holder.PropertyNames.Clear(); + holder.PropertyNames.AddRange(propertyNames); + + // Force recreation of property IDs on next use + holder.UpdatePropertyIDs(); + } + + public void ClearMaterialPropertyNames() + { + m_materialPropertyNameData.Clear(); + } + + + + + /// + /// Checks if a material index has any property names assigned. + /// + public bool HasPropertyNames(int materialIndex) => m_materialPropertyNameData.ContainsKey(materialIndex); + + + private void SetMaterialTexture(RenderTexture texture, Vector2 offset, Vector2 scale) + { + if (m_objectRenderer == null) + { + return; + } + // We loop through all the material properties and set the texture to all of them. + // We do this because the material might have multiple textures that we want to update. + // We also need to account for there being multiple materials on the renderer. + + for (int i = 0; i < m_materials.Length; i++) + { + var material = m_materials[i]; + if (material == null) + { + continue; + } + + if (m_textureAssignmentMode == TextureAssignmentMode.MainTexture) + { + material.mainTexture = texture; + material.mainTextureOffset = offset; + material.mainTextureScale = scale; + } + else if (m_textureAssignmentMode == TextureAssignmentMode.TextureProperties) + { + if (m_materialPropertyNameData.TryGetValue(i, out var holder)) + { + var propertyIDs = holder.PropertyIDs; + for (int g = 0; g < propertyIDs.Count; g++) + { + material.SetTexture(propertyIDs[g], texture); + material.SetTextureOffset(propertyIDs[g], offset); + material.SetTextureScale(propertyIDs[g], scale); + } + } + } + } + } + + private void Setup() + { + if (m_objectRenderer == null) + { + m_objectRenderer = GetComponent(); + } + + if (m_objectRenderer == null) + { + DebugLogger.Instance.Log($"No {nameof(UnityEngine.Renderer)} found. Please assign a renderer to the {nameof(RiveTextureRenderer)}."); + return; + } + + if (m_rivePanel == null) + { + m_rivePanel = m_initialRivePanel; + } + + // Cache the materials so we can set the texture on them later + m_materials = m_objectRenderer.materials; + + + SpawnVisibilityOptimizerIfNeeded(); + + SpawnInputProviderIfNeeded(); + + + } + + /// + /// Spawns the input provider on the game object that has the MeshRenderer and collider. The input provider receives IPointer events from the Unity Event System and forwards them to the RiveWidgets, so it needs to be attached to the same GameObject that receives the events, which is the Render game object with the collider. + /// + private void SpawnInputProviderIfNeeded() + { + if (m_objectRenderer == null) + { + return; + } + + if (m_inputProvider != null) + { + return; + } + + if (!m_objectRenderer.gameObject.TryGetComponent(out m_inputProvider)) + { + m_inputProvider = m_objectRenderer.gameObject.AddComponent(); + } + + } + + + protected override void UpdateVisualTarget() + { + var renderTexture = RivePanel.RenderTexture; + + + Vector2 offset = RivePanel.OffsetInRenderTexture; + Vector2 scale = RivePanel.ScaleInRenderTexture; + + SetMaterialTexture(renderTexture, offset, scale); + + } + + /// + /// Refreshes the materials on the renderer. This method should be called after changing the materials on the renderer. + /// + public void RefreshMaterials() + { + m_materials = m_objectRenderer.materials; + + UpdateVisualTarget(); + } + + void OnDestroy() + { + + if (m_materials == null) + { + return; + } + // Destroy the materials that we instantiated. + for (int i = m_materials.Length - 1; i >= 0; i--) + { + var material = m_materials[i]; + + if (material == null) + { + continue; + } + Destroy(material); + } + + + + } + + + + } +} diff --git a/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders.meta b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders.meta new file mode 100644 index 000000000..a015cf09f --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2e8493f6b43b2497c8a39a658918727f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Lit.shadergraph b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Lit.shadergraph new file mode 100644 index 000000000..7a5e0cae0 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Lit.shadergraph @@ -0,0 +1,1993 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "4098f6a1a61540a389a7bd043c203452", + "m_Properties": [ + { + "m_Id": "2a0fc11ff11745fbae58a8e255270113" + }, + { + "m_Id": "81ca8a168f9c4e17b490fd23d29bfec5" + }, + { + "m_Id": "8c2ee6de8ac44969afc807897aec8963" + }, + { + "m_Id": "e540e490b602446c82e9bc1e1de48847" + }, + { + "m_Id": "c639c3809c6f4963b3aa7422aa39259f" + }, + { + "m_Id": "a0a1a7b3ccf149bf9fab4f25cbf04621" + }, + { + "m_Id": "0b563b81796b44489ab147673a69538d" + } + ], + "m_Keywords": [ + { + "m_Id": "d09ad266770042b783f41774f95255a0" + } + ], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "48d1691978ed405387844998eb582a38" + } + ], + "m_Nodes": [ + { + "m_Id": "9f2fe456fc3b4ebb9a19c3045d7ca0db" + }, + { + "m_Id": "a878504fb615472bbc92981bc85f2022" + }, + { + "m_Id": "48602648207f44cba0b1494f9cde4496" + }, + { + "m_Id": "179a2a6df6064ef69f4aa621baad2d2e" + }, + { + "m_Id": "e8449ac4440842089ed71d24ae1abbdc" + }, + { + "m_Id": "2ce12b55d78441a3aedf83368b0eaeb2" + }, + { + "m_Id": "588955e76cd0400088929404da30207c" + }, + { + "m_Id": "ce79319b1f18421c8a11de70d1616779" + }, + { + "m_Id": "02f2af5cbb1a45f9a0af7b0b4cdc862d" + }, + { + "m_Id": "579f39a209ac4a00be6e05f7b10e188c" + }, + { + "m_Id": "01d2d5ea9fbc4b179f32a0927a47c850" + }, + { + "m_Id": "921a017b3b77432f928fd08d62758430" + }, + { + "m_Id": "7e7f3c2a0a59469e9f8da0fef2c555ab" + }, + { + "m_Id": "a6611900bc41403e8cadb05d29d07447" + }, + { + "m_Id": "f7b5dc0511224e8597b295ae31b079e8" + }, + { + "m_Id": "cdc2a37a66084667be8fa90fd47552a0" + }, + { + "m_Id": "11ebbe5ac2bc47918e9c37323e419f7a" + }, + { + "m_Id": "828d5b03117e4ec091f676889638d4be" + }, + { + "m_Id": "2d09cfbcb6d24c4f9c46dfe49d14b1f0" + }, + { + "m_Id": "006a0310de774ad9888bec215ae3fa75" + }, + { + "m_Id": "8f7b504968c94a8e97b294b8cf6817cf" + } + ], + "m_GroupDatas": [ + { + "m_Id": "826bd371d8994a52b649a0d87cc81f81" + }, + { + "m_Id": "761963ffa72d42e180a4200f889aa3bc" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "006a0310de774ad9888bec215ae3fa75" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a6611900bc41403e8cadb05d29d07447" + }, + "m_SlotId": -1281716962 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "11ebbe5ac2bc47918e9c37323e419f7a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2ce12b55d78441a3aedf83368b0eaeb2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2d09cfbcb6d24c4f9c46dfe49d14b1f0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a6611900bc41403e8cadb05d29d07447" + }, + "m_SlotId": -680323842 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7e7f3c2a0a59469e9f8da0fef2c555ab" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ce79319b1f18421c8a11de70d1616779" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "828d5b03117e4ec091f676889638d4be" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "588955e76cd0400088929404da30207c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8f7b504968c94a8e97b294b8cf6817cf" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "01d2d5ea9fbc4b179f32a0927a47c850" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "921a017b3b77432f928fd08d62758430" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "179a2a6df6064ef69f4aa621baad2d2e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "921a017b3b77432f928fd08d62758430" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "579f39a209ac4a00be6e05f7b10e188c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a6611900bc41403e8cadb05d29d07447" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7e7f3c2a0a59469e9f8da0fef2c555ab" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cdc2a37a66084667be8fa90fd47552a0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "921a017b3b77432f928fd08d62758430" + }, + "m_SlotId": 1190027673 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f7b5dc0511224e8597b295ae31b079e8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "921a017b3b77432f928fd08d62758430" + }, + "m_SlotId": 1334702512 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "9f2fe456fc3b4ebb9a19c3045d7ca0db" + }, + { + "m_Id": "a878504fb615472bbc92981bc85f2022" + }, + { + "m_Id": "48602648207f44cba0b1494f9cde4496" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "179a2a6df6064ef69f4aa621baad2d2e" + }, + { + "m_Id": "e8449ac4440842089ed71d24ae1abbdc" + }, + { + "m_Id": "2ce12b55d78441a3aedf83368b0eaeb2" + }, + { + "m_Id": "588955e76cd0400088929404da30207c" + }, + { + "m_Id": "ce79319b1f18421c8a11de70d1616779" + }, + { + "m_Id": "02f2af5cbb1a45f9a0af7b0b4cdc862d" + }, + { + "m_Id": "579f39a209ac4a00be6e05f7b10e188c" + }, + { + "m_Id": "01d2d5ea9fbc4b179f32a0927a47c850" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Rive/Built-in Render Pipeline", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "0e7c1f51af3f48cd9eec29075fed4974" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "006a0310de774ad9888bec215ae3fa75", + "m_Group": { + "m_Id": "761963ffa72d42e180a4200f889aa3bc" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1172.5, + "y": 682.0, + "width": 151.00006103515626, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "0f7829720fdb4f488b38729be88e5ab2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2a0fc11ff11745fbae58a8e255270113" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "01d2d5ea9fbc4b179f32a0927a47c850", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "ba21ea3ac7184ac7934508c7644d50f9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "02f2af5cbb1a45f9a0af7b0b4cdc862d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "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": "cfa87eff0748450d848f35fa65cee7a5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "05d4cc6185954d34a644d234a88e432a", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "0b563b81796b44489ab147673a69538d", + "m_Guid": { + "m_GuidSerialized": "51187f8e-b3b7-4dee-84d9-503c4a4fd1df" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "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": 0.5, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0c040165ab8a4d0b9b56ef516551b901", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInTarget", + "m_ObjectId": "0e7c1f51af3f48cd9eec29075fed4974", + "m_ActiveSubTarget": { + "m_Id": "194d445a943740fb8d358e46a7fda29d" + }, + "m_AllowMaterialOverride": true, + "m_SurfaceType": 1, + "m_ZWriteControl": 0, + "m_ZTestMode": 4, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CustomEditorGUI": "" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "0f7829720fdb4f488b38729be88e5ab2", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "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.PropertyNode", + "m_ObjectId": "11ebbe5ac2bc47918e9c37323e419f7a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -604.1569213867188, + "y": 293.6661376953125, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "0c040165ab8a4d0b9b56ef516551b901" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e540e490b602446c82e9bc1e1de48847" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "121e4df78be441dea07c0e2b2a2863bb", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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.BlockNode", + "m_ObjectId": "179a2a6df6064ef69f4aa621baad2d2e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "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": "1ea7d6272fed4651b5ffbf5c2c55dfab" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "18bfde8172d449f5b47af1d451333d37", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInLitSubTarget", + "m_ObjectId": "194d445a943740fb8d358e46a7fda29d", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "1ea7d6272fed4651b5ffbf5c2c55dfab", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "289471af076c4276ae3beaafae636092", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "2a0fc11ff11745fbae58a8e255270113", + "m_Guid": { + "m_GuidSerialized": "e8d32507-0585-4165-b689-0e786c71e23b" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "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": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.003921568859368563 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "2ce12b55d78441a3aedf83368b0eaeb2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "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": "667c15a82a8e4e47bc5199734b658eb2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2d09cfbcb6d24c4f9c46dfe49d14b1f0", + "m_Group": { + "m_Id": "761963ffa72d42e180a4200f889aa3bc" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1174.0, + "y": 741.5, + "width": 152.50006103515626, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "8a970bd9737d4c70916e16b6c72cb006" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "81ca8a168f9c4e17b490fd23d29bfec5" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "3ba6c8a698ea4f12a219a246a6a083ed", + "m_Id": 1190027673, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "40a90148709b43efa6ac0f7d241361d0", + "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.Vector1MaterialSlot", + "m_ObjectId": "4700f29aea044a02b8c70d154263a580", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "48602648207f44cba0b1494f9cde4496", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "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": "c4b0c725d82342c49111724fea52551d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "48d1691978ed405387844998eb582a38", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "a0a1a7b3ccf149bf9fab4f25cbf04621" + }, + { + "m_Id": "d09ad266770042b783f41774f95255a0" + }, + { + "m_Id": "c639c3809c6f4963b3aa7422aa39259f" + }, + { + "m_Id": "e540e490b602446c82e9bc1e1de48847" + }, + { + "m_Id": "8c2ee6de8ac44969afc807897aec8963" + }, + { + "m_Id": "81ca8a168f9c4e17b490fd23d29bfec5" + }, + { + "m_Id": "2a0fc11ff11745fbae58a8e255270113" + }, + { + "m_Id": "0b563b81796b44489ab147673a69538d" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4c936cb861624b99946a5c431d1d115a", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "579f39a209ac4a00be6e05f7b10e188c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "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": "e41f1e9b5e9d4085807c5eb3a1a808cd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "588955e76cd0400088929404da30207c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "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": "d89f2f3643754337a808610951ebe432" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5d81a64da39b4e9c97762e3bcddabf93", + "m_Id": -1281716962, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "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.Vector1MaterialSlot", + "m_ObjectId": "667c15a82a8e4e47bc5199734b658eb2", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "761963ffa72d42e180a4200f889aa3bc", + "m_Title": "Emission", + "m_Position": { + "x": -1199.0, + "y": 470.5 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "7c9be3cac93f459d9bb1a415e2923cd7", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.KeywordNode", + "m_ObjectId": "7e7f3c2a0a59469e9f8da0fef2c555ab", + "m_Group": { + "m_Id": "761963ffa72d42e180a4200f889aa3bc" + }, + "m_Name": "Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -423.0, + "y": 592.5, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "40a90148709b43efa6ac0f7d241361d0" + }, + { + "m_Id": "cb011b3461d948eb89b7eeb2d4bf56e5" + }, + { + "m_Id": "9c7fab440f5847eeb2d0b35822d207eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Keyword": { + "m_Id": "d09ad266770042b783f41774f95255a0" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "81ca8a168f9c4e17b490fd23d29bfec5", + "m_Guid": { + "m_GuidSerialized": "28fd325d-a234-49df-a1af-5a626526e80a" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "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": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "826bd371d8994a52b649a0d87cc81f81", + "m_Title": "Main Texture", + "m_Position": { + "x": -869.0000610351563, + "y": -207.50006103515626 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "828d5b03117e4ec091f676889638d4be", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -588.86181640625, + "y": 373.20074462890627, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "8edd7013382d494d903e596c1bcbfd7d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8c2ee6de8ac44969afc807897aec8963" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "8a970bd9737d4c70916e16b6c72cb006", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "8c2ee6de8ac44969afc807897aec8963", + "m_Guid": { + "m_GuidSerialized": "480fa37f-3add-4a10-b636-e16d827e803e" + }, + "m_Name": "Smoothness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Smoothness", + "m_DefaultReferenceName": "_Smoothness", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8edd7013382d494d903e596c1bcbfd7d", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "8f7b504968c94a8e97b294b8cf6817cf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -299.7841796875, + "y": 490.97308349609377, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "4700f29aea044a02b8c70d154263a580" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "0b563b81796b44489ab147673a69538d" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "921a017b3b77432f928fd08d62758430", + "m_Group": { + "m_Id": "826bd371d8994a52b649a0d87cc81f81" + }, + "m_Name": "SampleMainRiveTexture", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -511.499755859375, + "y": -149.000244140625, + "width": 235.499755859375, + "height": 303.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "c589a8d6f4b24aa0b7c804c6b193def3" + }, + { + "m_Id": "3ba6c8a698ea4f12a219a246a6a083ed" + }, + { + "m_Id": "05d4cc6185954d34a644d234a88e432a" + }, + { + "m_Id": "4c936cb861624b99946a5c431d1d115a" + } + ], + "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\": \"287ae8d259edf47cf9ec073950debe11\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "4b65a152-6b9e-429e-bbc1-bebac7fac8fc", + "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + ], + "m_PropertyIds": [ + 1334702512, + 1190027673 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9c7fab440f5847eeb2d0b35822d207eb", + "m_Id": 2, + "m_DisplayName": "Off", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Off", + "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.BlockNode", + "m_ObjectId": "9f2fe456fc3b4ebb9a19c3045d7ca0db", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "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": "c98289edea1f4376acc039d24722b2e7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9f7387dc94e34e5b8d048abd47f23d46", + "m_Id": -680323842, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "a0a1a7b3ccf149bf9fab4f25cbf04621", + "m_Guid": { + "m_GuidSerialized": "e2244111-b527-4244-935b-34e6f93b48bb" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "a1ef5bc5ae234dd297818a83f7f7e80e", + "m_Id": 1, + "m_DisplayName": "Out_Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Emission", + "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.SubGraphNode", + "m_ObjectId": "a6611900bc41403e8cadb05d29d07447", + "m_Group": { + "m_Id": "761963ffa72d42e180a4200f889aa3bc" + }, + "m_Name": "SampleEmission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -944.4998779296875, + "y": 591.5, + "width": 248.4998779296875, + "height": 303.0 + } + }, + "m_Slots": [ + { + "m_Id": "5d81a64da39b4e9c97762e3bcddabf93" + }, + { + "m_Id": "9f7387dc94e34e5b8d048abd47f23d46" + }, + { + "m_Id": "a1ef5bc5ae234dd297818a83f7f7e80e" + } + ], + "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\": \"c3bbcf1d5b5ee446baa01a87b8e5dadf\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "417ee71e-80a1-414f-b809-df8c19e3743f", + "9fae8bf3-f659-4d48-8efb-5f8bda92ca8e", + "0d74976b-fbf8-4395-8137-14c541e8d2c5" + ], + "m_PropertyIds": [ + -1281716962, + -680323842, + 1311224659 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "a878504fb615472bbc92981bc85f2022", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "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": "18bfde8172d449f5b47af1d451333d37" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ba21ea3ac7184ac7934508c7644d50f9", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "c4b0c725d82342c49111724fea52551d", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "c589a8d6f4b24aa0b7c804c6b193def3", + "m_Id": 1334702512, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c639c3809c6f4963b3aa7422aa39259f", + "m_Guid": { + "m_GuidSerialized": "9c3e2468-d461-4d5b-8d76-738adef1932e" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "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": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "c98289edea1f4376acc039d24722b2e7", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "cae82917714d408ea6e91e8f60e4cc45", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cb011b3461d948eb89b7eeb2d4bf56e5", + "m_Id": 1, + "m_DisplayName": "On", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "On", + "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.PropertyNode", + "m_ObjectId": "cdc2a37a66084667be8fa90fd47552a0", + "m_Group": { + "m_Id": "826bd371d8994a52b649a0d87cc81f81" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -842.5000610351563, + "y": -34.0, + "width": 135.5001220703125, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "121e4df78be441dea07c0e2b2a2863bb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c639c3809c6f4963b3aa7422aa39259f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ce79319b1f18421c8a11de70d1616779", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "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": "289471af076c4276ae3beaafae636092" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cfa87eff0748450d848f35fa65cee7a5", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ShaderKeyword", + "m_ObjectId": "d09ad266770042b783f41774f95255a0", + "m_Guid": { + "m_GuidSerialized": "ddac7e60-c11c-4f06-9c65-e06890571cc5" + }, + "m_Name": "Emission", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Emission", + "m_DefaultReferenceName": "_EMISSION", + "m_OverrideReferenceName": "_USE_EMISSION_ON", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_KeywordType": 0, + "m_KeywordDefinition": 0, + "m_KeywordScope": 0, + "m_KeywordStages": 63, + "m_Entries": [], + "m_Value": 0, + "m_IsEditable": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d89f2f3643754337a808610951ebe432", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e41f1e9b5e9d4085807c5eb3a1a808cd", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "e540e490b602446c82e9bc1e1de48847", + "m_Guid": { + "m_GuidSerialized": "a23e5e78-799d-49d7-b847-f5f1b66d6682" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e8449ac4440842089ed71d24ae1abbdc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "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": "7c9be3cac93f459d9bb1a415e2923cd7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f7b5dc0511224e8597b295ae31b079e8", + "m_Group": { + "m_Id": "826bd371d8994a52b649a0d87cc81f81" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -844.0000610351563, + "y": -97.5, + "width": 137.0001220703125, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "cae82917714d408ea6e91e8f60e4cc45" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "a0a1a7b3ccf149bf9fab4f25cbf04621" + } +} + diff --git a/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Lit.shadergraph.meta b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Lit.shadergraph.meta new file mode 100644 index 000000000..2bb309d94 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Lit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 3c4ae610ec7364aec894036ae7cb69e2 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Unlit.shadergraph b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Unlit.shadergraph new file mode 100644 index 000000000..52f13a153 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Unlit.shadergraph @@ -0,0 +1,958 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "9b7e820c8778486bada5a35a290ebcea", + "m_Properties": [ + { + "m_Id": "b7bab3dda7164dbda50965ea6bd957bc" + }, + { + "m_Id": "fc4e9a78e2e6410cabad64694fcf4962" + }, + { + "m_Id": "8a69ae393a41469db98f604c6177995a" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "2d378862b56749e4a4e2e13d2d13a5f2" + } + ], + "m_Nodes": [ + { + "m_Id": "5a7cda9650144ecc87df3bd450be9f2a" + }, + { + "m_Id": "7443ee7d7aa44d4bbdb398b6fa6629cb" + }, + { + "m_Id": "f6ddf963776344e098ca59b7d58e7e15" + }, + { + "m_Id": "434538ea5bf64b9d946302b35349766d" + }, + { + "m_Id": "8de34b4a4e804f25bc79cb9ddca9b0a7" + }, + { + "m_Id": "95616170b52d463991eff0eee9a4faf2" + }, + { + "m_Id": "09e795084a984a1fb79d8582556054c0" + }, + { + "m_Id": "271c2b0440e74b30a77a8aa41e6cb8b2" + }, + { + "m_Id": "a71d9d75d29a49238858bae25d2f0b53" + }, + { + "m_Id": "aed28144c3e746c19c068b407dbad670" + } + ], + "m_GroupDatas": [ + { + "m_Id": "a10ffd04f0be43c5a4ea562ecf38d040" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "271c2b0440e74b30a77a8aa41e6cb8b2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8de34b4a4e804f25bc79cb9ddca9b0a7" + }, + "m_SlotId": 1334702512 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8de34b4a4e804f25bc79cb9ddca9b0a7" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "434538ea5bf64b9d946302b35349766d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8de34b4a4e804f25bc79cb9ddca9b0a7" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95616170b52d463991eff0eee9a4faf2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a71d9d75d29a49238858bae25d2f0b53" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8de34b4a4e804f25bc79cb9ddca9b0a7" + }, + "m_SlotId": 1190027673 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "aed28144c3e746c19c068b407dbad670" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "09e795084a984a1fb79d8582556054c0" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "5a7cda9650144ecc87df3bd450be9f2a" + }, + { + "m_Id": "7443ee7d7aa44d4bbdb398b6fa6629cb" + }, + { + "m_Id": "f6ddf963776344e098ca59b7d58e7e15" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "434538ea5bf64b9d946302b35349766d" + }, + { + "m_Id": "95616170b52d463991eff0eee9a4faf2" + }, + { + "m_Id": "09e795084a984a1fb79d8582556054c0" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Rive/Built-in Render Pipeline", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "03c202ba004b4f45a520b349e6a21b33" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "01770f048f0043c28acf7aeca697e75f", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInTarget", + "m_ObjectId": "03c202ba004b4f45a520b349e6a21b33", + "m_ActiveSubTarget": { + "m_Id": "2bd35b25e1e54b7198040a4bc91059a6" + }, + "m_AllowMaterialOverride": true, + "m_SurfaceType": 1, + "m_ZWriteControl": 0, + "m_ZTestMode": 4, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CustomEditorGUI": "" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "09e795084a984a1fb79d8582556054c0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "9aea1fa6e08e4385a03179f3fba903f8" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "187c41dab86149959a55e0e9c70fb58e", + "m_Id": 1334702512, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "271c2b0440e74b30a77a8aa41e6cb8b2", + "m_Group": { + "m_Id": "a10ffd04f0be43c5a4ea562ecf38d040" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -748.9999389648438, + "y": -33.999969482421878, + "width": 131.99993896484376, + "height": 33.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "01770f048f0043c28acf7aeca697e75f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8a69ae393a41469db98f604c6177995a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "2b19f293ab424c55b9eb70a04aa4cd30", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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.Rendering.BuiltIn.ShaderGraph.BuiltInUnlitSubTarget", + "m_ObjectId": "2bd35b25e1e54b7198040a4bc91059a6" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "2d378862b56749e4a4e2e13d2d13a5f2", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "8a69ae393a41469db98f604c6177995a" + }, + { + "m_Id": "fc4e9a78e2e6410cabad64694fcf4962" + }, + { + "m_Id": "b7bab3dda7164dbda50965ea6bd957bc" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "42005a4f0add4b2bb6de3608381aac9e", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "434538ea5bf64b9d946302b35349766d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "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": "e666458e83ff46bf8911145101f34380" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "457c94e6ad02406185e8fbff53b73917", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4c17d675c3634602819e2a3abee0b02f", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "5843253a305d45eca4db99b957b4d3a6", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "5a7cda9650144ecc87df3bd450be9f2a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "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": "5843253a305d45eca4db99b957b4d3a6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7443ee7d7aa44d4bbdb398b6fa6629cb", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "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": "b0185323536d40069d31721b9159de91" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7c91e69fd44c429da3bc8221dd13e1c3", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "8a69ae393a41469db98f604c6177995a", + "m_Guid": { + "m_GuidSerialized": "9f4b34c8-dbe8-4a08-8cec-2338ff65d947" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "8de34b4a4e804f25bc79cb9ddca9b0a7", + "m_Group": { + "m_Id": "a10ffd04f0be43c5a4ea562ecf38d040" + }, + "m_Name": "SampleMainRiveTexture", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -416.50006103515627, + "y": -63.0, + "width": 235.50006103515626, + "height": 303.0 + } + }, + "m_Slots": [ + { + "m_Id": "187c41dab86149959a55e0e9c70fb58e" + }, + { + "m_Id": "c05d9dad6a4841e9bb9a10390c3f644b" + }, + { + "m_Id": "7c91e69fd44c429da3bc8221dd13e1c3" + }, + { + "m_Id": "457c94e6ad02406185e8fbff53b73917" + } + ], + "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\": \"287ae8d259edf47cf9ec073950debe11\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "4b65a152-6b9e-429e-bbc1-bebac7fac8fc", + "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + ], + "m_PropertyIds": [ + 1334702512, + 1190027673 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "95616170b52d463991eff0eee9a4faf2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "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": "4c17d675c3634602819e2a3abee0b02f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9aea1fa6e08e4385a03179f3fba903f8", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "a10ffd04f0be43c5a4ea562ecf38d040", + "m_Title": "Main Texture", + "m_Position": { + "x": -773.9999389648438, + "y": -121.5 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a71d9d75d29a49238858bae25d2f0b53", + "m_Group": { + "m_Id": "a10ffd04f0be43c5a4ea562ecf38d040" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -747.4999389648438, + "y": 23.0, + "width": 130.49993896484376, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "2b19f293ab424c55b9eb70a04aa4cd30" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fc4e9a78e2e6410cabad64694fcf4962" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "aed28144c3e746c19c068b407dbad670", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -377.02886962890627, + "y": 321.515380859375, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "42005a4f0add4b2bb6de3608381aac9e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "b7bab3dda7164dbda50965ea6bd957bc" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "b0185323536d40069d31721b9159de91", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "b0eb90f131844c248182c144dab2f9a2", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "b7bab3dda7164dbda50965ea6bd957bc", + "m_Guid": { + "m_GuidSerialized": "4544524f-8687-4811-b671-a8eeaa66f239" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "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": 0.5, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "c05d9dad6a4841e9bb9a10390c3f644b", + "m_Id": 1190027673, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "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.ColorRGBMaterialSlot", + "m_ObjectId": "e666458e83ff46bf8911145101f34380", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f6ddf963776344e098ca59b7d58e7e15", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "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": "b0eb90f131844c248182c144dab2f9a2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "fc4e9a78e2e6410cabad64694fcf4962", + "m_Guid": { + "m_GuidSerialized": "a7c7cddf-828c-450e-b14a-1b7a4cff4f65" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "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": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + diff --git a/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Unlit.shadergraph.meta b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Unlit.shadergraph.meta new file mode 100644 index 000000000..33743dd80 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/BuiltIn/Shaders/Unlit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 633bc607ec1934fe0bbbe26598e95f76 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders.meta b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders.meta new file mode 100644 index 000000000..22fe3f5d1 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 80dbfd8bc8b5c4409b8ccc1c97a098eb +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Lit.shadergraph b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Lit.shadergraph new file mode 100644 index 000000000..ab3cb1bf0 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Lit.shadergraph @@ -0,0 +1,2232 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "fa64c082769e473da6c4e854fbf43c3f", + "m_Properties": [ + { + "m_Id": "1a0aa4eacebd43a8b2f3ced981569c00" + }, + { + "m_Id": "66195679507648a393191e402e5bbcef" + }, + { + "m_Id": "e6849a509d3f4803821ef79c0305a630" + }, + { + "m_Id": "c83cec5c42b743d58dfcadfaa2273570" + }, + { + "m_Id": "bd128003368444768d33903a4ab8399a" + }, + { + "m_Id": "88d39338884b4be4a9651fba2a38c616" + }, + { + "m_Id": "848a65cec3a641ce94ba5510cfa75ff4" + }, + { + "m_Id": "ef96953cf986414aac81bd6d8830d50a" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "cb265e6af4c74d8e8644fd884a640ed0" + } + ], + "m_Nodes": [ + { + "m_Id": "5b78b586fd1944a5b5327cfbcae221f3" + }, + { + "m_Id": "a30aee64e7484e5dbe265c1817ee5daf" + }, + { + "m_Id": "1302f9e0e15d409293dde16dd1b508d3" + }, + { + "m_Id": "3926fbe846ae4436a4de912346477059" + }, + { + "m_Id": "fa2ec2037aea496288fc8cd85a752c2a" + }, + { + "m_Id": "a15628faa8dd4b25a83ae8b718673e7e" + }, + { + "m_Id": "36729b7745de4952a5e2e88e2f39d624" + }, + { + "m_Id": "ed87e73240884d5aab955bfefd366e49" + }, + { + "m_Id": "d4add49381214e2aa0bcca7b6bd72b5e" + }, + { + "m_Id": "01ad28c4de774520b9bd6cd6b3fa85a9" + }, + { + "m_Id": "b751ef82bed2467483bf955597e15f28" + }, + { + "m_Id": "4b14aadf82b14c89a23d0b0816d1a3e9" + }, + { + "m_Id": "3b9ceb0454a147b2b4a6a5ebf18eac06" + }, + { + "m_Id": "44621e4563c14f368db9784ca89adfaf" + }, + { + "m_Id": "4d04dc8642c44568903ea0d545719a46" + }, + { + "m_Id": "c23507346f414de8846221d032e2e4ee" + }, + { + "m_Id": "67f7d261025245f88f43b61d01d68c13" + }, + { + "m_Id": "172e11bcfe924bc9bb24b982e3ce2b57" + }, + { + "m_Id": "d7351a071715421c85f73e96b2d849dc" + }, + { + "m_Id": "78c6849f60474062a161756e74a5a9be" + }, + { + "m_Id": "9b103b5fd1104025a7fd3613b739f4f8" + }, + { + "m_Id": "4fab3e95e949475a91aee8ada0c88a23" + }, + { + "m_Id": "eedeaf416082445b8f73c2c24fc23c98" + } + ], + "m_GroupDatas": [ + { + "m_Id": "190000938e814f30a4471481df27fe76" + }, + { + "m_Id": "be58da4c7f9e49a8aecd22ea30b716fe" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "172e11bcfe924bc9bb24b982e3ce2b57" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "67f7d261025245f88f43b61d01d68c13" + }, + "m_SlotId": -680323842 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3b9ceb0454a147b2b4a6a5ebf18eac06" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4b14aadf82b14c89a23d0b0816d1a3e9" + }, + "m_SlotId": 1334702512 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "44621e4563c14f368db9784ca89adfaf" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4b14aadf82b14c89a23d0b0816d1a3e9" + }, + "m_SlotId": 1190027673 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4b14aadf82b14c89a23d0b0816d1a3e9" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3926fbe846ae4436a4de912346477059" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4b14aadf82b14c89a23d0b0816d1a3e9" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b751ef82bed2467483bf955597e15f28" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4d04dc8642c44568903ea0d545719a46" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "36729b7745de4952a5e2e88e2f39d624" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "67f7d261025245f88f43b61d01d68c13" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d7351a071715421c85f73e96b2d849dc" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "78c6849f60474062a161756e74a5a9be" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d7351a071715421c85f73e96b2d849dc" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9b103b5fd1104025a7fd3613b739f4f8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "67f7d261025245f88f43b61d01d68c13" + }, + "m_SlotId": -1281716962 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c23507346f414de8846221d032e2e4ee" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d4add49381214e2aa0bcca7b6bd72b5e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d7351a071715421c85f73e96b2d849dc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ed87e73240884d5aab955bfefd366e49" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "eedeaf416082445b8f73c2c24fc23c98" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4fab3e95e949475a91aee8ada0c88a23" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 560.0000610351563, + "y": -71.49996948242188 + }, + "m_Blocks": [ + { + "m_Id": "5b78b586fd1944a5b5327cfbcae221f3" + }, + { + "m_Id": "a30aee64e7484e5dbe265c1817ee5daf" + }, + { + "m_Id": "1302f9e0e15d409293dde16dd1b508d3" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 560.0000610351563, + "y": 201.50006103515626 + }, + "m_Blocks": [ + { + "m_Id": "3926fbe846ae4436a4de912346477059" + }, + { + "m_Id": "fa2ec2037aea496288fc8cd85a752c2a" + }, + { + "m_Id": "a15628faa8dd4b25a83ae8b718673e7e" + }, + { + "m_Id": "36729b7745de4952a5e2e88e2f39d624" + }, + { + "m_Id": "ed87e73240884d5aab955bfefd366e49" + }, + { + "m_Id": "d4add49381214e2aa0bcca7b6bd72b5e" + }, + { + "m_Id": "01ad28c4de774520b9bd6cd6b3fa85a9" + }, + { + "m_Id": "b751ef82bed2467483bf955597e15f28" + }, + { + "m_Id": "4fab3e95e949475a91aee8ada0c88a23" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Rive/High Definition Render Pipeline", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "0987c957b7aa4648ab0bf4f5498c5762" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "01ad28c4de774520b9bd6cd6b3fa85a9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "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": "4b4a8066c5714624a990811df4e7164b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "02636a2b36c54b75b539f2a4c227d689", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "05a939a2c6bc440da2717830e08a20ba", + "m_Id": 0, + "m_DisplayName": "EmissiveColor", + "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.Rendering.HighDefinition.ShaderGraph.HDTarget", + "m_ObjectId": "0987c957b7aa4648ab0bf4f5498c5762", + "m_ActiveSubTarget": { + "m_Id": "cdd06af4c596486e9ae7b17c048f9682" + }, + "m_Datas": [ + { + "m_Id": "162284f8c983480bad3d641925162dae" + }, + { + "m_Id": "e0bca0784ee44ed19a6a497f4f74486d" + }, + { + "m_Id": "776202f48fa2491b95c1aefac411e8f8" + }, + { + "m_Id": "f55b345d9c9a43ed8f4fd9d264de9091" + } + ], + "m_CustomEditorGUI": "", + "m_SupportVFX": false, + "m_SupportComputeForVertexSetup": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "122351a18b6e44789faab8699ba16346", + "m_Id": 1, + "m_DisplayName": "Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Color", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "1302f9e0e15d409293dde16dd1b508d3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "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": "2b9beb59be7a4aebaa561432e41c8349" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.BuiltinData", + "m_ObjectId": "162284f8c983480bad3d641925162dae", + "m_Distortion": false, + "m_DistortionMode": 0, + "m_DistortionDepthTest": true, + "m_AddPrecomputedVelocity": false, + "m_TransparentWritesMotionVec": false, + "m_DepthOffset": false, + "m_ConservativeDepthOffset": false, + "m_TransparencyFog": true, + "m_AlphaTestShadow": false, + "m_BackThenFrontRendering": false, + "m_TransparentDepthPrepass": false, + "m_TransparentDepthPostpass": false, + "m_SupportLodCrossFade": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "172e11bcfe924bc9bb24b982e3ce2b57", + "m_Group": { + "m_Id": "be58da4c7f9e49a8aecd22ea30b716fe" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -699.5000610351563, + "y": 798.5001220703125, + "width": 152.5, + "height": 33.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "df97cb4acb8845fea757303bc1ccab93" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c83cec5c42b743d58dfcadfaa2273570" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "190000938e814f30a4471481df27fe76", + "m_Title": "Main Texture", + "m_Position": { + "x": -366.0000305175781, + "y": -92.5 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "19c1950da8ba4fb7abd03b9dc194b23a", + "m_Id": 1, + "m_DisplayName": "Out_Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Emission", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "1a0aa4eacebd43a8b2f3ced981569c00", + "m_Guid": { + "m_GuidSerialized": "27d00be8-b10d-4e66-878a-154eec52c0d8" + }, + "m_Name": "Smoothness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Smoothness", + "m_DefaultReferenceName": "_Smoothness", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "204a21ea30634c6ca15f35973d35172b", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "2b9beb59be7a4aebaa561432e41c8349", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2e991cb716d0474fbe12d948332f9044", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "30c7b3e65629498ba1d97aad97036501", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "36729b7745de4952a5e2e88e2f39d624", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "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": "ecc3a5080eb1404b81d72c5b804a029e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "37a59cfa875c409fb85ab5e4b032c10e", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "3926fbe846ae4436a4de912346477059", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "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": "e354fa632f8e4c1e8c55ee922646db40" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3b9ceb0454a147b2b4a6a5ebf18eac06", + "m_Group": { + "m_Id": "190000938e814f30a4471481df27fe76" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -341.0, + "y": -33.99999237060547, + "width": 132.0, + "height": 33.9999885559082 + } + }, + "m_Slots": [ + { + "m_Id": "9523db49e73b42aeb9e637dd1ff91530" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "bd128003368444768d33903a4ab8399a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "3c3f4019904245398350375f6a409f28", + "m_Id": -1281716962, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "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.Vector1MaterialSlot", + "m_ObjectId": "3d08e7ca13f94a9592c00e6d41d4abf3", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "44621e4563c14f368db9784ca89adfaf", + "m_Group": { + "m_Id": "190000938e814f30a4471481df27fe76" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -341.0, + "y": 34.5, + "width": 130.5, + "height": 33.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "a7e162cdf64744b6b5c2ed506db5bf75" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e6849a509d3f4803821ef79c0305a630" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "4b14aadf82b14c89a23d0b0816d1a3e9", + "m_Group": { + "m_Id": "190000938e814f30a4471481df27fe76" + }, + "m_Name": "SampleMainRiveTexture", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -9.99994945526123, + "y": -34.000030517578128, + "width": 235.5, + "height": 303.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "7ac34bb170204cd09b7d676a0527ef70" + }, + { + "m_Id": "9e14780d138843ee90e851e4723cf061" + }, + { + "m_Id": "02636a2b36c54b75b539f2a4c227d689" + }, + { + "m_Id": "a7f7919988af41cca260345311828efe" + } + ], + "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\": \"287ae8d259edf47cf9ec073950debe11\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "4b65a152-6b9e-429e-bbc1-bebac7fac8fc", + "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + ], + "m_PropertyIds": [ + 1334702512, + 1190027673 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4b4a8066c5714624a990811df4e7164b", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4d04dc8642c44568903ea0d545719a46", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 260.5, + "y": 362.5, + "width": 115.5, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "3d08e7ca13f94a9592c00e6d41d4abf3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "66195679507648a393191e402e5bbcef" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4fab3e95e949475a91aee8ada0c88a23", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "7e13e2184a3e40dcae2ce25f4fea380d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "561feb56ee6a433f86dbe28a1fb724ef", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "5981479123644cedbc173735744eb813", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "5b78b586fd1944a5b5327cfbcae221f3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "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": "561feb56ee6a433f86dbe28a1fb724ef" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "61ca89722bf741a29ebba063f45985af", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "66195679507648a393191e402e5bbcef", + "m_Guid": { + "m_GuidSerialized": "bd2f9f09-dccf-4f7c-9e37-8d8ece2907af" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "67f7d261025245f88f43b61d01d68c13", + "m_Group": { + "m_Id": "be58da4c7f9e49a8aecd22ea30b716fe" + }, + "m_Name": "SampleEmission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -340.9999694824219, + "y": 723.5, + "width": 248.49993896484376, + "height": 303.0 + } + }, + "m_Slots": [ + { + "m_Id": "3c3f4019904245398350375f6a409f28" + }, + { + "m_Id": "c03941ccae444248968eb3176ee46c85" + }, + { + "m_Id": "19c1950da8ba4fb7abd03b9dc194b23a" + } + ], + "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\": \"c3bbcf1d5b5ee446baa01a87b8e5dadf\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "417ee71e-80a1-414f-b809-df8c19e3743f", + "9fae8bf3-f659-4d48-8efb-5f8bda92ca8e", + "0d74976b-fbf8-4395-8137-14c541e8d2c5" + ], + "m_PropertyIds": [ + -1281716962, + -680323842, + 1311224659 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7522cc9e71434eddaea97c72f19a5df1", + "m_Id": 2, + "m_DisplayName": "Intensity", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Intensity", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.LightingData", + "m_ObjectId": "776202f48fa2491b95c1aefac411e8f8", + "m_NormalDropOffSpace": 0, + "m_BlendPreserveSpecular": false, + "m_ReceiveDecals": true, + "m_ReceiveSSR": true, + "m_ReceiveSSRTransparent": false, + "m_SpecularAA": false, + "m_SpecularOcclusionMode": 1, + "m_OverrideBakedGI": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "78c6849f60474062a161756e74a5a9be", + "m_Group": { + "m_Id": "be58da4c7f9e49a8aecd22ea30b716fe" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -59.00000762939453, + "y": 886.4999389648438, + "width": 206.0, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "f980f6f15d394624b730be111da1a96d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "848a65cec3a641ce94ba5510cfa75ff4" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7ac34bb170204cd09b7d676a0527ef70", + "m_Id": 1334702512, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7e13e2184a3e40dcae2ce25f4fea380d", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "848a65cec3a641ce94ba5510cfa75ff4", + "m_Guid": { + "m_GuidSerialized": "cbff8825-fb52-418c-832a-75718e3fe8a6" + }, + "m_Name": "EmissiveExposureWeight", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissiveExposureWeight", + "m_DefaultReferenceName": "_EmissiveExposureWeight", + "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": 1.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "88d39338884b4be4a9651fba2a38c616", + "m_Guid": { + "m_GuidSerialized": "bcada6ec-5ff9-4814-95ab-f742f93cc523" + }, + "m_Name": "EmissiveColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissiveColor", + "m_DefaultReferenceName": "_EmissiveColor", + "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": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8f4eb646fa284f288131ba1fa9522cfd", + "m_Id": 3, + "m_DisplayName": "Exposure Weight", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Exposure Weight", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "9523db49e73b42aeb9e637dd1ff91530", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9b103b5fd1104025a7fd3613b739f4f8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -512.0538330078125, + "y": 718.2054443359375, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "05a939a2c6bc440da2717830e08a20ba" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "88d39338884b4be4a9651fba2a38c616" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9e14780d138843ee90e851e4723cf061", + "m_Id": 1190027673, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "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.BlockNode", + "m_ObjectId": "a15628faa8dd4b25a83ae8b718673e7e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BentNormal", + "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": "f56be29c7e7349be87fb53362a4ebe90" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BentNormal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "a30aee64e7484e5dbe265c1817ee5daf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "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": "61ca89722bf741a29ebba063f45985af" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "a7e162cdf64744b6b5c2ed506db5bf75", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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.Vector1MaterialSlot", + "m_ObjectId": "a7f7919988af41cca260345311828efe", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ac2f6b0927e644339b2105302b6cec7b", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "b751ef82bed2467483bf955597e15f28", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "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": "30c7b3e65629498ba1d97aad97036501" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "bd128003368444768d33903a4ab8399a", + "m_Guid": { + "m_GuidSerialized": "a5e9dc59-7fb6-45e3-ad1f-c7ed11d8b7d8" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "be58da4c7f9e49a8aecd22ea30b716fe", + "m_Title": "Emission", + "m_Position": { + "x": -724.5, + "y": 665.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "c03941ccae444248968eb3176ee46c85", + "m_Id": -680323842, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c23507346f414de8846221d032e2e4ee", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 260.5, + "y": 445.0, + "width": 140.00003051757813, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "37a59cfa875c409fb85ab5e4b032c10e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "1a0aa4eacebd43a8b2f3ced981569c00" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "c83cec5c42b743d58dfcadfaa2273570", + "m_Guid": { + "m_GuidSerialized": "bd09cbbc-96f5-43e9-8bba-0827402e82d5" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "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": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "cb265e6af4c74d8e8644fd884a640ed0", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "bd128003368444768d33903a4ab8399a" + }, + { + "m_Id": "e6849a509d3f4803821ef79c0305a630" + }, + { + "m_Id": "66195679507648a393191e402e5bbcef" + }, + { + "m_Id": "1a0aa4eacebd43a8b2f3ced981569c00" + }, + { + "m_Id": "c83cec5c42b743d58dfcadfaa2273570" + }, + { + "m_Id": "88d39338884b4be4a9651fba2a38c616" + }, + { + "m_Id": "848a65cec3a641ce94ba5510cfa75ff4" + }, + { + "m_Id": "ef96953cf986414aac81bd6d8830d50a" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.HDLitSubTarget", + "m_ObjectId": "cdd06af4c596486e9ae7b17c048f9682" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "d4add49381214e2aa0bcca7b6bd72b5e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "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": "2e991cb716d0474fbe12d948332f9044" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.EmissionNode", + "m_ObjectId": "d7351a071715421c85f73e96b2d849dc", + "m_Group": { + "m_Id": "be58da4c7f9e49a8aecd22ea30b716fe" + }, + "m_Name": "Emission Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 174.99993896484376, + "y": 718.0, + "width": 225.50006103515626, + "height": 185.5 + } + }, + "m_Slots": [ + { + "m_Id": "122351a18b6e44789faab8699ba16346" + }, + { + "m_Id": "7522cc9e71434eddaea97c72f19a5df1" + }, + { + "m_Id": "8f4eb646fa284f288131ba1fa9522cfd" + }, + { + "m_Id": "dfb112494fa24600841ef1cd6e50b950" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "_intensityUnit": 0, + "m_NormalizeColor": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "df97cb4acb8845fea757303bc1ccab93", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "dfb112494fa24600841ef1cd6e50b950", + "m_Id": 0, + "m_DisplayName": "Output", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Output", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.SystemData", + "m_ObjectId": "e0bca0784ee44ed19a6a497f4f74486d", + "m_MaterialNeedsUpdateHash": 279841, + "m_SurfaceType": 1, + "m_RenderingPass": 4, + "m_BlendMode": 0, + "m_ZTest": 4, + "m_ZWrite": false, + "m_TransparentCullMode": 2, + "m_OpaqueCullMode": 2, + "m_SortPriority": 0, + "m_AlphaTest": true, + "m_ExcludeFromTUAndAA": false, + "m_TransparentDepthPrepass": false, + "m_TransparentDepthPostpass": false, + "m_SupportLodCrossFade": false, + "m_DoubleSidedMode": 0, + "m_DOTSInstancing": false, + "m_CustomVelocity": false, + "m_Tessellation": false, + "m_TessellationMode": 0, + "m_TessellationFactorMinDistance": 20.0, + "m_TessellationFactorMaxDistance": 50.0, + "m_TessellationFactorTriangleSize": 100.0, + "m_TessellationShapeFactor": 0.75, + "m_TessellationBackFaceCullEpsilon": -0.25, + "m_TessellationMaxDisplacement": 0.009999999776482582, + "m_Version": 1, + "inspectorFoldoutMask": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "e354fa632f8e4c1e8c55ee922646db40", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "e6849a509d3f4803821ef79c0305a630", + "m_Guid": { + "m_GuidSerialized": "6f8c2768-210c-48c7-a17f-2aaf808fbd68" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "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": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ecc3a5080eb1404b81d72c5b804a029e", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ed87e73240884d5aab955bfefd366e49", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "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": "204a21ea30634c6ca15f35973d35172b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "eedeaf416082445b8f73c2c24fc23c98", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 292.5000305175781, + "y": 584.0000610351563, + "width": 108.0, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "ac2f6b0927e644339b2105302b6cec7b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ef96953cf986414aac81bd6d8830d50a" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "ef96953cf986414aac81bd6d8830d50a", + "m_Guid": { + "m_GuidSerialized": "25a97ba7-87a3-4fa4-aa72-f2ab624902d4" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "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": 0.5, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.HDLitData", + "m_ObjectId": "f55b345d9c9a43ed8f4fd9d264de9091", + "m_RayTracing": false, + "m_MaterialType": 0, + "m_RefractionModel": 0, + "m_SSSTransmission": true, + "m_EnergyConservingSpecular": true, + "m_ClearCoat": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "f56be29c7e7349be87fb53362a4ebe90", + "m_Id": 0, + "m_DisplayName": "Bent Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BentNormal", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f980f6f15d394624b730be111da1a96d", + "m_Id": 0, + "m_DisplayName": "EmissiveExposureWeight", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "fa2ec2037aea496288fc8cd85a752c2a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "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": "5981479123644cedbc173735744eb813" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + diff --git a/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Lit.shadergraph.meta b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Lit.shadergraph.meta new file mode 100644 index 000000000..3088e0257 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Lit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 1c9bb15f6caab475182b96909a769a4d +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Unlit.shadergraph b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Unlit.shadergraph new file mode 100644 index 000000000..2ef45d803 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Unlit.shadergraph @@ -0,0 +1,1714 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "b59e210b43e5495e801139269c379682", + "m_Properties": [ + { + "m_Id": "14a2513875cd4bedad31bc3434dce4ed" + }, + { + "m_Id": "c0e72895fc20431c95cb85ee1ffae633" + }, + { + "m_Id": "f654e1fdd5a54e4f98f7cc912b6792fc" + }, + { + "m_Id": "63c10ad36e224cbe8900b6eb225cfa65" + }, + { + "m_Id": "198ebeb0d8144e908f0c502b8bae3c6f" + }, + { + "m_Id": "75b4318b313e45bf86467b06b66a8bd1" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "7f5ba364662e4aa3aab4c078c2711899" + } + ], + "m_Nodes": [ + { + "m_Id": "dd069819e9944918930b6a6cd9ef4b2c" + }, + { + "m_Id": "c5489d276f804363b0f79fdbdfc366c3" + }, + { + "m_Id": "3c86daa3f6e749fc9f2ae95560e7a960" + }, + { + "m_Id": "f09876534ca746799e79391c0b945f7f" + }, + { + "m_Id": "17c500272541433797ef87d56cbbeb7a" + }, + { + "m_Id": "8ba36c99c6424cd6ab60f8b90bda9101" + }, + { + "m_Id": "5b3a52fa2f644eba8d875cb740c046d8" + }, + { + "m_Id": "cf9f1904491b4e7194a904b8667c095b" + }, + { + "m_Id": "b56bd8c5dc7f4c0995d2719333b75ae3" + }, + { + "m_Id": "7aaaeff70c1b4e96968af1228d4dec83" + }, + { + "m_Id": "918839ed8d6744f188ac75a1434fa0af" + }, + { + "m_Id": "90a9730731e049ff8ef6141640f6688a" + }, + { + "m_Id": "b3ec873b636b4d5b8937046e2e4a8fd0" + }, + { + "m_Id": "d4ae4c6b2dfd4ecc8bda0ad6c347b5b4" + }, + { + "m_Id": "42e844f32f9d4f9c8b1ae224e5fc3945" + }, + { + "m_Id": "984badfcb5794de7a0a3c73aad214424" + } + ], + "m_GroupDatas": [ + { + "m_Id": "4d185a851d114c7a97fcc7dcf0ee53f0" + }, + { + "m_Id": "e5caeb6982484141b0639405aaefae6c" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5b3a52fa2f644eba8d875cb740c046d8" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f09876534ca746799e79391c0b945f7f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5b3a52fa2f644eba8d875cb740c046d8" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8ba36c99c6424cd6ab60f8b90bda9101" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7aaaeff70c1b4e96968af1228d4dec83" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "90a9730731e049ff8ef6141640f6688a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "90a9730731e049ff8ef6141640f6688a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "17c500272541433797ef87d56cbbeb7a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "918839ed8d6744f188ac75a1434fa0af" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7aaaeff70c1b4e96968af1228d4dec83" + }, + "m_SlotId": -680323842 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "984badfcb5794de7a0a3c73aad214424" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "42e844f32f9d4f9c8b1ae224e5fc3945" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b3ec873b636b4d5b8937046e2e4a8fd0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "90a9730731e049ff8ef6141640f6688a" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b56bd8c5dc7f4c0995d2719333b75ae3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5b3a52fa2f644eba8d875cb740c046d8" + }, + "m_SlotId": 1190027673 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9f1904491b4e7194a904b8667c095b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5b3a52fa2f644eba8d875cb740c046d8" + }, + "m_SlotId": 1334702512 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d4ae4c6b2dfd4ecc8bda0ad6c347b5b4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7aaaeff70c1b4e96968af1228d4dec83" + }, + "m_SlotId": -1281716962 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "dd069819e9944918930b6a6cd9ef4b2c" + }, + { + "m_Id": "c5489d276f804363b0f79fdbdfc366c3" + }, + { + "m_Id": "3c86daa3f6e749fc9f2ae95560e7a960" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "f09876534ca746799e79391c0b945f7f" + }, + { + "m_Id": "17c500272541433797ef87d56cbbeb7a" + }, + { + "m_Id": "8ba36c99c6424cd6ab60f8b90bda9101" + }, + { + "m_Id": "42e844f32f9d4f9c8b1ae224e5fc3945" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Rive/High Definition Render Pipeline", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "ba290823e9c74067bd7921f623e9e2c1" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "087e07dad43446d6b0bbe336c500aab7", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "14a2513875cd4bedad31bc3434dce4ed", + "m_Guid": { + "m_GuidSerialized": "ad5aef4d-941b-4689-9c6c-9e075d042fe1" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "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": 0.5, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "17c500272541433797ef87d56cbbeb7a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "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": "f61bb2d0e76b44ec9f14184fbd531409" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "185b8a82456c4fe6970ca6e51d753a79", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.BuiltinData", + "m_ObjectId": "193843b4017941d1a6077704ff23d8da", + "m_Distortion": false, + "m_DistortionMode": 0, + "m_DistortionDepthTest": true, + "m_AddPrecomputedVelocity": false, + "m_TransparentWritesMotionVec": false, + "m_DepthOffset": false, + "m_ConservativeDepthOffset": false, + "m_TransparencyFog": true, + "m_AlphaTestShadow": false, + "m_BackThenFrontRendering": false, + "m_TransparentDepthPrepass": false, + "m_TransparentDepthPostpass": false, + "m_SupportLodCrossFade": false +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "198ebeb0d8144e908f0c502b8bae3c6f", + "m_Guid": { + "m_GuidSerialized": "8e48ead8-51a7-43dd-bb49-9d5ce1a981c4" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "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": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "1c55619dc5a943669b293d53b2f2292f", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "1db460f1f6d5407f887ddf42267f6c59", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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.Rendering.HighDefinition.ShaderGraph.HDUnlitData", + "m_ObjectId": "229acb6557564fae91f524637b71c0d6", + "m_EnableShadowMatte": false, + "m_DistortionOnly": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.SystemData", + "m_ObjectId": "2bb08f5be0ad48f1a86bc9cea5ceb4e2", + "m_MaterialNeedsUpdateHash": 1, + "m_SurfaceType": 1, + "m_RenderingPass": 4, + "m_BlendMode": 0, + "m_ZTest": 4, + "m_ZWrite": false, + "m_TransparentCullMode": 2, + "m_OpaqueCullMode": 2, + "m_SortPriority": 0, + "m_AlphaTest": true, + "m_ExcludeFromTUAndAA": false, + "m_TransparentDepthPrepass": false, + "m_TransparentDepthPostpass": false, + "m_SupportLodCrossFade": false, + "m_DoubleSidedMode": 0, + "m_DOTSInstancing": false, + "m_CustomVelocity": false, + "m_Tessellation": false, + "m_TessellationMode": 0, + "m_TessellationFactorMinDistance": 20.0, + "m_TessellationFactorMaxDistance": 50.0, + "m_TessellationFactorTriangleSize": 100.0, + "m_TessellationShapeFactor": 0.75, + "m_TessellationBackFaceCullEpsilon": -0.25, + "m_TessellationMaxDisplacement": 0.009999999776482582, + "m_Version": 1, + "inspectorFoldoutMask": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2fc55180791d48eda9d792b9dfa84589", + "m_Id": 2, + "m_DisplayName": "Intensity", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Intensity", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "2fca64b3b48542d895cd9e9c638ef191", + "m_Id": -1281716962, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "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.Texture2DMaterialSlot", + "m_ObjectId": "32447e534670474ba5ea577b4b1a347d", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "32e809adcc8b49a2bb69a2a09d161409", + "m_Id": 0, + "m_DisplayName": "Output", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Output", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "3a8648c6730747c2aa7c211ebd1db6c8", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "3b71ebada7334d2eb709592e968357ae", + "m_Id": 1190027673, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "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.BlockNode", + "m_ObjectId": "3c86daa3f6e749fc9f2ae95560e7a960", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "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": "cd741f82d9664aa7a9cc694a78111b2b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "418faedce56b49c3a7b0502f184e9c99", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "423a781e92924d9fb334ed621d889c0a", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "42e844f32f9d4f9c8b1ae224e5fc3945", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "423a781e92924d9fb334ed621d889c0a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "4d185a851d114c7a97fcc7dcf0ee53f0", + "m_Title": "Main Texture", + "m_Position": { + "x": -706.6890258789063, + "y": -200.8223419189453 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "536de08bf33049888a29f2bfdc6e6e2d", + "m_Id": 3, + "m_DisplayName": "Exposure Weight", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Exposure Weight", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "5b3a52fa2f644eba8d875cb740c046d8", + "m_Group": { + "m_Id": "4d185a851d114c7a97fcc7dcf0ee53f0" + }, + "m_Name": "SampleMainRiveTexture", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -350.5000305175781, + "y": -142.49996948242188, + "width": 235.5000457763672, + "height": 302.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "afe96a5b2a074ba6bf064e23a3c5dc25" + }, + { + "m_Id": "3b71ebada7334d2eb709592e968357ae" + }, + { + "m_Id": "087e07dad43446d6b0bbe336c500aab7" + }, + { + "m_Id": "9e92538bad0e452fab7adf86ce82f44a" + } + ], + "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\": \"287ae8d259edf47cf9ec073950debe11\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "4b65a152-6b9e-429e-bbc1-bebac7fac8fc", + "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + ], + "m_PropertyIds": [ + 1334702512, + 1190027673 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5cffc8b18ff84645a013a145c406112b", + "m_Id": 1, + "m_DisplayName": "Out_Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Emission", + "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.Rendering.HighDefinition.ShaderGraph.HDUnlitSubTarget", + "m_ObjectId": "5d0b637753844b84a1ffd935c75aebaa" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "63c10ad36e224cbe8900b6eb225cfa65", + "m_Guid": { + "m_GuidSerialized": "7d228967-d6c1-4953-a522-94e24f7f4fde" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "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": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "6d73a920f8cf419ea2a864faa7a3177b", + "m_Id": -680323842, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "75b4318b313e45bf86467b06b66a8bd1", + "m_Guid": { + "m_GuidSerialized": "25125037-7122-4fba-a083-f7d027317299" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "7aaaeff70c1b4e96968af1228d4dec83", + "m_Group": { + "m_Id": "e5caeb6982484141b0639405aaefae6c" + }, + "m_Name": "SampleEmission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -470.9999084472656, + "y": 453.0000305175781, + "width": 248.49990844726563, + "height": 302.9999084472656 + } + }, + "m_Slots": [ + { + "m_Id": "2fca64b3b48542d895cd9e9c638ef191" + }, + { + "m_Id": "6d73a920f8cf419ea2a864faa7a3177b" + }, + { + "m_Id": "5cffc8b18ff84645a013a145c406112b" + } + ], + "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\": \"c3bbcf1d5b5ee446baa01a87b8e5dadf\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "417ee71e-80a1-414f-b809-df8c19e3743f", + "9fae8bf3-f659-4d48-8efb-5f8bda92ca8e", + "0d74976b-fbf8-4395-8137-14c541e8d2c5" + ], + "m_PropertyIds": [ + -1281716962, + -680323842, + 1311224659 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "7f5ba364662e4aa3aab4c078c2711899", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "75b4318b313e45bf86467b06b66a8bd1" + }, + { + "m_Id": "198ebeb0d8144e908f0c502b8bae3c6f" + }, + { + "m_Id": "63c10ad36e224cbe8900b6eb225cfa65" + }, + { + "m_Id": "f654e1fdd5a54e4f98f7cc912b6792fc" + }, + { + "m_Id": "c0e72895fc20431c95cb85ee1ffae633" + }, + { + "m_Id": "14a2513875cd4bedad31bc3434dce4ed" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "83cc5d66470e44c5ae264ed84ee79c80", + "m_Id": 0, + "m_DisplayName": "EmissiveColor", + "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.BlockNode", + "m_ObjectId": "8ba36c99c6424cd6ab60f8b90bda9101", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "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": "c672c7efa127483dbd32d758d615728c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "8fb4c23d4d1c4e9a95514a3f2499c8f1", + "m_Id": 1, + "m_DisplayName": "Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Color", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.EmissionNode", + "m_ObjectId": "90a9730731e049ff8ef6141640f6688a", + "m_Group": { + "m_Id": "e5caeb6982484141b0639405aaefae6c" + }, + "m_Name": "Emission Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 45.0001106262207, + "y": 447.50006103515627, + "width": 225.4999542236328, + "height": 185.49993896484376 + } + }, + "m_Slots": [ + { + "m_Id": "8fb4c23d4d1c4e9a95514a3f2499c8f1" + }, + { + "m_Id": "2fc55180791d48eda9d792b9dfa84589" + }, + { + "m_Id": "536de08bf33049888a29f2bfdc6e6e2d" + }, + { + "m_Id": "32e809adcc8b49a2bb69a2a09d161409" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "_intensityUnit": 0, + "m_NormalizeColor": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "918839ed8d6744f188ac75a1434fa0af", + "m_Group": { + "m_Id": "e5caeb6982484141b0639405aaefae6c" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -829.4999389648438, + "y": 528.0000610351563, + "width": 152.50006103515626, + "height": 33.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "96ee09c525194347bb67e0f8463f3cff" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "63c10ad36e224cbe8900b6eb225cfa65" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "96ee09c525194347bb67e0f8463f3cff", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "984badfcb5794de7a0a3c73aad214424", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -212.50425720214845, + "y": 355.0482482910156, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "185b8a82456c4fe6970ca6e51d753a79" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "14a2513875cd4bedad31bc3434dce4ed" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9e92538bad0e452fab7adf86ce82f44a", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a87005b8debd40559b7b7bb164da73ad", + "m_Id": 0, + "m_DisplayName": "EmissiveExposureWeight", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "afe96a5b2a074ba6bf064e23a3c5dc25", + "m_Id": 1334702512, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b3ec873b636b4d5b8937046e2e4a8fd0", + "m_Group": { + "m_Id": "e5caeb6982484141b0639405aaefae6c" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -188.99986267089845, + "y": 616.0, + "width": 205.99998474121095, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "a87005b8debd40559b7b7bb164da73ad" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c0e72895fc20431c95cb85ee1ffae633" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b56bd8c5dc7f4c0995d2719333b75ae3", + "m_Group": { + "m_Id": "4d185a851d114c7a97fcc7dcf0ee53f0" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -681.5, + "y": -74.00000762939453, + "width": 130.5, + "height": 34.0000114440918 + } + }, + "m_Slots": [ + { + "m_Id": "1db460f1f6d5407f887ddf42267f6c59" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "198ebeb0d8144e908f0c502b8bae3c6f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.HDTarget", + "m_ObjectId": "ba290823e9c74067bd7921f623e9e2c1", + "m_ActiveSubTarget": { + "m_Id": "5d0b637753844b84a1ffd935c75aebaa" + }, + "m_Datas": [ + { + "m_Id": "193843b4017941d1a6077704ff23d8da" + }, + { + "m_Id": "2bb08f5be0ad48f1a86bc9cea5ceb4e2" + }, + { + "m_Id": "229acb6557564fae91f524637b71c0d6" + } + ], + "m_CustomEditorGUI": "", + "m_SupportVFX": false, + "m_SupportComputeForVertexSetup": false +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "c0e72895fc20431c95cb85ee1ffae633", + "m_Guid": { + "m_GuidSerialized": "c5eac1ab-91a9-47ce-a2ec-df0ae241554b" + }, + "m_Name": "EmissiveExposureWeight", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissiveExposureWeight", + "m_DefaultReferenceName": "_EmissiveExposureWeight", + "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": 1.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "c5489d276f804363b0f79fdbdfc366c3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "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": "3a8648c6730747c2aa7c211ebd1db6c8" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c672c7efa127483dbd32d758d615728c", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "cd741f82d9664aa7a9cc694a78111b2b", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "cf9f1904491b4e7194a904b8667c095b", + "m_Group": { + "m_Id": "4d185a851d114c7a97fcc7dcf0ee53f0" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -681.5, + "y": -142.49996948242188, + "width": 132.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "32447e534670474ba5ea577b4b1a347d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "75b4318b313e45bf86467b06b66a8bd1" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d4ae4c6b2dfd4ecc8bda0ad6c347b5b4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -682.3529663085938, + "y": 464.9252624511719, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "83cc5d66470e44c5ae264ed84ee79c80" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f654e1fdd5a54e4f98f7cc912b6792fc" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "dd069819e9944918930b6a6cd9ef4b2c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "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": "1c55619dc5a943669b293d53b2f2292f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "e5caeb6982484141b0639405aaefae6c", + "m_Title": "Emission", + "m_Position": { + "x": -854.682861328125, + "y": 388.90106201171877 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f09876534ca746799e79391c0b945f7f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "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": "418faedce56b49c3a7b0502f184e9c99" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "f61bb2d0e76b44ec9f14184fbd531409", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "f654e1fdd5a54e4f98f7cc912b6792fc", + "m_Guid": { + "m_GuidSerialized": "029c05f7-1347-4544-a072-adaf3c288d01" + }, + "m_Name": "EmissiveColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissiveColor", + "m_DefaultReferenceName": "_EmissiveColor", + "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": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + diff --git a/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Unlit.shadergraph.meta b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Unlit.shadergraph.meta new file mode 100644 index 000000000..9d5de01b9 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/HDRP/Shaders/Unlit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 511c099da70f649f4b1c0ef83a8c70f4 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/package/Runtime/Components/Public/RenderPipelines/URP/Shaders.meta b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders.meta new file mode 100644 index 000000000..71cc2925f --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8ee1feb60dcca4276b4f135c1c462523 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Lit.shadergraph b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Lit.shadergraph new file mode 100644 index 000000000..7ef8405e6 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Lit.shadergraph @@ -0,0 +1,2184 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "be42bbb51ea04874840a923272a2ca51", + "m_Properties": [ + { + "m_Id": "7d5a4ae6d2d74bdbb882bcc9af57ec8c" + }, + { + "m_Id": "0813cf92747e40a1be3590e6f8f10aca" + }, + { + "m_Id": "736938f9b2d4477992ce0d5e1b2c67ec" + }, + { + "m_Id": "00473f8308054e68bf73f91612e82397" + }, + { + "m_Id": "4fab56d0354446d793c04673b5962b16" + }, + { + "m_Id": "5730dcee64f34c94ae9584c4ebd04922" + }, + { + "m_Id": "d09d6ae72a434fc0b0cf579bb39078ff" + }, + { + "m_Id": "5455964a267d4c1a809e3abf53058cb8" + } + ], + "m_Keywords": [ + { + "m_Id": "aed4ad7f5d0147998d777ef3cc7d2426" + } + ], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "c055f67af2a649798edb9150d9d9e596" + } + ], + "m_Nodes": [ + { + "m_Id": "23adb08db2734ef79327b447af83562b" + }, + { + "m_Id": "9769617b837244c0a7232fc1d3dbfb1b" + }, + { + "m_Id": "5a99c25ea3c24d1ea3ab8e518392fd03" + }, + { + "m_Id": "67bd1c0c076d4739a438002b86d711f2" + }, + { + "m_Id": "943835c69f534645b1a7772126571304" + }, + { + "m_Id": "01b9e10fa9e94bf7893e9c8b7a885cdb" + }, + { + "m_Id": "96e775680d93405fa5ad6da92aea4087" + }, + { + "m_Id": "9ee486ab00f145f596c0be4b0447231c" + }, + { + "m_Id": "6d99b4d4d03c4bb786479ebc06189b3e" + }, + { + "m_Id": "599ea00fc37d40e1a2123ced4ee17ae8" + }, + { + "m_Id": "07d14ac616bb4659b7f607984866a1de" + }, + { + "m_Id": "c208f2afc03f45f0a8d82cc56d1bb6ce" + }, + { + "m_Id": "4b5e8c69daaf4dca8be37e1018f89467" + }, + { + "m_Id": "b95c6f45ca1d48dab6c795b9b5b9c925" + }, + { + "m_Id": "4d05cc60d1fc4ae4be5c2c9d120ecf53" + }, + { + "m_Id": "fc7ebf94393e47a7a21b73be38064276" + }, + { + "m_Id": "2122e0a185ad48d5be4c2d7cf64c54d3" + }, + { + "m_Id": "ff42a4d72e234f509e687042ecc67e78" + }, + { + "m_Id": "f555859ce36242d0882e613d4490acde" + }, + { + "m_Id": "4e95ded0a3034f56aa6cf4b21180cb64" + }, + { + "m_Id": "23153ce124104a54b1b17cc80faa63f6" + }, + { + "m_Id": "08db1323e56b4525a018dac0b42a6053" + }, + { + "m_Id": "1000fee8e9624654aab329c016417acc" + } + ], + "m_GroupDatas": [ + { + "m_Id": "4baa747411704fbcaef61b65912aa809" + }, + { + "m_Id": "b8767b3c733b43e98cf197b634bd4810" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "07d14ac616bb4659b7f607984866a1de" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "23153ce124104a54b1b17cc80faa63f6" + }, + "m_SlotId": 1334702512 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08db1323e56b4525a018dac0b42a6053" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4e95ded0a3034f56aa6cf4b21180cb64" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1000fee8e9624654aab329c016417acc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ff42a4d72e234f509e687042ecc67e78" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "23153ce124104a54b1b17cc80faa63f6" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "67bd1c0c076d4739a438002b86d711f2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "23153ce124104a54b1b17cc80faa63f6" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2122e0a185ad48d5be4c2d7cf64c54d3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4b5e8c69daaf4dca8be37e1018f89467" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "96e775680d93405fa5ad6da92aea4087" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4d05cc60d1fc4ae4be5c2c9d120ecf53" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "08db1323e56b4525a018dac0b42a6053" + }, + "m_SlotId": -1281716962 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4e95ded0a3034f56aa6cf4b21180cb64" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9ee486ab00f145f596c0be4b0447231c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "599ea00fc37d40e1a2123ced4ee17ae8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "23153ce124104a54b1b17cc80faa63f6" + }, + "m_SlotId": 1190027673 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b95c6f45ca1d48dab6c795b9b5b9c925" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "08db1323e56b4525a018dac0b42a6053" + }, + "m_SlotId": -680323842 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c208f2afc03f45f0a8d82cc56d1bb6ce" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "01b9e10fa9e94bf7893e9c8b7a885cdb" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f555859ce36242d0882e613d4490acde" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fc7ebf94393e47a7a21b73be38064276" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 308.0001220703125, + "y": -124.5 + }, + "m_Blocks": [ + { + "m_Id": "23adb08db2734ef79327b447af83562b" + }, + { + "m_Id": "9769617b837244c0a7232fc1d3dbfb1b" + }, + { + "m_Id": "5a99c25ea3c24d1ea3ab8e518392fd03" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 308.0001220703125, + "y": 75.5 + }, + "m_Blocks": [ + { + "m_Id": "67bd1c0c076d4739a438002b86d711f2" + }, + { + "m_Id": "943835c69f534645b1a7772126571304" + }, + { + "m_Id": "01b9e10fa9e94bf7893e9c8b7a885cdb" + }, + { + "m_Id": "96e775680d93405fa5ad6da92aea4087" + }, + { + "m_Id": "9ee486ab00f145f596c0be4b0447231c" + }, + { + "m_Id": "6d99b4d4d03c4bb786479ebc06189b3e" + }, + { + "m_Id": "fc7ebf94393e47a7a21b73be38064276" + }, + { + "m_Id": "2122e0a185ad48d5be4c2d7cf64c54d3" + }, + { + "m_Id": "ff42a4d72e234f509e687042ecc67e78" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Rive/Universal Render Pipeline", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "35da55e626d7485cb886114cde270bde" + } + ] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "00473f8308054e68bf73f91612e82397", + "m_Guid": { + "m_GuidSerialized": "3c27b79b-f053-474c-8411-b73c460cc3e0" + }, + "m_Name": "Smoothness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Smoothness", + "m_DefaultReferenceName": "_Smoothness", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "01b9e10fa9e94bf7893e9c8b7a885cdb", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "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": "159f84eeb35240de9248152334ada197" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "07d14ac616bb4659b7f607984866a1de", + "m_Group": { + "m_Id": "b8767b3c733b43e98cf197b634bd4810" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -866.0, + "y": 69.00003051757813, + "width": 137.0, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "824937d0649f40e4b934cedd2fe49ddd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "7d5a4ae6d2d74bdbb882bcc9af57ec8c" + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "0813cf92747e40a1be3590e6f8f10aca", + "m_Guid": { + "m_GuidSerialized": "409db227-4b8b-4c56-a3d9-d97f5d087e18" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "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": { + "r": 0.9176470637321472, + "g": 0.9176470637321472, + "b": 0.9176470637321472, + "a": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "08db1323e56b4525a018dac0b42a6053", + "m_Group": { + "m_Id": "4baa747411704fbcaef61b65912aa809" + }, + "m_Name": "SampleEmission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -520.9998779296875, + "y": 1030.0, + "width": 248.4998779296875, + "height": 303.0 + } + }, + "m_Slots": [ + { + "m_Id": "8475cf6a36e34e51b9424ce8948d28a0" + }, + { + "m_Id": "d3c0d817065c450a9ea0171f965a1160" + }, + { + "m_Id": "8f23017ecc06458d952a7276427e1f05" + } + ], + "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\": \"c3bbcf1d5b5ee446baa01a87b8e5dadf\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "417ee71e-80a1-414f-b809-df8c19e3743f", + "9fae8bf3-f659-4d48-8efb-5f8bda92ca8e", + "0d74976b-fbf8-4395-8137-14c541e8d2c5" + ], + "m_PropertyIds": [ + -1281716962, + -680323842, + 1311224659 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0e90611521a34249b0f08a300d1fde30", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "1000fee8e9624654aab329c016417acc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -178.5, + "y": 475.0, + "width": 103.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "ceda68202afd492dbe482831c417d135" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5455964a267d4c1a809e3abf53058cb8" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "1065c656ec18417baf380582c74156f6", + "m_Id": 1334702512, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "10d2ebfa524c48f69733f92b4e79be0e", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "159f84eeb35240de9248152334ada197", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "18922248a30941c4ad7c86f785853061", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "2122e0a185ad48d5be4c2d7cf64c54d3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "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": "fa9901c539ef44948e56770f900425a4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "23153ce124104a54b1b17cc80faa63f6", + "m_Group": { + "m_Id": "b8767b3c733b43e98cf197b634bd4810" + }, + "m_Name": "SampleMainRiveTexture", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -533.5, + "y": 35.500030517578128, + "width": 235.5, + "height": 302.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "1065c656ec18417baf380582c74156f6" + }, + { + "m_Id": "6cde706d62b3429baa3f8c9206adea31" + }, + { + "m_Id": "564a34b862e44589883750a739e4da5b" + }, + { + "m_Id": "10d2ebfa524c48f69733f92b4e79be0e" + } + ], + "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\": \"287ae8d259edf47cf9ec073950debe11\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "4b65a152-6b9e-429e-bbc1-bebac7fac8fc", + "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + ], + "m_PropertyIds": [ + 1334702512, + 1190027673 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "23adb08db2734ef79327b447af83562b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "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": "bd70d260d9ac411a836054266d22c481" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "35a5fc0bbf7f4aaba5a81144d5e6793c", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "35da55e626d7485cb886114cde270bde", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "4f5002fd7e39473391aa44f6ae6bb432" + }, + "m_AllowMaterialOverride": true, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "38cc0e713c3c4b0499ae4ff5f9247187", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3aaf7ac95a0d465cb2254bc56a0693f8", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3bfa29ce7a6e4a2ab63997286c434326", + "m_Id": 1, + "m_DisplayName": "On", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "On", + "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.PropertyNode", + "m_ObjectId": "4b5e8c69daaf4dca8be37e1018f89467", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -5.0, + "y": 672.0, + "width": 140.0001220703125, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "0e90611521a34249b0f08a300d1fde30" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "00473f8308054e68bf73f91612e82397" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "4baa747411704fbcaef61b65912aa809", + "m_Title": "Emission", + "m_Position": { + "x": -920.5, + "y": 930.5 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4d05cc60d1fc4ae4be5c2c9d120ecf53", + "m_Group": { + "m_Id": "4baa747411704fbcaef61b65912aa809" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -882.4998779296875, + "y": 1030.9998779296875, + "width": 151.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "d83a3cbd14d042939f91122475ec6c9f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5730dcee64f34c94ae9584c4ebd04922" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.KeywordNode", + "m_ObjectId": "4e95ded0a3034f56aa6cf4b21180cb64", + "m_Group": { + "m_Id": "4baa747411704fbcaef61b65912aa809" + }, + "m_Name": "Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.5, + "y": 1031.0, + "width": 208.0001220703125, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "e66b034bd17d454293a65f4cc89a69f6" + }, + { + "m_Id": "3bfa29ce7a6e4a2ab63997286c434326" + }, + { + "m_Id": "6edaf0696ee142c48af5561543746ca0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Keyword": { + "m_Id": "aed4ad7f5d0147998d777ef3cc7d2426" + } +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "4f5002fd7e39473391aa44f6ae6bb432", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "4fab56d0354446d793c04673b5962b16", + "m_Guid": { + "m_GuidSerialized": "e5bbf746-236f-4644-93d6-8f986fc8843c" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "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": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "5455964a267d4c1a809e3abf53058cb8", + "m_Guid": { + "m_GuidSerialized": "328aee4e-6ba7-4e1a-a05c-06e5563d9327" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": 0.5, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "564a34b862e44589883750a739e4da5b", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "5730dcee64f34c94ae9584c4ebd04922", + "m_Guid": { + "m_GuidSerialized": "f783df94-24f4-4a37-bb6f-2a19696506a2" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "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": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.003921568859368563 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "599ea00fc37d40e1a2123ced4ee17ae8", + "m_Group": { + "m_Id": "b8767b3c733b43e98cf197b634bd4810" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -866.0, + "y": 120.99996948242188, + "width": 135.5, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "6f282f99c2314617bd76a9fefdea4bb0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "0813cf92747e40a1be3590e6f8f10aca" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "5a99c25ea3c24d1ea3ab8e518392fd03", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "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": "a6c989315dea4e89aea933c960cba6c2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "67bd1c0c076d4739a438002b86d711f2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "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": "35a5fc0bbf7f4aaba5a81144d5e6793c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "6b6059ce48e64c4e9bea880e097df40d", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "6cde706d62b3429baa3f8c9206adea31", + "m_Id": 1190027673, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "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.BlockNode", + "m_ObjectId": "6d99b4d4d03c4bb786479ebc06189b3e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "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": "b2d89e8d0168468dabc9f7d4b6c32906" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "6edaf0696ee142c48af5561543746ca0", + "m_Id": 2, + "m_DisplayName": "Off", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Off", + "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": "6f282f99c2314617bd76a9fefdea4bb0", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "736938f9b2d4477992ce0d5e1b2c67ec", + "m_Guid": { + "m_GuidSerialized": "64bf31e2-7a67-4329-9f8b-126e605930d6" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "7d5a4ae6d2d74bdbb882bcc9af57ec8c", + "m_Guid": { + "m_GuidSerialized": "54398ed1-91a8-47b5-9a0b-5631d5acb8b8" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "824937d0649f40e4b934cedd2fe49ddd", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "8450f3a032cf4a8799269087d8ca5db2", + "m_Id": 0, + "m_DisplayName": "SpecularColor", + "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": "8475cf6a36e34e51b9424ce8948d28a0", + "m_Id": -1281716962, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "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.Vector4MaterialSlot", + "m_ObjectId": "8f23017ecc06458d952a7276427e1f05", + "m_Id": 1, + "m_DisplayName": "Out_Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Emission", + "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.NormalMaterialSlot", + "m_ObjectId": "93ba0f1ded524c46a8118b5a94d3e050", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "943835c69f534645b1a7772126571304", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "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": "93ba0f1ded524c46a8118b5a94d3e050" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "96e775680d93405fa5ad6da92aea4087", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "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": "38cc0e713c3c4b0499ae4ff5f9247187" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "9769617b837244c0a7232fc1d3dbfb1b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "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": "6b6059ce48e64c4e9bea880e097df40d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9ba36d916c0b41c7b349dacbc6ac63af", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "9ee486ab00f145f596c0be4b0447231c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "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": "dfe73f50e6b947f9affb6138700394cc" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "a6c989315dea4e89aea933c960cba6c2", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "a6d30a27d0fb4a8098593c405fccdf93", + "m_Id": 0, + "m_DisplayName": "Specular Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Specular", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ShaderKeyword", + "m_ObjectId": "aed4ad7f5d0147998d777ef3cc7d2426", + "m_Guid": { + "m_GuidSerialized": "ddac7e60-c11c-4f06-9c65-e06890571cc5" + }, + "m_Name": "Emission", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Emission", + "m_DefaultReferenceName": "_EMISSION", + "m_OverrideReferenceName": "_USE_EMISSION_ON", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_KeywordType": 0, + "m_KeywordDefinition": 0, + "m_KeywordScope": 0, + "m_KeywordStages": 63, + "m_Entries": [], + "m_Value": 0, + "m_IsEditable": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b2d89e8d0168468dabc9f7d4b6c32906", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "b8767b3c733b43e98cf197b634bd4810", + "m_Title": "Main Texture", + "m_Position": { + "x": -890.8063354492188, + "y": -22.795249938964845 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b95c6f45ca1d48dab6c795b9b5b9c925", + "m_Group": { + "m_Id": "4baa747411704fbcaef61b65912aa809" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -895.5, + "y": 1105.9998779296875, + "width": 152.5, + "height": 34.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "18922248a30941c4ad7c86f785853061" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4fab56d0354446d793c04673b5962b16" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "bd70d260d9ac411a836054266d22c481", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "c055f67af2a649798edb9150d9d9e596", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "7d5a4ae6d2d74bdbb882bcc9af57ec8c" + }, + { + "m_Id": "0813cf92747e40a1be3590e6f8f10aca" + }, + { + "m_Id": "736938f9b2d4477992ce0d5e1b2c67ec" + }, + { + "m_Id": "00473f8308054e68bf73f91612e82397" + }, + { + "m_Id": "aed4ad7f5d0147998d777ef3cc7d2426" + }, + { + "m_Id": "4fab56d0354446d793c04673b5962b16" + }, + { + "m_Id": "5730dcee64f34c94ae9584c4ebd04922" + }, + { + "m_Id": "d09d6ae72a434fc0b0cf579bb39078ff" + }, + { + "m_Id": "5455964a267d4c1a809e3abf53058cb8" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c208f2afc03f45f0a8d82cc56d1bb6ce", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 19.5, + "y": 603.0, + "width": 115.5001220703125, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "9ba36d916c0b41c7b349dacbc6ac63af" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "736938f9b2d4477992ce0d5e1b2c67ec" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ceda68202afd492dbe482831c417d135", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "d09d6ae72a434fc0b0cf579bb39078ff", + "m_Guid": { + "m_GuidSerialized": "497e5e2b-a1b2-4644-9d03-bdba3dbb506e" + }, + "m_Name": "SpecularColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "SpecularColor", + "m_DefaultReferenceName": "_SpecularColor", + "m_OverrideReferenceName": "_SpecColor", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.501960813999176, + "g": 0.501960813999176, + "b": 0.501960813999176, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "d3c0d817065c450a9ea0171f965a1160", + "m_Id": -680323842, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d83a3cbd14d042939f91122475ec6c9f", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "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.ColorRGBMaterialSlot", + "m_ObjectId": "dfe73f50e6b947f9affb6138700394cc", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e66b034bd17d454293a65f4cc89a69f6", + "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.PropertyNode", + "m_ObjectId": "f555859ce36242d0882e613d4490acde", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -45.9998779296875, + "y": 756.5, + "width": 150.4998779296875, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "8450f3a032cf4a8799269087d8ca5db2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d09d6ae72a434fc0b0cf579bb39078ff" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "fa9901c539ef44948e56770f900425a4", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "fc7ebf94393e47a7a21b73be38064276", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Specular", + "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": "a6d30a27d0fb4a8098593c405fccdf93" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Specular" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ff42a4d72e234f509e687042ecc67e78", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "3aaf7ac95a0d465cb2254bc56a0693f8" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + diff --git a/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Lit.shadergraph.meta b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Lit.shadergraph.meta new file mode 100644 index 000000000..8b873f820 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Lit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 3f7c775fc281646d8acee82c47c7016a +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Unlit.shadergraph b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Unlit.shadergraph new file mode 100644 index 000000000..e4a35b459 --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Unlit.shadergraph @@ -0,0 +1,963 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "8a72c217aca04e8da794e3a37be1c994", + "m_Properties": [ + { + "m_Id": "0e6cbb8fa0dd44a2adbb600415866ac7" + }, + { + "m_Id": "37de38f66da04e79885d090f815c85f2" + }, + { + "m_Id": "e3dec2af43aa4aaea19b15892e1fb205" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "97b3f2f641234bdc9115dc56f8f717f4" + } + ], + "m_Nodes": [ + { + "m_Id": "22d8082a3e004e5f82fadc7fd187409b" + }, + { + "m_Id": "1aae4ce00b5a4a72aacf335067b4d9df" + }, + { + "m_Id": "a9295c78809f4f88bbf9a98f0bd83c0e" + }, + { + "m_Id": "ca9e31a73bbc42f1add1c7c5d13d0dd3" + }, + { + "m_Id": "e58c2aa05205411cae96b18996dc21b6" + }, + { + "m_Id": "2f1ccb70104242e199ea54a5503738db" + }, + { + "m_Id": "dc75333dde6a4f05bade7f0bff7cab17" + }, + { + "m_Id": "8eb12b50125f4a1b8b39cb4465a24b8a" + }, + { + "m_Id": "9e29b3f2e47e4522b6be9d02761107fc" + }, + { + "m_Id": "aee999def90c4824aefd76e178e312eb" + } + ], + "m_GroupDatas": [ + { + "m_Id": "798620dff22b4592ae6fe625b9d0959e" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8eb12b50125f4a1b8b39cb4465a24b8a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e29b3f2e47e4522b6be9d02761107fc" + }, + "m_SlotId": 1334702512 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e29b3f2e47e4522b6be9d02761107fc" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ca9e31a73bbc42f1add1c7c5d13d0dd3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e29b3f2e47e4522b6be9d02761107fc" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e58c2aa05205411cae96b18996dc21b6" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "aee999def90c4824aefd76e178e312eb" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2f1ccb70104242e199ea54a5503738db" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "dc75333dde6a4f05bade7f0bff7cab17" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e29b3f2e47e4522b6be9d02761107fc" + }, + "m_SlotId": 1190027673 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "22d8082a3e004e5f82fadc7fd187409b" + }, + { + "m_Id": "1aae4ce00b5a4a72aacf335067b4d9df" + }, + { + "m_Id": "a9295c78809f4f88bbf9a98f0bd83c0e" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "ca9e31a73bbc42f1add1c7c5d13d0dd3" + }, + { + "m_Id": "e58c2aa05205411cae96b18996dc21b6" + }, + { + "m_Id": "2f1ccb70104242e199ea54a5503738db" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Rive/Universal Render Pipeline", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "e990e6fec6c64676a507d6a40b2f8543" + } + ] +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "094d9ebd56e34282a396968bb312ca49" +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "0e6cbb8fa0dd44a2adbb600415866ac7", + "m_Guid": { + "m_GuidSerialized": "74e41c20-6580-4aa3-bd4b-6cd95e066ee8" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "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": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "1aae4ce00b5a4a72aacf335067b4d9df", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "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": "866a5342b58e41b68a9688a76c504a1e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "1d5dd77babb548a2a1cca90455792a3c", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "22d8082a3e004e5f82fadc7fd187409b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "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": "1d5dd77babb548a2a1cca90455792a3c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "28bc48b35c1e4ce89186650e5f80e5d6", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "2f1ccb70104242e199ea54a5503738db", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "35a70fbe5f7e409fbd225b5d5adb47e4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "30051542fb7c4262905702e4edc2fe6f", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "35a70fbe5f7e409fbd225b5d5adb47e4", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "37de38f66da04e79885d090f815c85f2", + "m_Guid": { + "m_GuidSerialized": "1c5d2b01-9615-499a-84ce-1efbf5767117" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "56252a9d762f4616a3411a77bd4cb4a0", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "5d2b140780d74aab8cc79bd6117c9f36", + "m_Id": 1334702512, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "6088f2f8640c42b8a4708198e138a5b3", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "67c27cacf13d4fd4812ad7b6e441ea59", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "693e86d58ad04f5fad62c5d0ebdcb88e", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "798620dff22b4592ae6fe625b9d0959e", + "m_Title": "Main Texture", + "m_Position": { + "x": -924.4998779296875, + "y": 2.99993896484375 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "866a5342b58e41b68a9688a76c504a1e", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "8da44223424740bb8aa84e4593ece275", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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.PropertyNode", + "m_ObjectId": "8eb12b50125f4a1b8b39cb4465a24b8a", + "m_Group": { + "m_Id": "798620dff22b4592ae6fe625b9d0959e" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -899.5, + "y": 95.0, + "width": 137.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "28bc48b35c1e4ce89186650e5f80e5d6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "37de38f66da04e79885d090f815c85f2" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "97b3f2f641234bdc9115dc56f8f717f4", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "37de38f66da04e79885d090f815c85f2" + }, + { + "m_Id": "0e6cbb8fa0dd44a2adbb600415866ac7" + }, + { + "m_Id": "e3dec2af43aa4aaea19b15892e1fb205" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "9e29b3f2e47e4522b6be9d02761107fc", + "m_Group": { + "m_Id": "798620dff22b4592ae6fe625b9d0959e" + }, + "m_Name": "SampleMainRiveTexture", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -567.0, + "y": 61.5, + "width": 235.5, + "height": 302.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "5d2b140780d74aab8cc79bd6117c9f36" + }, + { + "m_Id": "e9ff0a80260c49209ddc034c4408259f" + }, + { + "m_Id": "6088f2f8640c42b8a4708198e138a5b3" + }, + { + "m_Id": "67c27cacf13d4fd4812ad7b6e441ea59" + } + ], + "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\": \"287ae8d259edf47cf9ec073950debe11\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "4b65a152-6b9e-429e-bbc1-bebac7fac8fc", + "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + ], + "m_PropertyIds": [ + 1334702512, + 1190027673 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "a5e61f11c2054ed985b54088ee1ab0ec", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "a9295c78809f4f88bbf9a98f0bd83c0e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "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": "693e86d58ad04f5fad62c5d0ebdcb88e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "aee999def90c4824aefd76e178e312eb", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -427.515380859375, + "y": 435.34539794921877, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "56252a9d762f4616a3411a77bd4cb4a0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e3dec2af43aa4aaea19b15892e1fb205" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ca9e31a73bbc42f1add1c7c5d13d0dd3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "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": "a5e61f11c2054ed985b54088ee1ab0ec" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "dc75333dde6a4f05bade7f0bff7cab17", + "m_Group": { + "m_Id": "798620dff22b4592ae6fe625b9d0959e" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -899.5, + "y": 149.00006103515626, + "width": 135.5, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "8da44223424740bb8aa84e4593ece275" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "0e6cbb8fa0dd44a2adbb600415866ac7" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "e3dec2af43aa4aaea19b15892e1fb205", + "m_Guid": { + "m_GuidSerialized": "00920b1e-8cf7-4d8c-9ce8-839854e22050" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "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": 0.5, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e58c2aa05205411cae96b18996dc21b6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "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": "30051542fb7c4262905702e4edc2fe6f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "e990e6fec6c64676a507d6a40b2f8543", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "094d9ebd56e34282a396968bb312ca49" + }, + "m_AllowMaterialOverride": true, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "e9ff0a80260c49209ddc034c4408259f", + "m_Id": 1190027673, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "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": [] +} + diff --git a/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Unlit.shadergraph.meta b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Unlit.shadergraph.meta new file mode 100644 index 000000000..32629e60a --- /dev/null +++ b/package/Runtime/Components/Public/RenderPipelines/URP/Shaders/Unlit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 39bae129d756041e4a0f305f26ebebe4 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/package/Runtime/Components/Shaders.meta b/package/Runtime/Components/Shaders.meta new file mode 100644 index 000000000..3750933d6 --- /dev/null +++ b/package/Runtime/Components/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b08baea7d81994a079ee05c520411f86 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/Shaders/SubGraphs.meta b/package/Runtime/Components/Shaders/SubGraphs.meta new file mode 100644 index 000000000..075c8e924 --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5703e47da1dcf4bac9f5256170f6cc9c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Components/Shaders/SubGraphs/SRGBDecode_Auto.shadersubgraph b/package/Runtime/Components/Shaders/SubGraphs/SRGBDecode_Auto.shadersubgraph new file mode 100644 index 000000000..8716f9f5b --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs/SRGBDecode_Auto.shadersubgraph @@ -0,0 +1,1441 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "eb88a84afc214c0fa1d68263741d611b", + "m_Properties": [ + { + "m_Id": "295e96d016b14e9290fd81de528ca096" + }, + { + "m_Id": "59a055fdbc4c477cbc764edafe6f786f" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "49596b91ed64443c8035c7fc265d0880" + } + ], + "m_Nodes": [ + { + "m_Id": "d8c8767d04e04428938c836ebfecee85" + }, + { + "m_Id": "43d49b32d0e946949d413b8e0a97e77f" + }, + { + "m_Id": "e448003cc3364f6d852d70ba1b1f3bf3" + }, + { + "m_Id": "6f1cc8c3428b441b9a910c604a286f10" + }, + { + "m_Id": "bd59a8f7dd8b4936bf21b041a9aa0c31" + }, + { + "m_Id": "e9124f6db5aa42419684d4e4589070ea" + }, + { + "m_Id": "677beffccf0547e5ad62e57e6a7bce25" + }, + { + "m_Id": "5c81447017ab4256ad3a7a4793dd7725" + }, + { + "m_Id": "91468eda37c34d8798f4c5687fc2dd18" + }, + { + "m_Id": "632f266def044498b9a87bc416085cd8" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "43d49b32d0e946949d413b8e0a97e77f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6f1cc8c3428b441b9a910c604a286f10" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5c81447017ab4256ad3a7a4793dd7725" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "677beffccf0547e5ad62e57e6a7bce25" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5c81447017ab4256ad3a7a4793dd7725" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "677beffccf0547e5ad62e57e6a7bce25" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5c81447017ab4256ad3a7a4793dd7725" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "677beffccf0547e5ad62e57e6a7bce25" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "632f266def044498b9a87bc416085cd8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "91468eda37c34d8798f4c5687fc2dd18" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "677beffccf0547e5ad62e57e6a7bce25" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d8c8767d04e04428938c836ebfecee85" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6f1cc8c3428b441b9a910c604a286f10" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bd59a8f7dd8b4936bf21b041a9aa0c31" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6f1cc8c3428b441b9a910c604a286f10" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bd59a8f7dd8b4936bf21b041a9aa0c31" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6f1cc8c3428b441b9a910c604a286f10" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bd59a8f7dd8b4936bf21b041a9aa0c31" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6f1cc8c3428b441b9a910c604a286f10" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "677beffccf0547e5ad62e57e6a7bce25" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "91468eda37c34d8798f4c5687fc2dd18" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e9124f6db5aa42419684d4e4589070ea" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bd59a8f7dd8b4936bf21b041a9aa0c31" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e448003cc3364f6d852d70ba1b1f3bf3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bd59a8f7dd8b4936bf21b041a9aa0c31" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e9124f6db5aa42419684d4e4589070ea" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e448003cc3364f6d852d70ba1b1f3bf3" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e9124f6db5aa42419684d4e4589070ea" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e9124f6db5aa42419684d4e4589070ea" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5c81447017ab4256ad3a7a4793dd7725" + }, + "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": "d8c8767d04e04428938c836ebfecee85" + }, + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "04ac3f954860444b865878cdad1a4d11", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "0a8fe9da917d4fde9dea2e25ecfa323f", + "m_Id": 3, + "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.Vector3MaterialSlot", + "m_ObjectId": "125e245f40c8421ba8835759c4fe7320", + "m_Id": 5, + "m_DisplayName": "RGB", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGB", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "141dc913c18e4169aa2ecc0303082fbe", + "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.Vector2MaterialSlot", + "m_ObjectId": "16ee05169b6f41009b749221280a570c", + "m_Id": 6, + "m_DisplayName": "RG", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RG", + "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": "16fb5b3a9e9d419b8bef70b16eac7433", + "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.Vector1MaterialSlot", + "m_ObjectId": "1780727428214f2f90b7305964f511a1", + "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.Vector1MaterialSlot", + "m_ObjectId": "235e61712dfa46d7828cb0d21236e80e", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty", + "m_ObjectId": "295e96d016b14e9290fd81de528ca096", + "m_Guid": { + "m_GuidSerialized": "a7292d5e-7e6d-42f7-9e9c-223d6cad8047" + }, + "m_Name": "ColorIn", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ColorIn", + "m_DefaultReferenceName": "_ColorIn", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "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.BooleanMaterialSlot", + "m_ObjectId": "2cd34ab23c154a4680c51ece76953b7e", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2eff41287d124212b0729f362e2dde0d", + "m_Id": 2, + "m_DisplayName": "B", + "m_SlotType": 0, + "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.Vector4MaterialSlot", + "m_ObjectId": "3c5699d1fc4344129975458a40be1fb2", + "m_Id": 4, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "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.PropertyNode", + "m_ObjectId": "43d49b32d0e946949d413b8e0a97e77f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -290.5, + "y": -682.5, + "width": 114.5, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "f2cf0350f5054a40b09a7a566025e999" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "295e96d016b14e9290fd81de528ca096" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "49596b91ed64443c8035c7fc265d0880", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "295e96d016b14e9290fd81de528ca096" + }, + { + "m_Id": "59a055fdbc4c477cbc764edafe6f786f" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4b558ad07956457ea80b0adc5d6f0188", + "m_Id": 2, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "59a055fdbc4c477cbc764edafe6f786f", + "m_Guid": { + "m_GuidSerialized": "cb2852af-b565-4de2-964c-573df4bce630" + }, + "m_Name": "DecodeMode", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "DecodeMode", + "m_DefaultReferenceName": "_DecodeMode", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 2, + "m_Hidden": false, + "m_Value": -1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "5a73031683fe445bad9cb59da7292dd5", + "m_Id": 1, + "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 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "5c81447017ab4256ad3a7a4793dd7725", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 644.0, + "y": -609.5, + "width": 119.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "a46ba1ebd27b4e4aa25e948a08339b12" + }, + { + "m_Id": "da6aed685460449587e50ec32767f0d7" + }, + { + "m_Id": "1780727428214f2f90b7305964f511a1" + }, + { + "m_Id": "b50f9b3a08574d7184ec40d554b5105e" + }, + { + "m_Id": "04ac3f954860444b865878cdad1a4d11" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5ee7fb17b1e34d4989e7695d0deb57a9", + "m_Id": 0, + "m_DisplayName": "R", + "m_SlotType": 0, + "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.Vector3MaterialSlot", + "m_ObjectId": "5f573c4cc0984586a5a0d709187d09c8", + "m_Id": 5, + "m_DisplayName": "RGB", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGB", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "632f266def044498b9a87bc416085cd8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -308.0, + "y": -460.50006103515627, + "width": 145.0, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "98737829801745fa8e84d62ce24b791d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "59a055fdbc4c477cbc764edafe6f786f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CombineNode", + "m_ObjectId": "677beffccf0547e5ad62e57e6a7bce25", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Combine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 895.9999389648438, + "y": -857.5, + "width": 208.00018310546876, + "height": 350.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "5ee7fb17b1e34d4989e7695d0deb57a9" + }, + { + "m_Id": "99d7018de4cb40dd8a3e3d8596e2ebb5" + }, + { + "m_Id": "2eff41287d124212b0729f362e2dde0d" + }, + { + "m_Id": "d4a88f44d94f42ef8eab3082b676dee0" + }, + { + "m_Id": "7ed391068a9f4ca98630274e6e914897" + }, + { + "m_Id": "125e245f40c8421ba8835759c4fe7320" + }, + { + "m_Id": "16ee05169b6f41009b749221280a570c" + } + ], + "synonyms": [ + "append" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "693aaea30d11433a856b593fcb154cfa", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "69530a7be86f4289b97d8a2ee8581436", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "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.Vector1MaterialSlot", + "m_ObjectId": "69d87020a4f54f5681496a5d8d0935e7", + "m_Id": 1, + "m_DisplayName": "G", + "m_SlotType": 0, + "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.SplitNode", + "m_ObjectId": "6f1cc8c3428b441b9a910c604a286f10", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -235.5, + "y": -1130.4998779296875, + "width": 119.0, + "height": 148.99993896484376 + } + }, + "m_Slots": [ + { + "m_Id": "88b9cd298dcf446cadcba9ad2afb23d6" + }, + { + "m_Id": "235e61712dfa46d7828cb0d21236e80e" + }, + { + "m_Id": "141dc913c18e4169aa2ecc0303082fbe" + }, + { + "m_Id": "693aaea30d11433a856b593fcb154cfa" + }, + { + "m_Id": "16fb5b3a9e9d419b8bef70b16eac7433" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "7ed391068a9f4ca98630274e6e914897", + "m_Id": 4, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "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": "88b9cd298dcf446cadcba9ad2afb23d6", + "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": "8914a6582f264ad8b7cb557063eafb70", + "m_Id": 1, + "m_DisplayName": "Out_Vector4", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "OutVector4", + "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": "89d00dfe012145da9bbe98c35bc58bd8", + "m_Id": 6, + "m_DisplayName": "RG", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RG", + "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.CustomFunctionNode", + "m_ObjectId": "91468eda37c34d8798f4c5687fc2dd18", + "m_Group": { + "m_Id": "" + }, + "m_Name": "RiveShouldDecode_bool (Custom Function)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -12.499969482421875, + "y": -482.00006103515627, + "width": 292.0, + "height": 278.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "e841b5793af64b85ac48448432307f6b" + }, + { + "m_Id": "a2b3687558c049bb8088440c1e58e63e" + } + ], + "synonyms": [ + "code", + "HLSL" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SourceType": 1, + "m_FunctionName": "RiveShouldDecode_bool", + "m_FunctionSource": "", + "m_FunctionBody": "// UNITY_COLORSPACE_GAMMA is defined in Gamma projects\n bool isLinearProject = false;\n #if !defined(UNITY_COLORSPACE_GAMMA)\n isLinearProject = true;\n #endif\n\n // DecodeMode: -1 = Auto, 0 = Force Off, 1 = Force On\n if (DecodeMode < -0.5)\n ShouldDecode = isLinearProject;\n else if (DecodeMode < 0.5)\n ShouldDecode = false;\n else\n ShouldDecode = true;\n" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "98737829801745fa8e84d62ce24b791d", + "m_Id": 0, + "m_DisplayName": "DecodeMode", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "99d7018de4cb40dd8a3e3d8596e2ebb5", + "m_Id": 1, + "m_DisplayName": "G", + "m_SlotType": 0, + "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.BooleanMaterialSlot", + "m_ObjectId": "a2b3687558c049bb8088440c1e58e63e", + "m_Id": 1, + "m_DisplayName": "ShouldDecode", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "ShouldDecode", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a46ba1ebd27b4e4aa25e948a08339b12", + "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.Vector3MaterialSlot", + "m_ObjectId": "a869ce0ef75044e2a059b4b50e90a09a", + "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 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "afed049c2861446ab19716616aad3b35", + "m_Id": 0, + "m_DisplayName": "R", + "m_SlotType": 0, + "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": "b50f9b3a08574d7184ec40d554b5105e", + "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.CombineNode", + "m_ObjectId": "bd59a8f7dd8b4936bf21b041a9aa0c31", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Combine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -52.0, + "y": -1032.5001220703125, + "width": 207.9998779296875, + "height": 350.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "afed049c2861446ab19716616aad3b35" + }, + { + "m_Id": "69d87020a4f54f5681496a5d8d0935e7" + }, + { + "m_Id": "4b558ad07956457ea80b0adc5d6f0188" + }, + { + "m_Id": "bf942619f69241729398bf7a76db544b" + }, + { + "m_Id": "3c5699d1fc4344129975458a40be1fb2" + }, + { + "m_Id": "5f573c4cc0984586a5a0d709187d09c8" + }, + { + "m_Id": "89d00dfe012145da9bbe98c35bc58bd8" + } + ], + "synonyms": [ + "append" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bf942619f69241729398bf7a76db544b", + "m_Id": 3, + "m_DisplayName": "A", + "m_SlotType": 0, + "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.Vector1MaterialSlot", + "m_ObjectId": "d4a88f44d94f42ef8eab3082b676dee0", + "m_Id": 3, + "m_DisplayName": "A", + "m_SlotType": 0, + "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.SubGraphOutputNode", + "m_ObjectId": "d8c8767d04e04428938c836ebfecee85", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1141.499755859375, + "y": -1032.5, + "width": 120.500244140625, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "8914a6582f264ad8b7cb557063eafb70" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "da6aed685460449587e50ec32767f0d7", + "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.ColorspaceConversionNode", + "m_ObjectId": "e448003cc3364f6d852d70ba1b1f3bf3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Colorspace Conversion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 279.4998779296875, + "y": -1032.4998779296875, + "width": 211.0001220703125, + "height": 130.4998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "a869ce0ef75044e2a059b4b50e90a09a" + }, + { + "m_Id": "5a73031683fe445bad9cb59da7292dd5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Conversion": { + "from": 0, + "to": 1 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e841b5793af64b85ac48448432307f6b", + "m_Id": 0, + "m_DisplayName": "DecodeMode", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "DecodeMode", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BranchNode", + "m_ObjectId": "e9124f6db5aa42419684d4e4589070ea", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 385.0, + "y": -682.4999389648438, + "width": 208.0, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "2cd34ab23c154a4680c51ece76953b7e" + }, + { + "m_Id": "69530a7be86f4289b97d8a2ee8581436" + }, + { + "m_Id": "fdedada47da74942bf705a755b9b430f" + }, + { + "m_Id": "0a8fe9da917d4fde9dea2e25ecfa323f" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "f2cf0350f5054a40b09a7a566025e999", + "m_Id": 0, + "m_DisplayName": "ColorIn", + "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": "fdedada47da74942bf705a755b9b430f", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "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 + } +} + diff --git a/package/Runtime/Components/Shaders/SubGraphs/SRGBDecode_Auto.shadersubgraph.meta b/package/Runtime/Components/Shaders/SubGraphs/SRGBDecode_Auto.shadersubgraph.meta new file mode 100644 index 000000000..5161a5275 --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs/SRGBDecode_Auto.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: a2b967a2d741d41f0892c3328200244a +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/package/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph b/package/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph new file mode 100644 index 000000000..f6432ac3c --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph @@ -0,0 +1,760 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "6b619450691d4acd8bb2e2ede69d3b11", + "m_Properties": [ + { + "m_Id": "e41d6edd101b49f38ddd3fe98cbe839d" + }, + { + "m_Id": "ec0ba007f0bc41e6b7507ffab93a4e81" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "d1ede69802af4f6cad6f3067ef22d601" + } + ], + "m_Nodes": [ + { + "m_Id": "f11c51012e9e49c48347c1ed01688305" + }, + { + "m_Id": "c3c7f2aaaa834aeaaac17e8f6edbf4ee" + }, + { + "m_Id": "916e8be24dd940b9a815617014fea622" + }, + { + "m_Id": "fe5f2e41089241ddb9665cdfded52ead" + }, + { + "m_Id": "a6ca5138a21040c88fbbb604dacfbb52" + } + ], + "m_GroupDatas": [ + { + "m_Id": "31a187406d544c71addcb5f2ec60f0dd" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "916e8be24dd940b9a815617014fea622" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f11c51012e9e49c48347c1ed01688305" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a6ca5138a21040c88fbbb604dacfbb52" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "916e8be24dd940b9a815617014fea622" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c3c7f2aaaa834aeaaac17e8f6edbf4ee" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "916e8be24dd940b9a815617014fea622" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fe5f2e41089241ddb9665cdfded52ead" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c3c7f2aaaa834aeaaac17e8f6edbf4ee" + }, + "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": "f11c51012e9e49c48347c1ed01688305" + }, + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "127ce91b3943483c9de5b1070447418b", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "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": "2db0a2a145da4be2836e69c5a0108f7c", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "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.UVMaterialSlot", + "m_ObjectId": "30051f629c374179a6fd13d9fb476e26", + "m_Id": 2, + "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_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "31a187406d544c71addcb5f2ec60f0dd", + "m_Title": "Emission", + "m_Position": { + "x": -509.9999694824219, + "y": -73.99996948242188 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "43ec2b868c7f481eb85bf08eed225c8d", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "82c0444a2bf14afc8b1e33e64a389ab2", + "m_Id": 1, + "m_DisplayName": "Out_Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Emission", + "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.MultiplyNode", + "m_ObjectId": "916e8be24dd940b9a815617014fea622", + "m_Group": { + "m_Id": "31a187406d544c71addcb5f2ec60f0dd" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 143.49993896484376, + "y": 378.4999694824219, + "width": 208.0, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "cf892bd3a2a042fe9432dcb3df524adb" + }, + { + "m_Id": "edaa132f45f240b5ba2c0389af96056a" + }, + { + "m_Id": "ba915cd2e5d2465197c7177a4fd7d429" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9ed77e23228848baafc8f9ae0cf6ae5c", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a6ca5138a21040c88fbbb604dacfbb52", + "m_Group": { + "m_Id": "31a187406d544c71addcb5f2ec60f0dd" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -301.49993896484377, + "y": 236.49996948242188, + "width": 151.0, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "127ce91b3943483c9de5b1070447418b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e41d6edd101b49f38ddd3fe98cbe839d" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "a7afdcba447646dda5deb46af76ab0b2", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ba915cd2e5d2465197c7177a4fd7d429", + "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.SampleTexture2DNode", + "m_ObjectId": "c3c7f2aaaa834aeaaac17e8f6edbf4ee", + "m_Group": { + "m_Id": "31a187406d544c71addcb5f2ec60f0dd" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -247.0, + "y": 324.4999694824219, + "width": 208.0, + "height": 434.0001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "2db0a2a145da4be2836e69c5a0108f7c" + }, + { + "m_Id": "dccd4f03ee2a45b2ab70812f50729cc7" + }, + { + "m_Id": "c79bc36d84c443f5abc70525a05bdae0" + }, + { + "m_Id": "f69e71976a2d4ecea22a95028807dbeb" + }, + { + "m_Id": "9ed77e23228848baafc8f9ae0cf6ae5c" + }, + { + "m_Id": "43ec2b868c7f481eb85bf08eed225c8d" + }, + { + "m_Id": "30051f629c374179a6fd13d9fb476e26" + }, + { + "m_Id": "fbfb207e7d1149d980d5acae2b983f1c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c79bc36d84c443f5abc70525a05bdae0", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "cf892bd3a2a042fe9432dcb3df524adb", + "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.CategoryData", + "m_ObjectId": "d1ede69802af4f6cad6f3067ef22d601", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "e41d6edd101b49f38ddd3fe98cbe839d" + }, + { + "m_Id": "ec0ba007f0bc41e6b7507ffab93a4e81" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "dccd4f03ee2a45b2ab70812f50729cc7", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "e41d6edd101b49f38ddd3fe98cbe839d", + "m_Guid": { + "m_GuidSerialized": "417ee71e-80a1-414f-b809-df8c19e3743f" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "ec0ba007f0bc41e6b7507ffab93a4e81", + "m_Guid": { + "m_GuidSerialized": "9fae8bf3-f659-4d48-8efb-5f8bda92ca8e" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "edaa132f45f240b5ba2c0389af96056a", + "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": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", + "m_ObjectId": "f11c51012e9e49c48347c1ed01688305", + "m_Group": { + "m_Id": "31a187406d544c71addcb5f2ec60f0dd" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1002.4999389648438, + "y": -15.499969482421875, + "width": 120.50006103515625, + "height": 76.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "82c0444a2bf14afc8b1e33e64a389ab2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f69e71976a2d4ecea22a95028807dbeb", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "fbfb207e7d1149d980d5acae2b983f1c", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fe5f2e41089241ddb9665cdfded52ead", + "m_Group": { + "m_Id": "31a187406d544c71addcb5f2ec60f0dd" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -484.99993896484377, + "y": 253.49993896484376, + "width": 152.5, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "a7afdcba447646dda5deb46af76ab0b2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ec0ba007f0bc41e6b7507ffab93a4e81" + } +} + diff --git a/package/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph.meta b/package/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph.meta new file mode 100644 index 000000000..fea0895bd --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: c3bbcf1d5b5ee446baa01a87b8e5dadf +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/package/Runtime/Components/Shaders/SubGraphs/SampleMainRiveTexture.shadersubgraph b/package/Runtime/Components/Shaders/SubGraphs/SampleMainRiveTexture.shadersubgraph new file mode 100644 index 000000000..2346b57db --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs/SampleMainRiveTexture.shadersubgraph @@ -0,0 +1,906 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "6b29bc6e2a604c9caa97ea94b2c80736", + "m_Properties": [ + { + "m_Id": "f77bdba097f842efacf27ee2c4c0d506" + }, + { + "m_Id": "9e1655f2e4744921b0d82d5ae5c86246" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "2af809f4bc1c4e169b56f6b34177881a" + } + ], + "m_Nodes": [ + { + "m_Id": "5481f71ba5c04b1aaaeeaa510f770155" + }, + { + "m_Id": "505b646d4b1240998d1eb00bbdd63c14" + }, + { + "m_Id": "bd9926b765cb4f02ad6cd149c7c0d5b8" + }, + { + "m_Id": "2445892a52404f54bda48a2e9e6f84af" + }, + { + "m_Id": "b2635025e83d4585a80610c8cebd24b7" + }, + { + "m_Id": "607f8b4df7c04211abb8275f1a1b3632" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2445892a52404f54bda48a2e9e6f84af" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bd9926b765cb4f02ad6cd149c7c0d5b8" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "505b646d4b1240998d1eb00bbdd63c14" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2445892a52404f54bda48a2e9e6f84af" + }, + "m_SlotId": -1619238207 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "505b646d4b1240998d1eb00bbdd63c14" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5481f71ba5c04b1aaaeeaa510f770155" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "607f8b4df7c04211abb8275f1a1b3632" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bd9926b765cb4f02ad6cd149c7c0d5b8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b2635025e83d4585a80610c8cebd24b7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "505b646d4b1240998d1eb00bbdd63c14" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bd9926b765cb4f02ad6cd149c7c0d5b8" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5481f71ba5c04b1aaaeeaa510f770155" + }, + "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": "5481f71ba5c04b1aaaeeaa510f770155" + }, + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0900fee3a8314ee7bf356afe790b2885", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "1999b6ca2dfc46cb86e9f177fbe9c7ea", + "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.Vector1MaterialSlot", + "m_ObjectId": "1e279a64e0d8445e9dcc1ca48dd9b837", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "227ffc2d7fd74fda928a1a5210a76fb4", + "m_Id": -1954867288, + "m_DisplayName": "DecodeMode", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_DecodeMode", + "m_StageCapability": 3, + "m_Value": -1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "2445892a52404f54bda48a2e9e6f84af", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SRGBDecode_Auto", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 159.99996948242188, + "y": 178.99996948242188, + "width": 236.50006103515626, + "height": 303.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "55463da6ae114689a62afe9ec10d8861" + }, + { + "m_Id": "227ffc2d7fd74fda928a1a5210a76fb4" + }, + { + "m_Id": "c2170d8deef24038a6f385610b82ea6f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"a2b967a2d741d41f0892c3328200244a\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "a7292d5e-7e6d-42f7-9e9c-223d6cad8047", + "cb2852af-b565-4de2-964c-573df4bce630" + ], + "m_PropertyIds": [ + -1619238207, + -1954867288 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "2af809f4bc1c4e169b56f6b34177881a", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "f77bdba097f842efacf27ee2c4c0d506" + }, + { + "m_Id": "9e1655f2e4744921b0d82d5ae5c86246" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "3a6362af5b004bf1b69e3453ae880c72", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "3e523ac5b8554e74ab113b284819a44f", + "m_Id": 2, + "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_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "44d7cb15a43840deac9bb0dc0b0da372", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "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.SampleTexture2DNode", + "m_ObjectId": "505b646d4b1240998d1eb00bbdd63c14", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -185.666748046875, + "y": 432.33306884765627, + "width": 208.0, + "height": 434.0 + } + }, + "m_Slots": [ + { + "m_Id": "6f56033305d54403997dd878f352ef65" + }, + { + "m_Id": "d50e6707a0d24a41bba05216869f3b5c" + }, + { + "m_Id": "0900fee3a8314ee7bf356afe790b2885" + }, + { + "m_Id": "1e279a64e0d8445e9dcc1ca48dd9b837" + }, + { + "m_Id": "74e719677b154a188176354162d741fa" + }, + { + "m_Id": "d5baa588bf2c4058b79977aaf0edb5d4" + }, + { + "m_Id": "3e523ac5b8554e74ab113b284819a44f" + }, + { + "m_Id": "d2c1613a82b9444ca4a7060e817c28b0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", + "m_ObjectId": "5481f71ba5c04b1aaaeeaa510f770155", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 860.5, + "y": 381.0, + "width": 132.5001220703125, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "7c49812314c74d799b8304c558adc231" + }, + { + "m_Id": "ee88d84e52414d64a7233d06dfb9e8a3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "55463da6ae114689a62afe9ec10d8861", + "m_Id": -1619238207, + "m_DisplayName": "ColorIn", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ColorIn", + "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.PropertyNode", + "m_ObjectId": "607f8b4df7c04211abb8275f1a1b3632", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -14.159423828125, + "y": 16.1822509765625, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "44d7cb15a43840deac9bb0dc0b0da372" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e1655f2e4744921b0d82d5ae5c86246" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "6f56033305d54403997dd878f352ef65", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "6ff3db6ad8354a52aa21ceb81cdd2335", + "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": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "71354cc8f9bc4cd486ca15638fb7d6e8", + "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.Vector1MaterialSlot", + "m_ObjectId": "74e719677b154a188176354162d741fa", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7c49812314c74d799b8304c558adc231", + "m_Id": 1, + "m_DisplayName": "Out_BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Out_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "9e1655f2e4744921b0d82d5ae5c86246", + "m_Guid": { + "m_GuidSerialized": "0dafdea0-1c0d-40c7-9a2f-3553ae8cb358" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b2635025e83d4585a80610c8cebd24b7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -477.5, + "y": 474.5, + "width": 128.5, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "3a6362af5b004bf1b69e3453ae880c72" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f77bdba097f842efacf27ee2c4c0d506" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "bd9926b765cb4f02ad6cd149c7c0d5b8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 578.0001220703125, + "y": -84.00006103515625, + "width": 208.0, + "height": 302.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "71354cc8f9bc4cd486ca15638fb7d6e8" + }, + { + "m_Id": "6ff3db6ad8354a52aa21ceb81cdd2335" + }, + { + "m_Id": "1999b6ca2dfc46cb86e9f177fbe9c7ea" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "c2170d8deef24038a6f385610b82ea6f", + "m_Id": 1, + "m_DisplayName": "Out_Vector4", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "OutVector4", + "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.SamplerStateMaterialSlot", + "m_ObjectId": "d2c1613a82b9444ca4a7060e817c28b0", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d50e6707a0d24a41bba05216869f3b5c", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "d5baa588bf2c4058b79977aaf0edb5d4", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ee88d84e52414d64a7233d06dfb9e8a3", + "m_Id": 2, + "m_DisplayName": "Out_Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Out_Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "f77bdba097f842efacf27ee2c4c0d506", + "m_Guid": { + "m_GuidSerialized": "4b65a152-6b9e-429e-bbc1-bebac7fac8fc" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + diff --git a/package/Runtime/Components/Shaders/SubGraphs/SampleMainRiveTexture.shadersubgraph.meta b/package/Runtime/Components/Shaders/SubGraphs/SampleMainRiveTexture.shadersubgraph.meta new file mode 100644 index 000000000..0e440242d --- /dev/null +++ b/package/Runtime/Components/Shaders/SubGraphs/SampleMainRiveTexture.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 287ae8d259edf47cf9ec073950debe11 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/package/Runtime/Libraries/Android/arm/librive.so b/package/Runtime/Libraries/Android/arm/librive.so index d7d04c428..6878f5bef 100644 Binary files a/package/Runtime/Libraries/Android/arm/librive.so and b/package/Runtime/Libraries/Android/arm/librive.so differ diff --git a/package/Runtime/Libraries/Android/arm64/librive.so b/package/Runtime/Libraries/Android/arm64/librive.so index 8ec3afd0b..2aeceb31b 100644 Binary files a/package/Runtime/Libraries/Android/arm64/librive.so and b/package/Runtime/Libraries/Android/arm64/librive.so differ diff --git a/package/Runtime/Libraries/Linux/x86_64/librive.so b/package/Runtime/Libraries/Linux/x86_64/librive.so index db25d4d27..32ba76ee4 100644 Binary files a/package/Runtime/Libraries/Linux/x86_64/librive.so and b/package/Runtime/Libraries/Linux/x86_64/librive.so differ diff --git a/package/Runtime/Libraries/MacOS/rive.dylib b/package/Runtime/Libraries/MacOS/rive.dylib index 1db63527c..47181460b 100644 Binary files a/package/Runtime/Libraries/MacOS/rive.dylib and b/package/Runtime/Libraries/MacOS/rive.dylib differ diff --git a/package/Runtime/Libraries/WebGL/emscripten_3.1.38/liblibpng_wasm.a b/package/Runtime/Libraries/WebGL/emscripten_3.1.38/liblibpng_wasm.a index 2796fad49..f9e693485 100644 Binary files a/package/Runtime/Libraries/WebGL/emscripten_3.1.38/liblibpng_wasm.a and b/package/Runtime/Libraries/WebGL/emscripten_3.1.38/liblibpng_wasm.a differ diff --git a/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_decoders_wasm.a b/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_decoders_wasm.a index 2ab584e71..3be25dd62 100644 Binary files a/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_decoders_wasm.a and b/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_decoders_wasm.a differ diff --git a/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_wasm.a b/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_wasm.a index 860eee961..9814c3699 100644 Binary files a/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_wasm.a and b/package/Runtime/Libraries/WebGL/emscripten_3.1.38/librive_wasm.a differ diff --git a/package/Runtime/Libraries/WebGL/emscripten_3.1.8/liblibpng_wasm.a b/package/Runtime/Libraries/WebGL/emscripten_3.1.8/liblibpng_wasm.a index e9d30d7c1..24bb610d1 100644 Binary files a/package/Runtime/Libraries/WebGL/emscripten_3.1.8/liblibpng_wasm.a and b/package/Runtime/Libraries/WebGL/emscripten_3.1.8/liblibpng_wasm.a differ diff --git a/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_decoders_wasm.a b/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_decoders_wasm.a index 2c98c58c3..7fc55bd12 100644 Binary files a/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_decoders_wasm.a and b/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_decoders_wasm.a differ diff --git a/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_wasm.a b/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_wasm.a index 8cec251e8..78bcc5535 100644 Binary files a/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_wasm.a and b/package/Runtime/Libraries/WebGL/emscripten_3.1.8/librive_wasm.a differ diff --git a/package/Runtime/Libraries/Windows/rive.dll b/package/Runtime/Libraries/Windows/rive.dll index b84aacdf8..17a1d2828 100644 Binary files a/package/Runtime/Libraries/Windows/rive.dll and b/package/Runtime/Libraries/Windows/rive.dll differ diff --git a/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64/rive.device.a b/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64/rive.device.a index 8c27a5334..a06aca55b 100644 Binary files a/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64/rive.device.a and b/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64/rive.device.a differ diff --git a/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64_x86_64-simulator/rive.simulator.a b/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64_x86_64-simulator/rive.simulator.a index fea6c74be..99c9b9e1c 100644 Binary files a/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64_x86_64-simulator/rive.simulator.a and b/package/Runtime/Libraries/iOS/rive.xcframework/ios-arm64_x86_64-simulator/rive.simulator.a differ diff --git a/package/Runtime/Libraries/tvOS/rive.a b/package/Runtime/Libraries/tvOS/rive.a index 44d8d0534..680b93694 100644 Binary files a/package/Runtime/Libraries/tvOS/rive.a and b/package/Runtime/Libraries/tvOS/rive.a differ diff --git a/package/Editor/PackageInfo.cs b/package/Runtime/PackageInfo.cs similarity index 77% rename from package/Editor/PackageInfo.cs rename to package/Runtime/PackageInfo.cs index a14646862..3e4e3ecb4 100644 --- a/package/Editor/PackageInfo.cs +++ b/package/Runtime/PackageInfo.cs @@ -1,6 +1,6 @@ namespace Rive.EditorTools { - internal class PackageInfo + public class PackageInfo { public const string PACKAGE_NAME = "app.rive.rive-unity"; diff --git a/package/Editor/PackageInfo.cs.meta b/package/Runtime/PackageInfo.cs.meta similarity index 100% rename from package/Editor/PackageInfo.cs.meta rename to package/Runtime/PackageInfo.cs.meta diff --git a/package/Runtime/Shaders.meta b/package/Runtime/Shaders.meta new file mode 100644 index 000000000..3c12b0a5d --- /dev/null +++ b/package/Runtime/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 12e115b69e58a4773b660d01de25576d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Shaders/Resources.meta b/package/Runtime/Shaders/Resources.meta new file mode 100644 index 000000000..17650da5e --- /dev/null +++ b/package/Runtime/Shaders/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 62573dc224ed44030905194a2ff13186 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/Shaders/Resources/RiveUIDefault.shader b/package/Runtime/Shaders/Resources/RiveUIDefault.shader new file mode 100644 index 000000000..23b5c6966 --- /dev/null +++ b/package/Runtime/Shaders/Resources/RiveUIDefault.shader @@ -0,0 +1,132 @@ +Shader "Rive/UI/Default" +{ + Properties + { + // Standard UI/Main texture (per renderer) + [PerRendererData] _MainTex ("Texture", 2D) = "white" {} + _Color ("Tint", Color) = (1,1,1,1) + + // Stencil properties so Mask / RectMask2D work + [PerRendererData] _StencilComp ("Stencil Comparison", Float) = 8 + [PerRendererData] _Stencil ("Stencil ID", Float) = 0 + [PerRendererData] _StencilOp ("Stencil Operation", Float) = 0 + [PerRendererData] _StencilWriteMask ("Stencil Write Mask", Float) = 255 + [PerRendererData] _StencilReadMask ("Stencil Read Mask", Float) = 255 + + // Color mask / alpha clip for UI + [PerRendererData] _ColorMask ("Color Mask", Float) = 15 + [PerRendererData] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 + } + + SubShader + { + Tags + { + "Queue"="Transparent" + "IgnoreProjector"="True" + "RenderType"="Transparent" + "PreviewType"="Plane" + "CanUseSpriteAtlas"="True" + } + + // Stencil setup used by Mask / RectMask2D + Stencil + { + Ref [_Stencil] + Comp [_StencilComp] + Pass [_StencilOp] + ReadMask [_StencilReadMask] + WriteMask [_StencilWriteMask] + } + + ColorMask [_ColorMask] + + Cull Off + ZWrite Off + ZTest [unity_GUIZTestMode] + + + Blend One OneMinusSrcAlpha + + Pass + { + Name "RiveGammaDecodeUI" + + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + #pragma target 2.0 + + #include "UnityCG.cginc" + #include "UnityUI.cginc" + + #pragma multi_compile __ UNITY_UI_CLIP_RECT + #pragma multi_compile __ UNITY_UI_ALPHACLIP + + struct appdata_t + { + float4 vertex : POSITION; + float4 color : COLOR; + float2 texcoord : TEXCOORD0; + float2 texcoord1 : TEXCOORD1; // used for RectMask2D + UNITY_VERTEX_INPUT_INSTANCE_ID + }; + + struct v2f + { + float4 vertex : SV_POSITION; + fixed4 color : COLOR; + float2 texcoord : TEXCOORD0; + float4 worldPosition : TEXCOORD1; + UNITY_VERTEX_OUTPUT_STEREO + }; + + sampler2D _MainTex; + float4 _MainTex_ST; + fixed4 _Color; + float4 _ClipRect; + + v2f vert (appdata_t v) + { + v2f o; + UNITY_SETUP_INSTANCE_ID(v); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); + + o.worldPosition = v.vertex; + o.vertex = UnityObjectToClipPos(v.vertex); + o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex); + o.color = v.color * _Color; + return o; + } + + fixed4 frag (v2f i) : SV_Target + { + // Sample texture + fixed4 tex = tex2D(_MainTex, i.texcoord); + + // Decode from gamma only when the project is Linear + #if !defined(UNITY_COLORSPACE_GAMMA) + tex.rgb = GammaToLinearSpace(tex.rgb); + #endif + + // Standard UI tinting + fixed4 color = i.color * tex; + + // RectMask2D clipping + #ifdef UNITY_UI_CLIP_RECT + color.a *= UnityGet2DClipping(i.worldPosition.xy, _ClipRect); + #endif + + // Optional alpha clipping for masking + #ifdef UNITY_UI_ALPHACLIP + clip (color.a - 0.001); + #endif + + return color; + } + ENDCG + } + } + + Fallback "UI/Default" +} diff --git a/package/Runtime/Shaders/Resources/RiveUIDefault.shader.meta b/package/Runtime/Shaders/Resources/RiveUIDefault.shader.meta new file mode 100644 index 000000000..6b6df90b2 --- /dev/null +++ b/package/Runtime/Shaders/Resources/RiveUIDefault.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 6ce86fb0d1c604912a5c633e43cb30ef +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/package/Runtime/TextureHelper.cs b/package/Runtime/TextureHelper.cs index 23ccde86a..c5fa0c476 100644 --- a/package/Runtime/TextureHelper.cs +++ b/package/Runtime/TextureHelper.cs @@ -1,3 +1,4 @@ +using Rive.Utils; using UnityEngine; using UnityEngine.Experimental.Rendering; using UnityEngine.Rendering; @@ -12,6 +13,50 @@ public static class TextureHelper /// public static GraphicsFormat Format => GraphicsFormat.R8G8B8A8_UNorm; + private static Material s_gammaToLinearUIMaterial; + + const string GAMMA_TO_LINEAR_UI_SHADER_NAME = "Rive/UI/Default"; + + /// + /// Lazily creates and returns a material that decodes gamma content to linear + /// Used to display Rive's RenderTexture correctly in Linear color space without relying on sRGB RenderTextures (which are unreliable on some backends). + /// + internal static Material GammaToLinearUIMaterial + { + get + { + if (s_gammaToLinearUIMaterial == null) + { + var shader = Shader.Find(GAMMA_TO_LINEAR_UI_SHADER_NAME); + if (shader != null) + { + s_gammaToLinearUIMaterial = new Material(shader) + { + name = "Rive_UI_Default", + hideFlags = HideFlags.HideAndDontSave + }; + } + else + { + DebugLogger.Instance.LogError($"Shader '{GAMMA_TO_LINEAR_UI_SHADER_NAME}' not found."); + } + } + + return s_gammaToLinearUIMaterial; + } + } + + /// + /// Whether we should decode Gamma content to linear when displaying Rive RenderTextures. + /// + internal static bool ProjectNeedsColorSpaceFix + { + get + { + return QualitySettings.activeColorSpace == ColorSpace.Linear; + } + } + /// /// Returns a RenderTexture descriptor guaranteed to be compatible with /// Rive's Renderer. diff --git a/package/package.json b/package/package.json index 503721d6f..3313d3eed 100644 --- a/package/package.json +++ b/package/package.json @@ -1,21 +1,24 @@ { - "name": "app.rive.rive-unity", - "version": "0.0.0", - "displayName": "Rive", - "description": "Create and ship interactive animations to any platform", - "unity": "2020.1", - "unityRelease": "0a10", - "documentationUrl": "https://rive.app/community/doc/getting-started/docQycIiNOv4", - "changelogUrl": "https://github.com/rive-app/rive-unity/tags", - "licensesUrl": "https://github.com/rive-app/rive-unity/license", - "keywords": [ - "Vector", - "Graphics", - "Animation" - ], - "author": { - "name": "Rive Team", - "email": "hello@rive.app", - "url": "https://rive.app" - } + "name": "app.rive.rive-unity", + "version": "0.3.9-canary.151", + "displayName": "Rive", + "description": "Create and ship interactive animations to any platform", + "unity": "2021.3", + "unityRelease": "0a10", + "documentationUrl": "https://rive.app/community/doc/getting-started/docQycIiNOv4", + "changelogUrl": "https://github.com/rive-app/rive-unity/tags", + "licensesUrl": "https://github.com/rive-app/rive-unity/license", + "keywords": [ + "Vector", + "Graphics", + "Animation" + ], + "author": { + "name": "Rive Team", + "email": "hello@rive.app", + "url": "https://rive.app" + }, + "dependencies": { + "com.unity.shadergraph": "14.0.11" + } } \ No newline at end of file diff --git a/tests/package/EditorTests/MaterialConversionTests.cs b/tests/package/EditorTests/MaterialConversionTests.cs new file mode 100644 index 000000000..dbbc2ac42 --- /dev/null +++ b/tests/package/EditorTests/MaterialConversionTests.cs @@ -0,0 +1,410 @@ +using NUnit.Framework; +using UnityEditor; +using UnityEngine; +using Rive.Components; +using UnityEngine.UIElements; + +namespace Rive.Tests.EditorTests +{ + public class MaterialConversionTests + { + private const string kTempRoot = "Assets/RiveConversionTests"; + private const string kPluginsPath = "Assets/Plugins"; + private const string kRivePath = "Assets/Plugins/Rive"; + private const string kRiveMaterialsPath = "Assets/Plugins/Rive/Materials"; + + private bool m_pluginsFolderPreExisted; + private bool m_riveFolderPreExisted; + private bool m_riveMaterialsFolderPreExisted; + private System.Collections.Generic.HashSet m_preExistingPluginMaterialPaths; + + [SetUp] + public void SetUp() + { + EnsureFolder("Assets"); + EnsureFolder(kTempRoot); + SnapshotPluginsFolderState(); + } + + /// + /// Test that we account for the user moving a material outside the Plugins folder, as long as it has the exact expected name. + /// + [Test] + public void Reuses_ExactName_Outside_Plugins_When_Found() + { + var expectedName = MaterialConversionUtility.Constants.ExpectedLitNameForCurrentPipeline; + Shader pipelineLitShader = +#if RIVE_USING_URP + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderURPLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderURPLit); +#elif RIVE_USING_HDRP + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderHDRPLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderHDRPLit); +#else + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderBuiltInLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderBuiltInLit); +#endif + + // Ensure plugin copy doesn't override the outside-Plugins candidate. + var pluginPathPre = $"Assets/Plugins/Rive/Materials/{expectedName}.mat"; + var existingPluginPre = AssetDatabase.LoadAssetAtPath(pluginPathPre); + if (existingPluginPre != null) + { + AssetDatabase.DeleteAsset(pluginPathPre); + AssetDatabase.Refresh(); + } + + // Create candidate with exact expected name outside Plugins path. + var candidatePath = $"{kTempRoot}/{expectedName}.mat"; + var candidateMat = new Material(pipelineLitShader); + AssetDatabase.CreateAsset(candidateMat, candidatePath); + AssetDatabase.ImportAsset(candidatePath); + + var go = new GameObject("RiveGO_ReusesExactName"); + try + { + var mr = go.AddComponent(); + mr.sharedMaterial = new Material(pipelineLitShader); + + var rtr = go.AddComponent(); + InvokeReset(rtr); + + Assert.AreEqual(candidateMat, mr.sharedMaterial, "Expected reuse of existing exact-name material."); + } + finally + { + Object.DestroyImmediate(go); + } + } + + + [TearDown] + public void TearDown() + { + AssetDatabase.DeleteAsset(kTempRoot); + AssetDatabase.Refresh(); + CleanupPluginArtifacts(); + } + + /// + /// Test that we convert the default material to a Rive lit material when the user adds a RiveTextureRenderer component. + /// + [Test] + public void Converts_Default_To_RiveLit_On_Reset() + { + var expectedName = MaterialConversionUtility.Constants.ExpectedLitNameForCurrentPipeline; + + var go = new GameObject("RiveGO_DefaultConvert"); + try + { + var mr = go.AddComponent(); + // Always add a mesh filter to avoid pipeline-specific surprises + var mf = go.AddComponent(); + mf.sharedMesh = Resources.GetBuiltinResource("Cube.fbx"); + + // Pick the pipeline default shader to simulate Unity defaults + Shader defaultShader = +#if RIVE_USING_URP + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderURPLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderURPLit); +#elif RIVE_USING_HDRP + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderHDRPLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderHDRPLit); +#else + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderBuiltInLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderBuiltInLit); +#endif + mr.sharedMaterial = new Material(defaultShader); + + // Add RiveTextureRenderer which triggers Reset() in edit mode. + var rtr = go.AddComponent(); + // Force a Reset invocation explicitly to be safe. + InvokeReset(rtr); + + AssertProjectMaterialMatchesExpectation(mr.sharedMaterial, expectedName); + } + finally + { + Object.DestroyImmediate(go); + } + } + + /// + /// Test that we create a new plugin material when no exact name match is found either in the Plugins folder or in the project. + /// + [Test] + public void CreatesPluginMaterial_WhenNoExactNameMatch() + { + var expectedName = MaterialConversionUtility.Constants.ExpectedLitNameForCurrentPipeline; + Shader pipelineLitShader = +#if RIVE_USING_URP + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderURPLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderURPLit); +#elif RIVE_USING_HDRP + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderHDRPLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderHDRPLit); +#else + Shader.Find(MaterialConversionUtility.Constants.UnityDefaultShaderBuiltInLit) ?? CreateOrFindDummyShader(MaterialConversionUtility.Constants.UnityDefaultShaderBuiltInLit); +#endif + + // Create candidate with matching shader but different name, outside Plugins path. + var candidatePath = $"{kTempRoot}/Custom_{expectedName}.mat"; + var candidateMat = new Material(pipelineLitShader); + AssetDatabase.CreateAsset(candidateMat, candidatePath); + AssetDatabase.ImportAsset(candidatePath); + + var go = new GameObject("RiveGO_ReuseShaderMatch"); + try + { + var mr = go.AddComponent(); + mr.sharedMaterial = new Material(pipelineLitShader); // default material that triggers conversion + + var rtr = go.AddComponent(); + InvokeReset(rtr); + + // We always create a new plugin material rather than reusing arbitrary candidates. + AssertProjectMaterialMatchesExpectation(mr.sharedMaterial, expectedName); + } + finally + { + Object.DestroyImmediate(go); + } + } + + /// + /// Test that we do not convert a non-default material when the user adds a RiveTextureRenderer component. We do this to avoid converting materials that the user has explicitly set. + /// + [Test] + public void NonDefaultMaterial_IsNotConverted() + { + + var go = new GameObject("RiveGO_NoConvert"); + try + { + var mr = go.AddComponent(); + // Use a custom shader name that is not a default one (so it does not match converter's rules). + var customShader = CreateOrFindDummyShader("Hidden/Rive/NotDefault"); + var customMat = new Material(customShader); + mr.sharedMaterial = customMat; + + var rtr = go.AddComponent(); + InvokeReset(rtr); + + Assert.AreEqual(customMat, mr.sharedMaterial, "Non-default material should not be converted."); + } + finally + { + Object.DestroyImmediate(go); + } + } + + // Helpers + private static void AssertProjectMaterialMatchesExpectation(Material mat, string expectedBaseName) + { + Assert.IsNotNull(mat, "Converted material should not be null."); + var path = AssetDatabase.GetAssetPath(mat); + Assert.IsTrue(path.StartsWith("Assets/Plugins/Rive/Materials"), $"Converted material should live under 'Assets/Plugins/Rive/Materials', but was '{path}'."); + // Name should be exact or Unity-appended with a number suffix (e.g., "Name 1"). + Assert.IsTrue(mat.name == expectedBaseName || mat.name.StartsWith(expectedBaseName + " "), $"Converted material name '{mat.name}' should start with '{expectedBaseName}'."); + } + + private static void EnsureFolder(string path) + { + var parts = path.Split('/'); + var current = parts[0]; + for (int i = 1; i < parts.Length; i++) + { + var next = $"{current}/{parts[i]}"; + if (!AssetDatabase.IsValidFolder(next)) + { + AssetDatabase.CreateFolder(current, parts[i]); + } + current = next; + } + } + + private void SnapshotPluginsFolderState() + { + // Track pre-existing plugin folders and assets so we can cleanup safely + m_pluginsFolderPreExisted = AssetDatabase.IsValidFolder(kPluginsPath); + m_riveFolderPreExisted = AssetDatabase.IsValidFolder(kRivePath); + m_riveMaterialsFolderPreExisted = AssetDatabase.IsValidFolder(kRiveMaterialsPath); + m_preExistingPluginMaterialPaths = new System.Collections.Generic.HashSet(); + if (m_riveMaterialsFolderPreExisted) + { + var existingGuids = AssetDatabase.FindAssets("", new[] { kRiveMaterialsPath }); + for (int i = 0; i < existingGuids.Length; i++) + { + var path = AssetDatabase.GUIDToAssetPath(existingGuids[i]); + m_preExistingPluginMaterialPaths.Add(path); + } + } + } + + private void CleanupPluginArtifacts() + { + // Remove plugin materials this test run may have created + if (AssetDatabase.IsValidFolder(kRiveMaterialsPath)) + { + string litPrefix = MaterialConversionUtility.Constants.ExpectedLitNameForCurrentPipeline; + string unlitPrefix = MaterialConversionUtility.Constants.ExpectedUnlitNameForCurrentPipeline; + var guids = AssetDatabase.FindAssets("", new[] { kRiveMaterialsPath }); + for (int i = 0; i < guids.Length; i++) + { + var path = AssetDatabase.GUIDToAssetPath(guids[i]); + if (m_preExistingPluginMaterialPaths.Contains(path)) + { + continue; + } + var filename = System.IO.Path.GetFileNameWithoutExtension(path) ?? string.Empty; + if (filename.StartsWith(litPrefix) || filename.StartsWith(unlitPrefix)) + { + AssetDatabase.DeleteAsset(path); + } + } + AssetDatabase.Refresh(); + } + // Delete folders only if they didn't exist before and are now empty + RemoveFolderIfCreatedAndEmpty(kRiveMaterialsPath, m_riveMaterialsFolderPreExisted); + RemoveFolderIfCreatedAndEmpty(kRivePath, m_riveFolderPreExisted); + RemoveFolderIfCreatedAndEmpty(kPluginsPath, m_pluginsFolderPreExisted); + } + + private static void RemoveFolderIfCreatedAndEmpty(string folderPath, bool preExisted) + { + if (preExisted || !AssetDatabase.IsValidFolder(folderPath)) + { + return; + } + var remaining = AssetDatabase.FindAssets("", new[] { folderPath }); + if (remaining == null || remaining.Length == 0) + { + AssetDatabase.DeleteAsset(folderPath); + AssetDatabase.Refresh(); + } + } + + private static Shader CreateOrFindDummyShader(string shaderName) + { + var shader = Shader.Find(shaderName); + if (shader != null) + { + return shader; + } + // Create a minimal unlit shader with the provided name. + var shaderPath = $"{kTempRoot}/{SanitizeFilename(shaderName)}.shader"; + var code = "Shader \"" + shaderName + "\" {\n" + + " SubShader { Tags { \"RenderType\"=\"Opaque\" } Pass { } }\n" + + "}"; + System.IO.File.WriteAllText(shaderPath, code); + AssetDatabase.ImportAsset(shaderPath); + return AssetDatabase.LoadAssetAtPath(shaderPath); + } + + private static string SanitizeFilename(string name) + { + foreach (var c in System.IO.Path.GetInvalidFileNameChars()) + { + name = name.Replace(c, '_'); + } + return name.Replace('/', '_'); + } + + private static void InvokeReset(RiveTextureRenderer rtr) + { + // Unity calls Reset when adding a component in editor; invoke explicitly for tests. + var method = typeof(RiveTextureRenderer).GetMethod("Reset", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); + method?.Invoke(rtr, null); + } + + private static void RunEditorButtonConversionTest(string pipelineFolder, string[] candidateMaterialNames) + { + var expectedName = MaterialConversionUtility.Constants.ExpectedLitNameForCurrentPipeline; + + var go = new GameObject($"RiveGO_Button_{pipelineFolder}"); + try + { + var mr = go.AddComponent(); + // Start with a non-default shader so Reset doesn't convert. + var nonDefault = CreateOrFindDummyShader("Hidden/Rive/NotDefaultForButton"); + mr.sharedMaterial = new Material(nonDefault); + + var rtr = go.AddComponent(); + + var editor = Editor.CreateEditor(rtr); + try + { + var root = (editor as Editor).CreateInspectorGUI(); + Assert.IsNotNull(root, "Inspector root should not be null."); + var button = root.Q