From 7e6c74a9ea3639cf552b7eff7d0f00eb931813d8 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 17 Jan 2023 13:52:17 -0500 Subject: [PATCH 01/18] add Cesium Sky Controller and shader --- Runtime/Resources/CesiumSkyController.meta | 8 + .../CesiumDynamicSky.shader | 125 +++++++++++++ .../CesiumDynamicSky.shader.meta | 10 ++ .../CesiumDynamicSkybox.mat | 147 ++++++++++++++++ .../CesiumDynamicSkybox.mat.meta | 8 + .../CesiumSkyController.cs | 81 +++++++++ .../CesiumSkyController.cs.meta | 11 ++ .../CesiumSkyController.prefab | 166 ++++++++++++++++++ .../CesiumSkyController.prefab.meta | 7 + 9 files changed, 563 insertions(+) create mode 100644 Runtime/Resources/CesiumSkyController.meta create mode 100644 Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader create mode 100644 Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader.meta create mode 100644 Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat create mode 100644 Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat.meta create mode 100644 Runtime/Resources/CesiumSkyController/CesiumSkyController.cs create mode 100644 Runtime/Resources/CesiumSkyController/CesiumSkyController.cs.meta create mode 100644 Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab create mode 100644 Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab.meta diff --git a/Runtime/Resources/CesiumSkyController.meta b/Runtime/Resources/CesiumSkyController.meta new file mode 100644 index 00000000..3ab40541 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6f4c91d66cd3d64bab44215fb96f8e5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader new file mode 100644 index 00000000..3db87ee5 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader @@ -0,0 +1,125 @@ +Shader "Cesium/DynamicSky" +{ + // TODO + // Figure out why north offset isn't working + // Atmosphere-like effect + // Improved sunset colors - all around horizon + // Implement optional ground color + // + Properties + { + //_SkyColorGround ("Ground Color", Color) = (1.000000,0.500000,0.500000,1.000000) + //_SkyColorHorizon ("Horizon Color", Color) = (0.000000,0.000000,0.000000,1.000000) + _SkyColorDay ("Sky Color - Day", Color) = (0.3622641,0.6982127,1.000000,1.000000) + _SkyColorNight ("Sky Color - Night", Color) = (0.016, 0.016, 0.1, 1.0) + _HorizonBlend ("Horizon Color Blend", Float) = 1.0 + _SunRadius ("SunRadius", Range(0.0, 0.5)) = 0.01 + _SunBloomRadius ("Sun Bloom Radius", Range(0.0, 1.0)) = 0.85 + _SunBloomIntensity ("Sun Bloom Intensity", Float) = 0.5 + + } + SubShader + { + Tags { "Queue"="Background" "RenderType"="Background" "PreviewType"="Skybox" "LightMode" = "ForwardBase" "PassFlags" = "OnlyDirectional" } + Cull Off ZWrite Off + + HLSLINCLUDE + #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" + + ENDHLSL + + Pass + { + HLSLPROGRAM + #pragma vertex vert + #pragma fragment frag + + struct appdata + { + float4 position : POSITION; + float4 col : COLOR; + }; + + struct v2f + { + float4 position : SV_POSITION; + float4 col : COLOR; + float3 viewDirWS : TEXCOORD0; + }; + + //float4 _SkyColorGround; + //float4 _SkyColorHorizon; + float4 _SkyColorDay; + float4 _SkyColorNight; + float _HorizonBlend; + float _SunRadius; + float _SunBloomRadius; + float _SunBloomIntensity; + + v2f vert (appdata v) + { + v2f o; + + VertexPositionInputs vertexInput = GetVertexPositionInputs(v.position.xyz); + o.viewDirWS = vertexInput.positionWS; + o.position = vertexInput.positionCS; + + float4 skyColor = _SkyColorDay;//lerp(_SkyColorHorizon, _SkyColorDay, clamp(abs(v.position.y * _HorizonBlend), 0, 1)); + + o.col = skyColor; + + return o; + } + + float3 _SunDirection; + float _GroundSpaceBlend; + + float4 frag (v2f i) : SV_Target + { + + float3 viewDir = normalize(i.viewDirWS); + + float3 sunDot = clamp(dot(viewDir, _SunDirection), 0, 1); + + // Remap sun height from (-1, 1) to 0, 1) + float sunHeightFactor = ((_SunDirection.y + 1.0) * 0.5); + float sunsetFactor = 1 - abs(_SunDirection.y); + float sunHeightBlend = smoothstep(0.4, 0.7, sunHeightFactor); + float sunsetBlend = smoothstep(0.7, 1.0, sunsetFactor); + + float stepRadius = 1 - _SunRadius * _SunRadius; + float sunDisk = smoothstep(stepRadius-0.001, stepRadius, sunDot); + + float sunBloom = clamp(smoothstep(1-_SunBloomRadius, 1.5, sunDot), 0, 1) * _SunBloomIntensity; + + float3 sunColor = float3(1, 1, 1) * sunDisk; + + float horizonBlend = saturate(pow(1-abs(viewDir.y), 2)); + + float3 skyColor = _SkyColorDay + sunBloom; + + skyColor = lerp(_SkyColorNight.xyz, skyColor, sunHeightBlend); + + // Blend between day horizon color and night horizon color. + float3 horizonColor = lerp(float3(0.0100, 0.03000, 0.06000), 0.5, sunHeightBlend); + // Blend in orange at sunrise/sunset + horizonColor = lerp(horizonColor, float3(1.0, 0.5, 0.0), clamp(sunsetBlend-(1-sunDot), 0, 1)); + // mask color to horizon only + horizonColor = lerp(0, horizonColor, horizonBlend); + + skyColor = clamp(skyColor + horizonColor, 0, 1); + + // Todo: create atmosphere effect by moving horizon down x axis while in space + skyColor = lerp(skyColor, float3(0, 0, 0), _GroundSpaceBlend.x); + + skyColor = skyColor + sunColor; + + float4 c = float4(skyColor, 1); + //float4 c = float4(sunDisk, sunBloom, horizonBlend, 1); //DEBUG ONLY + + return c; + } + ENDHLSL + } + } +} diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader.meta b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader.meta new file mode 100644 index 00000000..9e99e347 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 9b2135823e5bf814c8500947c8039d5e +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + preprocessorOverride: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat new file mode 100644 index 00000000..28646c1d --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat @@ -0,0 +1,147 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-6820655383729928678 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 5 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: CesiumDynamicSkybox + m_Shader: {fileID: 4800000, guid: 9b2135823e5bf814c8500947c8039d5e, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _SUNDISK_HIGH_QUALITY + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AlphaClip: 0 + - _AtmosphereThickness: 1 + - _Blend: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnvironmentReflections: 1 + - _Exposure: 1.3 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _GroundSpaceBlend: 0 + - _HorizonBlend: 1 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _OuterSunRadius: -0.001 + - _Parallax: 0.005 + - _QueueControl: 0 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SunBloomIntensity: 0.5 + - _SunBloomRadius: 0.85 + - _SunDisk: 2 + - _SunRadius: 0.01 + - _SunSize: 0.04 + - _SunSizeConvergence: 5 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _GroundColor: {r: 0.36899996, g: 0.34899998, b: 0.34099993, a: 1} + - _SkyColorDay: {r: 0.3622641, g: 0.6982127, b: 1, a: 1} + - _SkyColorGround: {r: 0.5019608, g: 0.18120785, b: 0.18120785, a: 1} + - _SkyColorHorizon: {r: 1, g: 1, b: 1, a: 1} + - _SkyColorNight: {r: 0.015882347, g: 0.015882347, b: 0.09803922, a: 1} + - _SkyColorZenith: {r: 0.2883232, g: 0.5553286, b: 0.8396226, a: 1} + - _SkyTint: {r: 0.3301887, g: 0.3301887, b: 0.3301887, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _SunDirection: {r: 1.17, g: 0.5, b: 0, a: 0} + - _SunPos: {r: 0.5, g: 0.25, b: 0.25, a: 1} + m_BuildTextureStacks: [] diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat.meta b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat.meta new file mode 100644 index 00000000..d2001bad --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e38f5d1c6fee79142927e903699af443 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs new file mode 100644 index 00000000..43779ada --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -0,0 +1,81 @@ +using UnityEngine; +using UnityEditor; + +[ExecuteAlways] +public class CesiumSkyController : MonoBehaviour +{ + /* TODO + Support game camera as well as scene camera + Update skybox when outside of the blend min/max - perhaps on GUI update + Add options for time of day, latitude, longitude + + */ + + [SerializeField] + Transform sunLight = default; + + [SerializeField] + bool checkForCameraUpdates = false; + + //bool checkForSunUpdates = false; + + [SerializeField] + [Range(0.0f, 24.0f)] + public float timeOfDay = 12.0f; + + [SerializeField] + [Range(0.0f, 1.0f)] + float northOffset = 0.0f; + + //[SerializeField] + [Range(0.0f, 1.0f)] + float groundSpaceBlend = 0.0f; + + float groundBlendHeight = 2000.0f; + float spaceBlendHeight = 200000.0f; + + new Camera camera; + + void LateUpdate() + { + SetSunPosition(); + //Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); + if (checkForCameraUpdates) + { + GetCameraHeight(); + + } + + } + + void SetSunPosition() + { + float hourToAngle = ((timeOfDay*15.0f) - 90.0f); + Vector3 newSunRotation = new Vector3(hourToAngle, northOffset, 0); + + if (sunLight != null) { + sunLight.transform.localEulerAngles = new Vector3(hourToAngle, 0, 0); + Shader.SetGlobalVector("_SunDirection", -sunLight.transform.forward); + } + } + + void GetCameraHeight() + { + if (SceneView.GetAllSceneCameras()[0] != null) + { + camera = SceneView.GetAllSceneCameras()[0]; + //Debug.Log("Scene camera position is " + camera.transform.position + ". Disable Check for Camera Updates on Sky Controller."); + + } + if (camera != null) + { + float camHeight = camera.transform.position.y; + if (camHeight > groundBlendHeight && camHeight < spaceBlendHeight) + { + groundSpaceBlend = 0.0f + (1.0f - 0.0f) * ((camHeight - groundBlendHeight) / (spaceBlendHeight - groundBlendHeight)); + Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); + } + } + + } +} diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs.meta b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs.meta new file mode 100644 index 00000000..b8b1570c --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: da18ae5ee2913204a9bcaa7299115367 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab new file mode 100644 index 00000000..d10e96c1 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab @@ -0,0 +1,166 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &6626873335098466999 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6626873335098466993} + - component: {fileID: 6626873335098466992} + m_Layer: 0 + m_Name: CesiumSkyController + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6626873335098466993 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6626873335098466999} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 6626873336779263033} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6626873335098466992 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6626873335098466999} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: da18ae5ee2913204a9bcaa7299115367, type: 3} + m_Name: + m_EditorClassIdentifier: + sunLight: {fileID: 6626873336779263033} + checkForCameraUpdates: 0 + timeOfDay: 12 + northOffset: 0 +--- !u!1 &6626873336779263038 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6626873336779263033} + - component: {fileID: 6626873336779263032} + - component: {fileID: 6626873336779263039} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6626873336779263033 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6626873336779263038} + m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 6626873335098466993} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 21.9, y: -102.99, z: -42.345} +--- !u!108 &6626873336779263032 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6626873336779263038} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!114 &6626873336779263039 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6626873336779263038} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Version: 1 + m_UsePipelineSettings: 1 + m_AdditionalLightsShadowResolutionTier: 2 + m_LightLayerMask: 1 + m_CustomShadowLayers: 0 + m_ShadowLayerMask: 1 + m_LightCookieSize: {x: 1, y: 1} + m_LightCookieOffset: {x: 0, y: 0} diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab.meta b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab.meta new file mode 100644 index 00000000..98b9ee61 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 69d2deb4e3797cd42ad6bbbc696d7430 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: From 22d0022b7c4540d3bcff0725d2d33403e1a3ddad Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Wed, 18 Jan 2023 11:03:04 -0500 Subject: [PATCH 02/18] Some shader cleanup --- .../CesiumSkyController/CesiumDynamicSky.shader | 14 ++++++++++---- .../CesiumSkyController/CesiumDynamicSkybox.mat | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader index 3db87ee5..0d779a5a 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader @@ -10,13 +10,16 @@ Shader "Cesium/DynamicSky" { //_SkyColorGround ("Ground Color", Color) = (1.000000,0.500000,0.500000,1.000000) //_SkyColorHorizon ("Horizon Color", Color) = (0.000000,0.000000,0.000000,1.000000) - _SkyColorDay ("Sky Color - Day", Color) = (0.3622641,0.6982127,1.000000,1.000000) + _SkyColorDay ("Sky Color - Day", Color) = (0.33,0.59,0.83,1.000000) _SkyColorNight ("Sky Color - Night", Color) = (0.016, 0.016, 0.1, 1.0) _HorizonBlend ("Horizon Color Blend", Float) = 1.0 _SunRadius ("SunRadius", Range(0.0, 0.5)) = 0.01 _SunBloomRadius ("Sun Bloom Radius", Range(0.0, 1.0)) = 0.85 _SunBloomIntensity ("Sun Bloom Intensity", Float) = 0.5 + // Debug only + //_GroundSpaceBlend ("Ground Space Blend", Range(0.0, 1.0)) = 0.0 + } SubShader { @@ -94,28 +97,31 @@ Shader "Cesium/DynamicSky" float3 sunColor = float3(1, 1, 1) * sunDisk; - float horizonBlend = saturate(pow(1-abs(viewDir.y), 2)); + float horizonBlend = saturate(pow(1-abs(viewDir.y), 2)); //viewDir.y + _GroundSpaceBlend.x float3 skyColor = _SkyColorDay + sunBloom; skyColor = lerp(_SkyColorNight.xyz, skyColor, sunHeightBlend); + //skyColor = lerp(skyColor, float3(0, 0, 0), _GroundSpaceBlend.x); + // Blend between day horizon color and night horizon color. float3 horizonColor = lerp(float3(0.0100, 0.03000, 0.06000), 0.5, sunHeightBlend); // Blend in orange at sunrise/sunset horizonColor = lerp(horizonColor, float3(1.0, 0.5, 0.0), clamp(sunsetBlend-(1-sunDot), 0, 1)); - // mask color to horizon only + // mask to horizon only horizonColor = lerp(0, horizonColor, horizonBlend); skyColor = clamp(skyColor + horizonColor, 0, 1); // Todo: create atmosphere effect by moving horizon down x axis while in space + // float spaceBlend = smoothstep(0.5, 0.6, ((viewDir.y + 0) * 0.5) + _GroundSpaceBlend.x); skyColor = lerp(skyColor, float3(0, 0, 0), _GroundSpaceBlend.x); skyColor = skyColor + sunColor; float4 c = float4(skyColor, 1); - //float4 c = float4(sunDisk, sunBloom, horizonBlend, 1); //DEBUG ONLY + //float4 c = float4(0, sunDisk, horizonBlend, 1); //DEBUG ONLY return c; } diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat index 28646c1d..302ed4a8 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat @@ -135,7 +135,7 @@ Material: - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _GroundColor: {r: 0.36899996, g: 0.34899998, b: 0.34099993, a: 1} - - _SkyColorDay: {r: 0.3622641, g: 0.6982127, b: 1, a: 1} + - _SkyColorDay: {r: 0.33, g: 0.59, b: 0.83, a: 1} - _SkyColorGround: {r: 0.5019608, g: 0.18120785, b: 0.18120785, a: 1} - _SkyColorHorizon: {r: 1, g: 1, b: 1, a: 1} - _SkyColorNight: {r: 0.015882347, g: 0.015882347, b: 0.09803922, a: 1} From 8f462c15d7c3e7388bd0b26320e6949ad1f73b5f Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Wed, 18 Jan 2023 11:03:20 -0500 Subject: [PATCH 03/18] Begin support for game view camera --- .../CesiumSkyController.cs | 59 +++++++++++++++---- .../CesiumSkyController.prefab | 6 +- 2 files changed, 50 insertions(+), 15 deletions(-) diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index 43779ada..4b87ed39 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -1,12 +1,11 @@ using UnityEngine; using UnityEditor; -[ExecuteAlways] +[ExecuteInEditMode] public class CesiumSkyController : MonoBehaviour { /* TODO Support game camera as well as scene camera - Update skybox when outside of the blend min/max - perhaps on GUI update Add options for time of day, latitude, longitude */ @@ -31,21 +30,46 @@ Update skybox when outside of the blend min/max - perhaps on GUI update [Range(0.0f, 1.0f)] float groundSpaceBlend = 0.0f; + float lastBlendValue; + float groundBlendHeight = 2000.0f; - float spaceBlendHeight = 200000.0f; + float spaceBlendHeight = 800000.0f; + + Camera camera; - new Camera camera; + void Awake() + { + ResolveCamera(); + + } void LateUpdate() { SetSunPosition(); - //Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); if (checkForCameraUpdates) { GetCameraHeight(); } - + } + + void ResolveCamera() + { + if (Application.IsPlaying(gameObject)) + { + camera = Camera.main; + + + } + else + { + if (SceneView.GetAllSceneCameras()[0] != null) + { + camera = SceneView.GetAllSceneCameras()[0]; + + } + + } } void SetSunPosition() @@ -61,21 +85,32 @@ void SetSunPosition() void GetCameraHeight() { - if (SceneView.GetAllSceneCameras()[0] != null) - { - camera = SceneView.GetAllSceneCameras()[0]; - //Debug.Log("Scene camera position is " + camera.transform.position + ". Disable Check for Camera Updates on Sky Controller."); - } if (camera != null) { float camHeight = camera.transform.position.y; - if (camHeight > groundBlendHeight && camHeight < spaceBlendHeight) + if (camHeight <= groundBlendHeight) + { + groundSpaceBlend = 0.0f; + } + else if (camHeight >= spaceBlendHeight) + { + groundSpaceBlend = 1.0f; + } + else { groundSpaceBlend = 0.0f + (1.0f - 0.0f) * ((camHeight - groundBlendHeight) / (spaceBlendHeight - groundBlendHeight)); + } + if (groundSpaceBlend != lastBlendValue) + { Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); + lastBlendValue = groundSpaceBlend; + + Debug.Log(groundSpaceBlend); + Debug.Log("Scene camera position is " + camera.transform.position + ". Disable Check for Camera Updates on Sky Controller."); } } + else ResolveCamera(); } } diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab index d10e96c1..f32f96f5 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab @@ -93,7 +93,7 @@ Light: serializedVersion: 10 m_Type: 1 m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_Intensity: 1 m_Range: 10 m_SpotAngle: 30 @@ -137,8 +137,8 @@ Light: m_LightShadowCasterMode: 0 m_AreaSize: {x: 1, y: 1} m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 + m_ColorTemperature: 5778 + m_UseColorTemperature: 1 m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} m_UseBoundingSphereOverride: 0 m_UseViewFrustumForShadowCasterCull: 1 From e0d8f85139e89de1f71ccffa25ed7cbcda0049dd Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Wed, 18 Jan 2023 11:37:12 -0500 Subject: [PATCH 04/18] Account for Globe Anchor, fix north offset --- .../CesiumSkyController.cs | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index 4b87ed39..ee36efec 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -1,5 +1,6 @@ using UnityEngine; using UnityEditor; +using CesiumForUnity; [ExecuteInEditMode] public class CesiumSkyController : MonoBehaviour @@ -36,6 +37,7 @@ Support game camera as well as scene camera float spaceBlendHeight = 800000.0f; Camera camera; + CesiumGlobeAnchor globeAnchor; void Awake() { @@ -58,6 +60,7 @@ void ResolveCamera() if (Application.IsPlaying(gameObject)) { camera = Camera.main; + globeAnchor = camera.GetComponent(); } @@ -75,20 +78,26 @@ void ResolveCamera() void SetSunPosition() { float hourToAngle = ((timeOfDay*15.0f) - 90.0f); - Vector3 newSunRotation = new Vector3(hourToAngle, northOffset, 0); + Vector3 newSunRotation = new Vector3(hourToAngle, northOffset * 360, 0); if (sunLight != null) { - sunLight.transform.localEulerAngles = new Vector3(hourToAngle, 0, 0); + sunLight.transform.localEulerAngles = newSunRotation; Shader.SetGlobalVector("_SunDirection", -sunLight.transform.forward); } } void GetCameraHeight() { - if (camera != null) { - float camHeight = camera.transform.position.y; + float camHeight; + if (globeAnchor) + { + camHeight = (float)globeAnchor.height; + } + else camHeight = camera.transform.position.y; + + if (camHeight <= groundBlendHeight) { groundSpaceBlend = 0.0f; @@ -106,8 +115,7 @@ void GetCameraHeight() Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); lastBlendValue = groundSpaceBlend; - Debug.Log(groundSpaceBlend); - Debug.Log("Scene camera position is " + camera.transform.position + ". Disable Check for Camera Updates on Sky Controller."); + Debug.Log("camera height is " + camHeight + ". Blend factor is " + groundSpaceBlend + ". Disable Check for Camera Updates on Sky Controller."); } } else ResolveCamera(); From 8519f69fd8108dee72fe93a636297feb8f797650 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Wed, 18 Jan 2023 11:55:43 -0500 Subject: [PATCH 05/18] Improve sunset blend, north offset --- .../Resources/CesiumSkyController/CesiumDynamicSky.shader | 2 +- .../Resources/CesiumSkyController/CesiumSkyController.cs | 8 +++++--- .../CesiumSkyController/CesiumSkyController.prefab | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader index 0d779a5a..a55e357b 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader @@ -108,7 +108,7 @@ Shader "Cesium/DynamicSky" // Blend between day horizon color and night horizon color. float3 horizonColor = lerp(float3(0.0100, 0.03000, 0.06000), 0.5, sunHeightBlend); // Blend in orange at sunrise/sunset - horizonColor = lerp(horizonColor, float3(1.0, 0.5, 0.0), clamp(sunsetBlend-(1-sunDot), 0, 1)); + horizonColor = lerp(horizonColor, float3(1.0, 0.5, 0.0), saturate((sunsetBlend-(1-sunDot) + 1.0) * 0.5 )); // mask to horizon only horizonColor = lerp(0, horizonColor, horizonBlend); diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index ee36efec..588d276c 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -24,8 +24,8 @@ Support game camera as well as scene camera public float timeOfDay = 12.0f; [SerializeField] - [Range(0.0f, 1.0f)] - float northOffset = 0.0f; + [Range(0.0f, 360.0f)] + float northOffset = 90.0f; //[SerializeField] [Range(0.0f, 1.0f)] @@ -78,7 +78,7 @@ void ResolveCamera() void SetSunPosition() { float hourToAngle = ((timeOfDay*15.0f) - 90.0f); - Vector3 newSunRotation = new Vector3(hourToAngle, northOffset * 360, 0); + Vector3 newSunRotation = new Vector3(hourToAngle, northOffset, 0); if (sunLight != null) { sunLight.transform.localEulerAngles = newSunRotation; @@ -110,6 +110,8 @@ void GetCameraHeight() { groundSpaceBlend = 0.0f + (1.0f - 0.0f) * ((camHeight - groundBlendHeight) / (spaceBlendHeight - groundBlendHeight)); } + + // TODO: Add a check to see if the scene is using the Cesium skybox material if (groundSpaceBlend != lastBlendValue) { Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab index f32f96f5..29ad8c6e 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab @@ -48,7 +48,7 @@ MonoBehaviour: sunLight: {fileID: 6626873336779263033} checkForCameraUpdates: 0 timeOfDay: 12 - northOffset: 0 + northOffset: 90 --- !u!1 &6626873336779263038 GameObject: m_ObjectHideFlags: 0 @@ -74,7 +74,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6626873336779263038} - m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068} + m_LocalRotation: {x: 0.5, y: 0.5, z: -0.5, w: 0.5} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 From 19491242fd07b158f2974374fd93f8b576cefd69 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Wed, 18 Jan 2023 17:56:41 -0500 Subject: [PATCH 06/18] Clean up shader, add more params to controller --- .../CesiumDynamicSky.shader | 34 ++++++++++--------- .../CesiumDynamicSkybox.mat | 3 +- .../CesiumSkyController.cs | 26 +++++++++++--- 3 files changed, 41 insertions(+), 22 deletions(-) diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader index a55e357b..3874cd93 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader @@ -1,11 +1,5 @@ Shader "Cesium/DynamicSky" { - // TODO - // Figure out why north offset isn't working - // Atmosphere-like effect - // Improved sunset colors - all around horizon - // Implement optional ground color - // Properties { //_SkyColorGround ("Ground Color", Color) = (1.000000,0.500000,0.500000,1.000000) @@ -19,11 +13,12 @@ Shader "Cesium/DynamicSky" // Debug only //_GroundSpaceBlend ("Ground Space Blend", Range(0.0, 1.0)) = 0.0 + //_DebugFloat ("Debug Float", Range(0.0, 1.0)) = 0.5 } SubShader { - Tags { "Queue"="Background" "RenderType"="Background" "PreviewType"="Skybox" "LightMode" = "ForwardBase" "PassFlags" = "OnlyDirectional" } + Tags { "Queue"="Background" "RenderType"="Background" "PreviewType"="Skybox" } Cull Off ZWrite Off HLSLINCLUDE @@ -77,6 +72,9 @@ Shader "Cesium/DynamicSky" float3 _SunDirection; float _GroundSpaceBlend; + // Debug only + float _DebugFloat; + float4 frag (v2f i) : SV_Target { @@ -86,18 +84,21 @@ Shader "Cesium/DynamicSky" // Remap sun height from (-1, 1) to 0, 1) float sunHeightFactor = ((_SunDirection.y + 1.0) * 0.5); - float sunsetFactor = 1 - abs(_SunDirection.y); float sunHeightBlend = smoothstep(0.4, 0.7, sunHeightFactor); - float sunsetBlend = smoothstep(0.7, 1.0, sunsetFactor); - float stepRadius = 1 - _SunRadius * _SunRadius; - float sunDisk = smoothstep(stepRadius-0.001, stepRadius, sunDot); + float sunsetFactor = 1 - abs(_SunDirection.y); + float sunsetBlend = smoothstep(0.6, 1.0, sunsetFactor); + + float horizonBlend = saturate(pow(1-abs(viewDir.y), 2)); //viewDir.y + _GroundSpaceBlend.x - float sunBloom = clamp(smoothstep(1-_SunBloomRadius, 1.5, sunDot), 0, 1) * _SunBloomIntensity; + float sunRadius = 1 - _SunRadius * _SunRadius; + float sunDisk = smoothstep(sunRadius-0.001, sunRadius, sunDot); - float3 sunColor = float3(1, 1, 1) * sunDisk; + float sunBloom = saturate(smoothstep(1-_SunBloomRadius, 1.5, sunDot)) * _SunBloomIntensity; + float sunBloom2 = pow(smoothstep(sunRadius-0.01, sunRadius, sunDot) * 0.4, 2); + sunBloom = sunBloom + sunBloom2; - float horizonBlend = saturate(pow(1-abs(viewDir.y), 2)); //viewDir.y + _GroundSpaceBlend.x + float3 sunColor = float3(1, 1, 1) * sunDisk; float3 skyColor = _SkyColorDay + sunBloom; @@ -108,7 +109,8 @@ Shader "Cesium/DynamicSky" // Blend between day horizon color and night horizon color. float3 horizonColor = lerp(float3(0.0100, 0.03000, 0.06000), 0.5, sunHeightBlend); // Blend in orange at sunrise/sunset - horizonColor = lerp(horizonColor, float3(1.0, 0.5, 0.0), saturate((sunsetBlend-(1-sunDot) + 1.0) * 0.5 )); + float3 sunsetColor = lerp(horizonColor, float3(1.0, 0.5, 0.0), (sunsetBlend-(1-sunDot) + 1.0) * 0.5); + horizonColor = lerp(horizonColor, sunsetColor, pow(sunsetBlend, 4)); // mask to horizon only horizonColor = lerp(0, horizonColor, horizonBlend); @@ -121,7 +123,7 @@ Shader "Cesium/DynamicSky" skyColor = skyColor + sunColor; float4 c = float4(skyColor, 1); - //float4 c = float4(0, sunDisk, horizonBlend, 1); //DEBUG ONLY + //float4 c = float4(0, sunBloom2, sunDisk, 1); //DEBUG ONLY return c; } diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat index 302ed4a8..d7d0210b 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkybox.mat @@ -100,6 +100,7 @@ Material: - _ClearCoatSmoothness: 0 - _Cull: 2 - _Cutoff: 0.5 + - _DebugFloat: 0.678 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 @@ -124,7 +125,7 @@ Material: - _SunBloomIntensity: 0.5 - _SunBloomRadius: 0.85 - _SunDisk: 2 - - _SunRadius: 0.01 + - _SunRadius: 0.005 - _SunSize: 0.04 - _SunSizeConvergence: 5 - _Surface: 0 diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index 588d276c..da584263 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -5,11 +5,6 @@ [ExecuteInEditMode] public class CesiumSkyController : MonoBehaviour { - /* TODO - Support game camera as well as scene camera - Add options for time of day, latitude, longitude - - */ [SerializeField] Transform sunLight = default; @@ -19,6 +14,9 @@ Support game camera as well as scene camera //bool checkForSunUpdates = false; + float latitude = 0.0f; + float longitude = 0.0f; + [SerializeField] [Range(0.0f, 24.0f)] public float timeOfDay = 12.0f; @@ -27,6 +25,23 @@ Support game camera as well as scene camera [Range(0.0f, 360.0f)] float northOffset = 90.0f; + + [SerializeField] + [Range(1, 31)] + int date = 1; + + [SerializeField] + [Range(1, 12)] + int month = 6; + + [SerializeField] + int year = 2022; + + float timeZone = 0.0f; + + + + //[SerializeField] [Range(0.0f, 1.0f)] float groundSpaceBlend = 0.0f; @@ -37,6 +52,7 @@ Support game camera as well as scene camera float spaceBlendHeight = 800000.0f; Camera camera; + CesiumGlobeAnchor globeAnchor; void Awake() From 6ce1a94a3b636877921afa23603d87562f67b3ef Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:27:01 -0500 Subject: [PATCH 07/18] Begin custom editor --- Editor/CesiumSkyControllerEditor.cs | 56 +++++++++++++++++++ Editor/CesiumSkyControllerEditor.cs.meta | 11 ++++ .../CesiumSkyController.cs | 51 ++++++++++------- 3 files changed, 97 insertions(+), 21 deletions(-) create mode 100644 Editor/CesiumSkyControllerEditor.cs create mode 100644 Editor/CesiumSkyControllerEditor.cs.meta diff --git a/Editor/CesiumSkyControllerEditor.cs b/Editor/CesiumSkyControllerEditor.cs new file mode 100644 index 00000000..1082825f --- /dev/null +++ b/Editor/CesiumSkyControllerEditor.cs @@ -0,0 +1,56 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEditor; +using UnityEngine; + +namespace CesiumForUnity +{ + [CustomEditor(typeof(CesiumSkyController))] + public class CesiumSkyControllerEditor : Editor + { + private CesiumSkyController skyController; + private SerializedProperty timeOfDay; + private SerializedProperty updateOnTick; + private SerializedProperty updateInEditor; + + + private void OnEnable() + { + this.skyController = (CesiumSkyController)target; + this.timeOfDay = this.serializedObject.FindProperty("timeOfDay"); + this.updateOnTick = this.serializedObject.FindProperty("updateOnTick"); + this.updateInEditor = this.serializedObject.FindProperty("updateInEditor"); + } + + public override void OnInspectorGUI() + { + DrawSkySettings(); + this.serializedObject.ApplyModifiedProperties(); + } + + private void DrawSkySettings() + { + GUIContent updateSky = new GUIContent( + "Update Sky", + "Updates light angle and shader blending manually. You do not need to call " + + "this if UpdateOnTick is enabled."); + if (GUILayout.Button(updateSky)) + { + this.skyController.UpdateSky(); + } + + // GUILayout.Label("Level of Detail", EditorStyles.boldLabel); + + GUIContent updateOnTickContent = new GUIContent("Update on Tick", "day hour"); + EditorGUILayout.PropertyField(this.updateOnTick, updateOnTickContent); + + GUIContent updateInEditorContent = new GUIContent("Update in Editor", "day hour"); + EditorGUILayout.PropertyField(this.updateInEditor, updateInEditorContent); + + GUIContent timeOfDayContent = new GUIContent("Time of Day", "day hour"); + EditorGUILayout.PropertyField(this.timeOfDay, timeOfDayContent); + + } + } +} + diff --git a/Editor/CesiumSkyControllerEditor.cs.meta b/Editor/CesiumSkyControllerEditor.cs.meta new file mode 100644 index 00000000..5fafed6b --- /dev/null +++ b/Editor/CesiumSkyControllerEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 60f0ac2db96c7c54791a945fd3fdb86a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index da584263..fbe97bff 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -10,7 +10,10 @@ public class CesiumSkyController : MonoBehaviour Transform sunLight = default; [SerializeField] - bool checkForCameraUpdates = false; + bool updateOnTick = false; + + [SerializeField] + bool updateInEditor = false; //Todo: Make this work //bool checkForSunUpdates = false; @@ -51,7 +54,7 @@ public class CesiumSkyController : MonoBehaviour float groundBlendHeight = 2000.0f; float spaceBlendHeight = 800000.0f; - Camera camera; + Camera activeCamera; CesiumGlobeAnchor globeAnchor; @@ -62,32 +65,41 @@ void Awake() } void LateUpdate() - { - SetSunPosition(); - if (checkForCameraUpdates) + { + if (updateOnTick) { - GetCameraHeight(); + UpdateSky(); } } + public void UpdateSky() + { + SetSunPosition(); + GetCameraHeight(); + + } + void ResolveCamera() { if (Application.IsPlaying(gameObject)) { - camera = Camera.main; - globeAnchor = camera.GetComponent(); + activeCamera = Camera.main; + globeAnchor = activeCamera.GetComponent(); } - else + else if (updateInEditor) { - if (SceneView.GetAllSceneCameras()[0] != null) - { - camera = SceneView.GetAllSceneCameras()[0]; - + SceneView sceneWindow = SceneView.lastActiveSceneView; + if (sceneWindow) + { + if (sceneWindow.camera != null) + { + activeCamera = sceneWindow.camera; + + } } - } } @@ -104,14 +116,11 @@ void SetSunPosition() void GetCameraHeight() { - if (camera != null) + if (activeCamera != null) { float camHeight; - if (globeAnchor) - { - camHeight = (float)globeAnchor.height; - } - else camHeight = camera.transform.position.y; + if (globeAnchor) camHeight = (float)globeAnchor.height; + else camHeight = activeCamera.transform.position.y; if (camHeight <= groundBlendHeight) @@ -124,7 +133,7 @@ void GetCameraHeight() } else { - groundSpaceBlend = 0.0f + (1.0f - 0.0f) * ((camHeight - groundBlendHeight) / (spaceBlendHeight - groundBlendHeight)); + groundSpaceBlend = (camHeight - groundBlendHeight) / (spaceBlendHeight - groundBlendHeight); } // TODO: Add a check to see if the scene is using the Cesium skybox material From 93cf56d048cba855be34133964656af0a6266546 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:11:23 -0500 Subject: [PATCH 08/18] Add more editor properties, unify formatting --- Editor/CesiumSkyControllerEditor.cs | 120 +++++++++-- .../CesiumSkyController.cs | 186 +++++++++++++++--- .../CesiumSkyController.prefab | 19 +- 3 files changed, 271 insertions(+), 54 deletions(-) diff --git a/Editor/CesiumSkyControllerEditor.cs b/Editor/CesiumSkyControllerEditor.cs index 1082825f..36d53f1c 100644 --- a/Editor/CesiumSkyControllerEditor.cs +++ b/Editor/CesiumSkyControllerEditor.cs @@ -9,46 +9,132 @@ namespace CesiumForUnity public class CesiumSkyControllerEditor : Editor { private CesiumSkyController skyController; - private SerializedProperty timeOfDay; - private SerializedProperty updateOnTick; - private SerializedProperty updateInEditor; + + private SerializedProperty _sunLight; + private SerializedProperty _updateOnTick; + private SerializedProperty _updateInEditor; + + private SerializedProperty _timeOfDay; + + private SerializedProperty _latitude; + private SerializedProperty _longitude; + private SerializedProperty _northOffset; + private SerializedProperty _day; + private SerializedProperty _month; + private SerializedProperty _year; + private SerializedProperty _timeZone; + + private SerializedProperty _groundBlendHeight; + private SerializedProperty _spaceBlendHeight; + + bool enableDebugControls = false; private void OnEnable() { this.skyController = (CesiumSkyController)target; - this.timeOfDay = this.serializedObject.FindProperty("timeOfDay"); - this.updateOnTick = this.serializedObject.FindProperty("updateOnTick"); - this.updateInEditor = this.serializedObject.FindProperty("updateInEditor"); + this._sunLight = this.serializedObject.FindProperty("_sunLight"); + this._timeOfDay = this.serializedObject.FindProperty("_timeOfDay"); + this._updateOnTick = this.serializedObject.FindProperty("_updateOnTick"); + this._updateInEditor = this.serializedObject.FindProperty("_updateInEditor"); + + this._latitude = this.serializedObject.FindProperty("_latitude"); + this._longitude = this.serializedObject.FindProperty("_longitude"); + this._northOffset = this.serializedObject.FindProperty("_northOffset"); + this._day = this.serializedObject.FindProperty("_day"); + this._month = this.serializedObject.FindProperty("_month"); + this._year = this.serializedObject.FindProperty("_year"); + this._timeZone = this.serializedObject.FindProperty("_timeZone"); + this._groundBlendHeight = this.serializedObject.FindProperty("_groundBlendHeight"); + this._spaceBlendHeight = this.serializedObject.FindProperty("_spaceBlendHeight"); } public override void OnInspectorGUI() { - DrawSkySettings(); + DrawSkyProperties(); + DrawTimeProperties(); + DrawSkyShadingProperties(); + DrawGeoreferenceProperties(); + this.serializedObject.ApplyModifiedProperties(); } - private void DrawSkySettings() + private void DrawSkyProperties() { GUIContent updateSky = new GUIContent( "Update Sky", - "Updates light angle and shader blending manually. You do not need to call " + - "this if UpdateOnTick is enabled."); + "Updates light angle and shader blending manually. You do not need to call this if UpdateOnTick is enabled."); if (GUILayout.Button(updateSky)) { this.skyController.UpdateSky(); } - // GUILayout.Label("Level of Detail", EditorStyles.boldLabel); + GUIContent sunLightContent = new GUIContent("Sun Directional Light", "The Directional Light object to use with this script. If this is not set, it will default to the prefab's Directional Light."); + EditorGUILayout.PropertyField(this._sunLight, sunLightContent); + + GUIContent updateOnTickContent = new GUIContent("Update on Tick", "Whether or not to update every tick. If this is false, UpdateSky must be called manually."); + EditorGUILayout.PropertyField(this._updateOnTick, updateOnTickContent); + + GUIContent updateInEditorContent = new GUIContent("Update in Editor", "Whether or not to update the sky in editor."); + EditorGUILayout.PropertyField(this._updateInEditor, updateInEditorContent); + + EditorGUILayout.Space(10); + + } + + private void DrawTimeProperties() + { + GUILayout.Label("Time and Date", EditorStyles.boldLabel); + + GUIContent timeOfDayContent = new GUIContent("Time of Day", "The current time, from 0 to 24."); + EditorGUILayout.PropertyField(this._timeOfDay, timeOfDayContent); + + GUIContent dayContent = new GUIContent("Date", "The current day of the month, from 0 to 31."); + EditorGUILayout.PropertyField(this._day, dayContent); + + GUIContent monthContent = new GUIContent("Month", "The current month of the year, from 1 (January) to 12 (December)."); + EditorGUILayout.PropertyField(this._month, monthContent); - GUIContent updateOnTickContent = new GUIContent("Update on Tick", "day hour"); - EditorGUILayout.PropertyField(this.updateOnTick, updateOnTickContent); + GUIContent yearContent = new GUIContent("Year", "The current year."); + EditorGUILayout.PropertyField(this._year, yearContent); - GUIContent updateInEditorContent = new GUIContent("Update in Editor", "day hour"); - EditorGUILayout.PropertyField(this.updateInEditor, updateInEditorContent); + GUIContent timeZoneContent = new GUIContent("Time Zone", "Time zone, as an offset from GMT."); + EditorGUILayout.PropertyField(this._timeZone, timeZoneContent); - GUIContent timeOfDayContent = new GUIContent("Time of Day", "day hour"); - EditorGUILayout.PropertyField(this.timeOfDay, timeOfDayContent); + EditorGUILayout.Space(10); + + } + + private void DrawSkyShadingProperties() + { + GUILayout.Label("Sky Shading", EditorStyles.boldLabel); + + GUIContent groundBlendHeightContent = new GUIContent("Ground blend height", "Height at which to begin blending the atmosphere to space."); + EditorGUILayout.PropertyField(this._groundBlendHeight, groundBlendHeightContent); + + GUIContent spaceBlendHeightContent = new GUIContent("Space blend height", "Height at which the atmosphere is completely replaced with the space color."); + EditorGUILayout.PropertyField(this._spaceBlendHeight, spaceBlendHeightContent); + + EditorGUILayout.Space(10); + } + + private void DrawGeoreferenceProperties() + { + GUILayout.Label("Georeferencing (Debug Only)", EditorStyles.boldLabel); + + enableDebugControls = EditorGUILayout.Toggle("Enable Debug Georeferencing Controls", enableDebugControls); + + using (new EditorGUI.DisabledScope(enableDebugControls == false)) + { + GUIContent latitudeContent = new GUIContent("Latitude", "Origin Latitude"); + EditorGUILayout.PropertyField(this._latitude, latitudeContent); + + GUIContent longitudeContent = new GUIContent("Longitude", "Origin Longitude"); + EditorGUILayout.PropertyField(this._longitude, longitudeContent); + + GUIContent northOffsetContent = new GUIContent("North Offset", "Adjusted sunrise to sunset direction."); + EditorGUILayout.PropertyField(this._northOffset, northOffsetContent); + } } } diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index fbe97bff..1df9fe01 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -5,54 +5,158 @@ [ExecuteInEditMode] public class CesiumSkyController : MonoBehaviour { + [SerializeField] + GameObject _sunLight = default; [SerializeField] - Transform sunLight = default; + private bool _updateOnTick = false; + + public bool updateOnTick + { + get => this._updateOnTick; + set + { + this._updateOnTick = value; + } + } [SerializeField] - bool updateOnTick = false; + bool _updateInEditor = false; + + public bool updateInEditor + { + get => this._updateInEditor; + set + { + this._updateInEditor = value; + } + } + [SerializeField] - bool updateInEditor = false; //Todo: Make this work + [Range(-90.0f, 90.0f)] + private float _latitude = 0.0f; + + public float latitude + { + get => this._latitude; + set + { + this._latitude = value; + } + } + - //bool checkForSunUpdates = false; + [SerializeField] + [Range(-180.0f, 180.0f)] + private float _longitude = 0.0f; - float latitude = 0.0f; - float longitude = 0.0f; + public float longitude + { + get => this._longitude; + set + { + this._longitude = value; + } + } [SerializeField] [Range(0.0f, 24.0f)] - public float timeOfDay = 12.0f; + private float _timeOfDay = 12.0f; + + public float timeOfDay + { + get => this._timeOfDay; + set + { + this._timeOfDay = value; + this.SetSunPosition(); + } + } + // Pretty sure this should always be -90, so this should probably not be a variable and should instead be hardcoded into the native implementation. [SerializeField] - [Range(0.0f, 360.0f)] - float northOffset = 90.0f; + [Range(-360.0f, 360.0f)] + private float _northOffset = -90.0f; + + public float northOffset + { + get => this._northOffset; + set + { + this._northOffset = value; + this.UpdateSky(); + } + } [SerializeField] [Range(1, 31)] - int date = 1; + private int _day = 1; + + public int day + { + get => this._day; + set + { + this._day = value; + this.UpdateSky(); + } + } [SerializeField] [Range(1, 12)] - int month = 6; + private int _month = 6; + + public int month + { + get => this._month; + set + { + this._month = value; + this.UpdateSky(); + } + } [SerializeField] - int year = 2022; + private int _year = 2022; - float timeZone = 0.0f; + public int year + { + get => this._year; + set + { + this._year = value; + this.UpdateSky(); + } + } + [SerializeField] + private float _timeZone = 0.0f; + public float timeZone + { + get => this._timeZone; + set + { + this._timeZone = value; + this.UpdateSky(); + } + } - //[SerializeField] + //[SerializeField] // This can be serialized for easy testing of the skybox shader. [Range(0.0f, 1.0f)] - float groundSpaceBlend = 0.0f; + private float groundSpaceBlend = 0.0f; - float lastBlendValue; + private float lastBlendValue; - float groundBlendHeight = 2000.0f; - float spaceBlendHeight = 800000.0f; + [SerializeField] + float _groundBlendHeight = 2000.0f; + [SerializeField] + float _spaceBlendHeight = 800000.0f; + + //Todo: Additional options for HDRP vs URP. In URP, skybox-specific options, including perhaps the ability to set the skybox used in the level. For HDRP, atmosphere scaling options for Physically Based Sky. Camera activeCamera; @@ -62,13 +166,23 @@ void Awake() { ResolveCamera(); + // If the application has started and the directional light reference is not set, set it to the prefab's child Directional Light object. + if (Application.IsPlaying(gameObject) && !_sunLight) + { + _sunLight = this.transform.Find("Directional Light").gameObject; + + } + } void LateUpdate() { if (updateOnTick) { - UpdateSky(); + if (Application.IsPlaying(gameObject) || _updateInEditor) + { + UpdateSky(); + } } } @@ -77,7 +191,6 @@ public void UpdateSky() { SetSunPosition(); GetCameraHeight(); - } void ResolveCamera() @@ -86,10 +199,8 @@ void ResolveCamera() { activeCamera = Camera.main; globeAnchor = activeCamera.GetComponent(); - - } - else if (updateInEditor) + else if (_updateInEditor) { SceneView sceneWindow = SceneView.lastActiveSceneView; if (sceneWindow) @@ -103,17 +214,27 @@ void ResolveCamera() } } - void SetSunPosition() + public Vector3 CalculateSunPosition() // This will be a partial class that is entirely implemented in Cesium Native + { + float hourToAngle = ((timeOfDay * 15.0f) - 90.0f); + Vector3 positionToRotation = new Vector3(hourToAngle, _northOffset, 0); + + return positionToRotation; + } + + + public void SetSunPosition() { - float hourToAngle = ((timeOfDay*15.0f) - 90.0f); - Vector3 newSunRotation = new Vector3(hourToAngle, northOffset, 0); + Vector3 newSunRotation = CalculateSunPosition(); - if (sunLight != null) { - sunLight.transform.localEulerAngles = newSunRotation; - Shader.SetGlobalVector("_SunDirection", -sunLight.transform.forward); + if (_sunLight != null) { + _sunLight.transform.localEulerAngles = newSunRotation; + Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); } } + + void GetCameraHeight() { if (activeCamera != null) @@ -123,17 +244,18 @@ void GetCameraHeight() else camHeight = activeCamera.transform.position.y; - if (camHeight <= groundBlendHeight) + if (camHeight <= _groundBlendHeight) { groundSpaceBlend = 0.0f; } - else if (camHeight >= spaceBlendHeight) + else if (camHeight >= _spaceBlendHeight) { groundSpaceBlend = 1.0f; } else { - groundSpaceBlend = (camHeight - groundBlendHeight) / (spaceBlendHeight - groundBlendHeight); + groundSpaceBlend = (camHeight - _groundBlendHeight) / (_spaceBlendHeight - _groundBlendHeight); + // Linear interpolation seems too abrupt here at the beginning and end of the blend. That, or the math is wrong. Perhaps a smoother interpolation, especially in space. } // TODO: Add a check to see if the scene is using the Cesium skybox material diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab index 29ad8c6e..a11b9e4a 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.prefab @@ -45,10 +45,19 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: da18ae5ee2913204a9bcaa7299115367, type: 3} m_Name: m_EditorClassIdentifier: - sunLight: {fileID: 6626873336779263033} - checkForCameraUpdates: 0 - timeOfDay: 12 - northOffset: 90 + _sunLight: {fileID: 6626873336779263038} + _updateOnTick: 1 + _updateInEditor: 1 + _latitude: 0 + _longitude: 0 + _timeOfDay: 12 + _northOffset: -90 + _day: 1 + _month: 6 + _year: 2022 + _timeZone: 0 + _groundBlendHeight: 2000 + _spaceBlendHeight: 800000 --- !u!1 &6626873336779263038 GameObject: m_ObjectHideFlags: 0 @@ -74,7 +83,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6626873336779263038} - m_LocalRotation: {x: 0.5, y: 0.5, z: -0.5, w: 0.5} + m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 From e0e80a0a00e25afce6083d13ffb008874038e99a Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:17:28 -0500 Subject: [PATCH 09/18] Reorganize code, add method for updating skybox mat --- .../CesiumSkyController.cs | 85 +++++++++++-------- 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index 1df9fe01..c39f708c 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -21,7 +21,7 @@ public bool updateOnTick } [SerializeField] - bool _updateInEditor = false; + bool _updateInEditor = false; public bool updateInEditor { @@ -32,7 +32,6 @@ public bool updateInEditor } } - [SerializeField] [Range(-90.0f, 90.0f)] private float _latitude = 0.0f; @@ -46,7 +45,6 @@ public float latitude } } - [SerializeField] [Range(-180.0f, 180.0f)] private float _longitude = 0.0f; @@ -89,7 +87,6 @@ public float northOffset } } - [SerializeField] [Range(1, 31)] private int _day = 1; @@ -144,6 +141,19 @@ public float timeZone } } + [SerializeField] + private bool _useCesiumSkybox = true; + + public bool useCesiumSkybox + { + get => this._useCesiumSkybox; + set + { + this._useCesiumSkybox = value; + this.ChangeSkyboxMaterial(); + } + } + //[SerializeField] // This can be serialized for easy testing of the skybox shader. [Range(0.0f, 1.0f)] @@ -162,37 +172,17 @@ public float timeZone CesiumGlobeAnchor globeAnchor; - void Awake() - { - ResolveCamera(); - - // If the application has started and the directional light reference is not set, set it to the prefab's child Directional Light object. - if (Application.IsPlaying(gameObject) && !_sunLight) - { - _sunLight = this.transform.Find("Directional Light").gameObject; - - } - - } - - void LateUpdate() - { - if (updateOnTick) - { - if (Application.IsPlaying(gameObject) || _updateInEditor) - { - UpdateSky(); - } - - } - } - public void UpdateSky() { SetSunPosition(); GetCameraHeight(); } + public void ChangeSkyboxMaterial() + { + + } + void ResolveCamera() { if (Application.IsPlaying(gameObject)) @@ -204,7 +194,7 @@ void ResolveCamera() { SceneView sceneWindow = SceneView.lastActiveSceneView; if (sceneWindow) - { + { if (sceneWindow.camera != null) { activeCamera = sceneWindow.camera; @@ -222,19 +212,17 @@ public Vector3 CalculateSunPosition() // This will be a partial class that is en return positionToRotation; } - public void SetSunPosition() { Vector3 newSunRotation = CalculateSunPosition(); - if (_sunLight != null) { + if (_sunLight != null) + { _sunLight.transform.localEulerAngles = newSunRotation; - Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); + Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); } } - - void GetCameraHeight() { if (activeCamera != null) @@ -270,4 +258,31 @@ void GetCameraHeight() else ResolveCamera(); } + + void Awake() + { + ResolveCamera(); + + // If the application has started and the directional light reference is not set, set it to the prefab's child Directional Light object. + if (Application.IsPlaying(gameObject) && !_sunLight) + { + _sunLight = this.transform.Find("Directional Light").gameObject; + + } + + } + + void LateUpdate() + { + if (updateOnTick) + { + if (Application.IsPlaying(gameObject) || _updateInEditor) + { + UpdateSky(); + } + + } + } + + } From 03546238e825c4b426e8e5c5fa274763ad6d5ea5 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:36:05 -0500 Subject: [PATCH 10/18] Additional setup for skybox material change --- Editor/CesiumSkyControllerEditor.cs | 6 ++++++ .../Resources/CesiumSkyController/CesiumSkyController.cs | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Editor/CesiumSkyControllerEditor.cs b/Editor/CesiumSkyControllerEditor.cs index 36d53f1c..d0335398 100644 --- a/Editor/CesiumSkyControllerEditor.cs +++ b/Editor/CesiumSkyControllerEditor.cs @@ -24,6 +24,7 @@ public class CesiumSkyControllerEditor : Editor private SerializedProperty _year; private SerializedProperty _timeZone; + private SerializedProperty _useCesiumSkybox; private SerializedProperty _groundBlendHeight; private SerializedProperty _spaceBlendHeight; @@ -45,6 +46,8 @@ private void OnEnable() this._month = this.serializedObject.FindProperty("_month"); this._year = this.serializedObject.FindProperty("_year"); this._timeZone = this.serializedObject.FindProperty("_timeZone"); + + this._useCesiumSkybox = this.serializedObject.FindProperty("_useCesiumSkybox"); this._groundBlendHeight = this.serializedObject.FindProperty("_groundBlendHeight"); this._spaceBlendHeight = this.serializedObject.FindProperty("_spaceBlendHeight"); } @@ -109,6 +112,9 @@ private void DrawSkyShadingProperties() { GUILayout.Label("Sky Shading", EditorStyles.boldLabel); + GUIContent useCesiumSkyboxContent = new GUIContent("Use Cesium Skybox", "Use the included Cesium skybox material for an atmosphere blending effect from earth to space."); + EditorGUILayout.PropertyField(this._useCesiumSkybox, useCesiumSkyboxContent); + GUIContent groundBlendHeightContent = new GUIContent("Ground blend height", "Height at which to begin blending the atmosphere to space."); EditorGUILayout.PropertyField(this._groundBlendHeight, groundBlendHeightContent); diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs index c39f708c..29d9ceb5 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs @@ -154,7 +154,6 @@ public bool useCesiumSkybox } } - //[SerializeField] // This can be serialized for easy testing of the skybox shader. [Range(0.0f, 1.0f)] private float groundSpaceBlend = 0.0f; @@ -176,10 +175,17 @@ public void UpdateSky() { SetSunPosition(); GetCameraHeight(); + + // ChangeSkyboxMaterial(); //WIP } public void ChangeSkyboxMaterial() { + if (_useCesiumSkybox) + { + RenderSettings.skybox = Resources.Load("CesiumSkyController/CesiumDynamicSkybox.mat", typeof(Material)) as Material; + DynamicGI.UpdateEnvironment(); + } } @@ -261,6 +267,7 @@ void GetCameraHeight() void Awake() { + ResolveCamera(); // If the application has started and the directional light reference is not set, set it to the prefab's child Directional Light object. From 248e29004767d2e3fd9587bc3f45755a1f2b0b51 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:36:56 -0500 Subject: [PATCH 11/18] Move skybox controller script where it belongs --- .../{Resources/CesiumSkyController => }/CesiumSkyController.cs | 0 .../CesiumSkyController => }/CesiumSkyController.cs.meta | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename Runtime/{Resources/CesiumSkyController => }/CesiumSkyController.cs (100%) rename Runtime/{Resources/CesiumSkyController => }/CesiumSkyController.cs.meta (100%) diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs similarity index 100% rename from Runtime/Resources/CesiumSkyController/CesiumSkyController.cs rename to Runtime/CesiumSkyController.cs diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyController.cs.meta b/Runtime/CesiumSkyController.cs.meta similarity index 100% rename from Runtime/Resources/CesiumSkyController/CesiumSkyController.cs.meta rename to Runtime/CesiumSkyController.cs.meta From 5750a96bf5a9dd5ce71de69fd359bd8422e07af1 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 24 Jan 2023 16:45:23 -0500 Subject: [PATCH 12/18] Add button to set scene skybox --- Editor/CesiumSkyControllerEditor.cs | 20 ++++++++++++++++---- Runtime/CesiumSkyController.cs | 10 ++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/Editor/CesiumSkyControllerEditor.cs b/Editor/CesiumSkyControllerEditor.cs index d0335398..aaeacbfd 100644 --- a/Editor/CesiumSkyControllerEditor.cs +++ b/Editor/CesiumSkyControllerEditor.cs @@ -115,11 +115,23 @@ private void DrawSkyShadingProperties() GUIContent useCesiumSkyboxContent = new GUIContent("Use Cesium Skybox", "Use the included Cesium skybox material for an atmosphere blending effect from earth to space."); EditorGUILayout.PropertyField(this._useCesiumSkybox, useCesiumSkyboxContent); - GUIContent groundBlendHeightContent = new GUIContent("Ground blend height", "Height at which to begin blending the atmosphere to space."); - EditorGUILayout.PropertyField(this._groundBlendHeight, groundBlendHeightContent); + using (new EditorGUI.DisabledScope(this._useCesiumSkybox.boolValue == false)) + { + GUIContent updateSkyMat = new GUIContent( + "Update Skybox Material", + "Sets the level's skybox to the Cesium Dynamic Skybox material."); + if (GUILayout.Button(updateSkyMat)) + { + this.skyController.ChangeSkyboxMaterial(); + } + + GUIContent groundBlendHeightContent = new GUIContent("Ground blend height", "Height at which to begin blending the atmosphere to space."); + EditorGUILayout.PropertyField(this._groundBlendHeight, groundBlendHeightContent); - GUIContent spaceBlendHeightContent = new GUIContent("Space blend height", "Height at which the atmosphere is completely replaced with the space color."); - EditorGUILayout.PropertyField(this._spaceBlendHeight, spaceBlendHeightContent); + GUIContent spaceBlendHeightContent = new GUIContent("Space blend height", "Height at which the atmosphere is completely replaced with the space color."); + EditorGUILayout.PropertyField(this._spaceBlendHeight, spaceBlendHeightContent); + + } EditorGUILayout.Space(10); } diff --git a/Runtime/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs index 29d9ceb5..b6a63e60 100644 --- a/Runtime/CesiumSkyController.cs +++ b/Runtime/CesiumSkyController.cs @@ -150,7 +150,7 @@ public bool useCesiumSkybox set { this._useCesiumSkybox = value; - this.ChangeSkyboxMaterial(); + //this.ChangeSkyboxMaterial(); } } @@ -174,16 +174,18 @@ public bool useCesiumSkybox public void UpdateSky() { SetSunPosition(); - GetCameraHeight(); + if (_useCesiumSkybox) + { + GetCameraHeight(); - // ChangeSkyboxMaterial(); //WIP + } } public void ChangeSkyboxMaterial() { if (_useCesiumSkybox) { - RenderSettings.skybox = Resources.Load("CesiumSkyController/CesiumDynamicSkybox.mat", typeof(Material)) as Material; + RenderSettings.skybox = Resources.Load("CesiumSkyController/CesiumDynamicSkybox", typeof(Material)) as Material; DynamicGI.UpdateEnvironment(); } From 3b25531670519629d09137041e73075547fdb673 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Wed, 25 Jan 2023 17:52:54 -0500 Subject: [PATCH 13/18] Begin porting shader code to shadergraph --- Runtime/CesiumSkyController.cs | 2 +- .../CesiumDynamicSky.shader | 13 +- ...CesiumDynamicSkyboxShaderGraph.shadergraph | 7330 +++++++++++++++++ ...mDynamicSkyboxShaderGraph.shadergraph.meta | 10 + .../CesiumSkyShaderGraph.mat | 58 + .../CesiumSkyShaderGraph.mat.meta | 8 + 6 files changed, 7418 insertions(+), 3 deletions(-) create mode 100644 Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph create mode 100644 Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph.meta create mode 100644 Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat create mode 100644 Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat.meta diff --git a/Runtime/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs index b6a63e60..9d6d30f0 100644 --- a/Runtime/CesiumSkyController.cs +++ b/Runtime/CesiumSkyController.cs @@ -227,7 +227,7 @@ public void SetSunPosition() if (_sunLight != null) { _sunLight.transform.localEulerAngles = newSunRotation; - Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); + Shader.SetGlobalVector("_SunDirectionSG", -_sunLight.transform.forward); } } diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader index 3874cd93..ed01f12e 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSky.shader @@ -18,7 +18,12 @@ Shader "Cesium/DynamicSky" } SubShader { - Tags { "Queue"="Background" "RenderType"="Background" "PreviewType"="Skybox" } + PackageRequirements + { + "com.unity.render-pipelines.universal": "10.2.1" + } + + Tags { "Queue"="Background" "RenderPipeline" = "UniversalPipeline" "RenderType"="Background" "PreviewType"="Skybox" } Cull Off ZWrite Off HLSLINCLUDE @@ -28,6 +33,10 @@ Shader "Cesium/DynamicSky" Pass { + PackageRequirements + { + "com.unity.render-pipelines.universal": "10.2.1" + } HLSLPROGRAM #pragma vertex vert #pragma fragment frag @@ -116,7 +125,7 @@ Shader "Cesium/DynamicSky" skyColor = clamp(skyColor + horizonColor, 0, 1); - // Todo: create atmosphere effect by moving horizon down x axis while in space + // Todo: create atmosphere effect by moving horizon down y axis while in space // float spaceBlend = smoothstep(0.5, 0.6, ((viewDir.y + 0) * 0.5) + _GroundSpaceBlend.x); skyColor = lerp(skyColor, float3(0, 0, 0), _GroundSpaceBlend.x); diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph new file mode 100644 index 00000000..45dc4879 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph @@ -0,0 +1,7330 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "18d3bbfd88b340cc822e3499ee022fa2", + "m_Properties": [ + { + "m_Id": "30e79906ea6441908ae44a2131f6b416" + }, + { + "m_Id": "a45650180b1242c8a03fd3167872c7bc" + }, + { + "m_Id": "f2454f526ae94cb99b61f8af8a27da52" + }, + { + "m_Id": "23f2a437e8fe463481157b52cf70130e" + }, + { + "m_Id": "9c87366acc95483ca5af43cc597424e9" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "121034c570ba497bb2b7b3d00f9e939e" + } + ], + "m_Nodes": [ + { + "m_Id": "42ef9c7eb4d94874a1e4af41d0f74119" + }, + { + "m_Id": "4a5ba4f97ffe4307a441e7c66690f00f" + }, + { + "m_Id": "e305f3381a294d61b95c843f40a8343a" + }, + { + "m_Id": "e0abb38dab864509bd8e163c5e913489" + }, + { + "m_Id": "af2bd5853b48436a8b43a2508f3387d2" + }, + { + "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" + }, + { + "m_Id": "f1f9a8faddd24f88b9235cfd9f3d4763" + }, + { + "m_Id": "37c67b58086d4649a519fff753ec256b" + }, + { + "m_Id": "f8693afbb09e49f884782595a0c3c93a" + }, + { + "m_Id": "397c0be744ba4f58a5f4d3b9344ace2b" + }, + { + "m_Id": "75ae370dfc5442b9965ce0be1a57177c" + }, + { + "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" + }, + { + "m_Id": "01cd7818887444a0945ae9c3e3146649" + }, + { + "m_Id": "c901bc9ee5514dbcb8d52e24ce7db92a" + }, + { + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + }, + { + "m_Id": "6a444a0c97594f62a601ef43b46ba774" + }, + { + "m_Id": "df6909f271814d2aac0da245d4ececb5" + }, + { + "m_Id": "cf120a5737fc4e4ba2a9b9c448f95b93" + }, + { + "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" + }, + { + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + }, + { + "m_Id": "120a9094ce2a4e43b0489fda7ee0126c" + }, + { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + { + "m_Id": "9c8d0bd7527b4712afed4f3a54599789" + }, + { + "m_Id": "c79e696727d849b9927d959121146936" + }, + { + "m_Id": "f8f2ec45de05456dad0ffc0289c13fc2" + }, + { + "m_Id": "be435aa746fd46769840b44dde02bedb" + }, + { + "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" + }, + { + "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + }, + { + "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + }, + { + "m_Id": "55fb8f2f32e043498414b142170a47e2" + }, + { + "m_Id": "5d2d0c0264214fae9e0e5cd398a198e6" + }, + { + "m_Id": "450bb566389b4e83b26cac613a25cb16" + }, + { + "m_Id": "0e11b8be7dda47118c59f4291babdda8" + }, + { + "m_Id": "111fa6a87ec246ffa300d61fe4225645" + }, + { + "m_Id": "f49ec666afe14c929decc77b4aa064a5" + }, + { + "m_Id": "88d58134e77840a191beb1b23517fdc0" + }, + { + "m_Id": "6774e13c03b04b819758892fbcd5f5cd" + }, + { + "m_Id": "a5e80011e0034edbb539fb6adb19891d" + }, + { + "m_Id": "d6d80edd3de343738c14078e891454fb" + }, + { + "m_Id": "5dd5e072c94d4d369d0aefcfbbc5de0a" + }, + { + "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" + }, + { + "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" + }, + { + "m_Id": "ac869a26dd2b4370a15cacf2657d301d" + }, + { + "m_Id": "5332b1a18da1472893a182fb03828316" + }, + { + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + }, + { + "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + }, + { + "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" + }, + { + "m_Id": "cc0bef66e0ef4c2faf7aed3e7b113618" + }, + { + "m_Id": "f431618d29874d2e9ed445d6e21caabe" + }, + { + "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + }, + { + "m_Id": "2875b112c7d54014b2a1e1e5d5444a64" + }, + { + "m_Id": "4d7b05e8a339482894c78a4e07ec1832" + }, + { + "m_Id": "10b9de8100374965b0454160207f02bc" + }, + { + "m_Id": "4fcc8ff4ecb946d6a71fb973246aec33" + }, + { + "m_Id": "e8c864d9f58c447cac3482a9e55d5ac0" + }, + { + "m_Id": "e00ea24d00c34a48aeb82f5ab67d02ba" + }, + { + "m_Id": "3b353dba8108458a9f84c51d7f9dec98" + }, + { + "m_Id": "f9fcd77d22bf49698574a97ebeb38c87" + } + ], + "m_GroupDatas": [ + { + "m_Id": "6958154701694f7daab2bd60fbc56d55" + }, + { + "m_Id": "6d0527dd58f348658146e0b5aa2b15a1" + }, + { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + { + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" + }, + { + "m_Id": "94407e1f19b14a1a996944a188a10ee3" + }, + { + "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "01cd7818887444a0945ae9c3e3146649" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9c8d0bd7527b4712afed4f3a54599789" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0e11b8be7dda47118c59f4291babdda8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "450bb566389b4e83b26cac613a25cb16" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "10b9de8100374965b0454160207f02bc" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4fcc8ff4ecb946d6a71fb973246aec33" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "10b9de8100374965b0454160207f02bc" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6774e13c03b04b819758892fbcd5f5cd" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "111fa6a87ec246ffa300d61fe4225645" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "450bb566389b4e83b26cac613a25cb16" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "120a9094ce2a4e43b0489fda7ee0126c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2875b112c7d54014b2a1e1e5d5444a64" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e0abb38dab864509bd8e163c5e913489" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "37c67b58086d4649a519fff753ec256b" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f8693afbb09e49f884782595a0c3c93a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "397c0be744ba4f58a5f4d3b9344ace2b" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "75ae370dfc5442b9965ce0be1a57177c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3b353dba8108458a9f84c51d7f9dec98" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "120a9094ce2a4e43b0489fda7ee0126c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "450bb566389b4e83b26cac613a25cb16" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e00ea24d00c34a48aeb82f5ab67d02ba" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4fcc8ff4ecb946d6a71fb973246aec33" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5332b1a18da1472893a182fb03828316" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "55fb8f2f32e043498414b142170a47e2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5d2d0c0264214fae9e0e5cd398a198e6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5dd5e072c94d4d369d0aefcfbbc5de0a" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5dd5e072c94d4d369d0aefcfbbc5de0a" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5332b1a18da1472893a182fb03828316" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6774e13c03b04b819758892fbcd5f5cd" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6a444a0c97594f62a601ef43b46ba774" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "10b9de8100374965b0454160207f02bc" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6a444a0c97594f62a601ef43b46ba774" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f431618d29874d2e9ed445d6e21caabe" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "75ae370dfc5442b9965ce0be1a57177c" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f9fcd77d22bf49698574a97ebeb38c87" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "88d58134e77840a191beb1b23517fdc0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f49ec666afe14c929decc77b4aa064a5" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f1f9a8faddd24f88b9235cfd9f3d4763" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9c8d0bd7527b4712afed4f3a54599789" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a5e80011e0034edbb539fb6adb19891d" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d6d80edd3de343738c14078e891454fb" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ac869a26dd2b4370a15cacf2657d301d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f49ec666afe14c929decc77b4aa064a5" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "af2bd5853b48436a8b43a2508f3387d2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "450bb566389b4e83b26cac613a25cb16" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6a444a0c97594f62a601ef43b46ba774" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "be435aa746fd46769840b44dde02bedb" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c79e696727d849b9927d959121146936" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a5e80011e0034edbb539fb6adb19891d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c79e696727d849b9927d959121146936" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "be435aa746fd46769840b44dde02bedb" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c901bc9ee5514dbcb8d52e24ce7db92a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac869a26dd2b4370a15cacf2657d301d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cc0bef66e0ef4c2faf7aed3e7b113618" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf120a5737fc4e4ba2a9b9c448f95b93" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d6d80edd3de343738c14078e891454fb" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5dd5e072c94d4d369d0aefcfbbc5de0a" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "df6909f271814d2aac0da245d4ececb5" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cf120a5737fc4e4ba2a9b9c448f95b93" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "df6909f271814d2aac0da245d4ececb5" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cf120a5737fc4e4ba2a9b9c448f95b93" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e00ea24d00c34a48aeb82f5ab67d02ba" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3b353dba8108458a9f84c51d7f9dec98" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e00ea24d00c34a48aeb82f5ab67d02ba" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f49ec666afe14c929decc77b4aa064a5" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e8c864d9f58c447cac3482a9e55d5ac0" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e8c864d9f58c447cac3482a9e55d5ac0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f1f9a8faddd24f88b9235cfd9f3d4763" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "37c67b58086d4649a519fff753ec256b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f431618d29874d2e9ed445d6e21caabe" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2875b112c7d54014b2a1e1e5d5444a64" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f49ec666afe14c929decc77b4aa064a5" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f8693afbb09e49f884782595a0c3c93a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "397c0be744ba4f58a5f4d3b9344ace2b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f8f2ec45de05456dad0ffc0289c13fc2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c79e696727d849b9927d959121146936" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f9fcd77d22bf49698574a97ebeb38c87" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 5405.00048828125, + "y": 1568.0001220703125 + }, + "m_Blocks": [ + { + "m_Id": "42ef9c7eb4d94874a1e4af41d0f74119" + }, + { + "m_Id": "4a5ba4f97ffe4307a441e7c66690f00f" + }, + { + "m_Id": "e305f3381a294d61b95c843f40a8343a" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 5405.00048828125, + "y": 1768.0001220703125 + }, + "m_Blocks": [ + { + "m_Id": "e0abb38dab864509bd8e163c5e913489" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Cesium", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_ActiveTargets": [ + { + "m_Id": "64ebda2ed66d4ba583e03df9fb6a0249" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "011f3a78ebc84703a61691c0a6374a92", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.PositionNode", + "m_ObjectId": "01cd7818887444a0945ae9c3e3146649", + "m_Group": { + "m_Id": "94407e1f19b14a1a996944a188a10ee3" + }, + "m_Name": "Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2030.9998779296875, + "y": 769.9998168945313, + "width": 208.0, + "height": 315.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "6c3f5b272f7343aba9af8ac57e754de1" + } + ], + "synonyms": [ + "location" + ], + "m_Precision": 1, + "m_PreviewExpanded": true, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 2, + "m_PositionSource": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "028f1dcc203f4768a28db4709b50dedc", + "m_Id": 0, + "m_DisplayName": "SunDirection", + "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.Vector1MaterialSlot", + "m_ObjectId": "061b8029d19f4ab5bb7813be53259e0e", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "07298023357e48dc9a4a93a749c4604f", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "0798fd74bcca48ccadb036bdf9c9662b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "083e44e7effc4d17b52c33b1423c4dc2", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "0c9469d38f3c44c5b1122c0982dc6e68", + "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": "0c9de6d0dcea463096006add3179299e", + "m_Id": 0, + "m_DisplayName": "SunDirection", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "0cd8b4b5dc37427f8fcd7f6537eef6b8", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.LerpNode", + "m_ObjectId": "0cda2d6471ec4153ae5abcc7bf73c3d5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3746.999755859375, + "y": 2045.9998779296875, + "width": 208.0, + "height": 326.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "b60ec09ff6c74ea6ae800611a0dbcb7b" + }, + { + "m_Id": "8b653a71425f46ce99bc1f15ce6ac1c7" + }, + { + "m_Id": "13074b6e50f84ea0be4ce395115e9cae" + }, + { + "m_Id": "d1e59438019b49daac53ec0ebe1a49ee" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ColorNode", + "m_ObjectId": "0e11b8be7dda47118c59f4291babdda8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Color", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 943.0, + "y": 1858.0, + "width": 208.0, + "height": 127.0 + } + }, + "m_Slots": [ + { + "m_Id": "e759a50fb6604e08be6c42013b1a1bb4" + } + ], + "synonyms": [ + "rgba" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Color": { + "color": { + "r": 0.07800000160932541, + "g": 0.09200000017881394, + "b": 0.12800000607967378, + "a": 1.0 + }, + "mode": 0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0fb1857903f14d9da91d956284a30116", + "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.RedirectNodeData", + "m_ObjectId": "10b9de8100374965b0454160207f02bc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 895.0, + "y": 1140.0, + "width": 56.0, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "0cd8b4b5dc37427f8fcd7f6537eef6b8" + }, + { + "m_Id": "57bc39587a39478fa7f0f4619bb779eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ColorNode", + "m_ObjectId": "111fa6a87ec246ffa300d61fe4225645", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Color", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 943.0, + "y": 1985.0, + "width": 208.0, + "height": 127.0 + } + }, + "m_Slots": [ + { + "m_Id": "93afb4a6617e409e9105e96aa1d3d8f8" + } + ], + "synonyms": [ + "rgba" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Color": { + "color": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + }, + "mode": 0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "120a9094ce2a4e43b0489fda7ee0126c", + "m_Group": { + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4394.00048828125, + "y": 1290.0001220703125, + "width": 126.0, + "height": 117.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "b11026cb09e643dd8fe0cd6981282499" + }, + { + "m_Id": "71a2aa0a35c045f8ae72e67ddf3e95d4" + }, + { + "m_Id": "2ad8bc1f1e8a42dabbcbad9e6ac9ac9f" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "121034c570ba497bb2b7b3d00f9e939e", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "30e79906ea6441908ae44a2131f6b416" + }, + { + "m_Id": "a45650180b1242c8a03fd3167872c7bc" + }, + { + "m_Id": "f2454f526ae94cb99b61f8af8a27da52" + }, + { + "m_Id": "23f2a437e8fe463481157b52cf70130e" + }, + { + "m_Id": "9c87366acc95483ca5af43cc597424e9" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "13074b6e50f84ea0be4ce395115e9cae", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "13ac8c8f7d564e6cbbaefa7879b92392", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "13c87fcb39244a1f9a4650b8c89f8286", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "13c98e83e7d547d4a1642a055cb6bc02", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "146a87efb89743eb96226210a9cfe892", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "160a02718619402086bf3afd81758e34", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "17b83ce1427944e4a03a794f1d13d5db", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1817b52679ae401cb4b3d2e4317c48d5", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "1b0e5ed5fe9e46259e237fbe7d406e6d", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1bec2e8b244a41a99171cb04e44d3bfa", + "m_Id": 1, + "m_DisplayName": "Edge2", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge2", + "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.Vector3MaterialSlot", + "m_ObjectId": "1d3e959ae85d4d368c19576dcc2c899a", + "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 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1d9418870ab94bb3a4814aa0e27bca50", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1f1a75dd719343858394bcb17caf8c73", + "m_Id": 1, + "m_DisplayName": "Min", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Min", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "23f2a437e8fe463481157b52cf70130e", + "m_Guid": { + "m_GuidSerialized": "18951c5d-2241-487e-b535-b35cae391d37" + }, + "m_Name": "SunDirection", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "SunDirection", + "m_DefaultReferenceName": "_SunDirection", + "m_OverrideReferenceName": "_SunDirectionSG", + "m_GeneratePropertyBlock": false, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "26e1e6b2e2e44bc7b4d797d12fdaa2eb", + "m_Id": 2, + "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.MultiplyNode", + "m_ObjectId": "2875b112c7d54014b2a1e1e5d5444a64", + "m_Group": { + "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -181.56259155273438, + "y": 1076.4373779296875, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "63b40c2b916946a88636613c8d8b928c" + }, + { + "m_Id": "7686ec91615744789dbfcc1329dc1a1c" + }, + { + "m_Id": "160a02718619402086bf3afd81758e34" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2ad8bc1f1e8a42dabbcbad9e6ac9ac9f", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2d2140e754ca40e5b8d7a099d40f7529", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 1.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.AddNode", + "m_ObjectId": "2f35b4983aaa489b90491c5c303caae7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4985.00048828125, + "y": 1617.000244140625, + "width": 208.0, + "height": 301.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "5d79ed7fc3bb48b4a37ae0ae9513dfb3" + }, + { + "m_Id": "3fa46f7df4bf48a5a382c5f2a15a6fe4" + }, + { + "m_Id": "4b5d1c82485d4ffc9abea92052f23255" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "30e404c7898c4a94971734e15c5dc3fa", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "30e79906ea6441908ae44a2131f6b416", + "m_Guid": { + "m_GuidSerialized": "37649840-5bc6-48b4-bcfa-80e53a38ca8c" + }, + "m_Name": "SkyColorDay", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "SkyColorDay", + "m_DefaultReferenceName": "_SkyColorDay", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.33000001311302187, + "g": 0.5899999737739563, + "b": 0.8299999833106995, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "31013c194dd446b793d7fb3825afa730", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "31bdf0cda06241338f93d2928bdd1f38", + "m_Id": 0, + "m_DisplayName": "Edge1", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge1", + "m_StageCapability": 3, + "m_Value": { + "x": 0.15000000596046449, + "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.MultiplyNode", + "m_ObjectId": "32a4a9d946fa40aa96e8bad2df2d93aa", + "m_Group": { + "m_Id": "6958154701694f7daab2bd60fbc56d55" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -560.0, + "y": 1540.9998779296875, + "width": 207.99996948242188, + "height": 302.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "8cf36ead86e648959d85f91c87416c33" + }, + { + "m_Id": "a2661984be4a43b495bed35c5a0e8f10" + }, + { + "m_Id": "5982303d3f9440e197aec2e2851aea4f" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "333e81ef74f94e3a95782344c63b7fe9", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "3551c64f347b4783bdfd2531197aaf6d", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "35549a319b234ce680f0bca49603eae9", + "m_Id": 0, + "m_DisplayName": "Edge1", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge1", + "m_StageCapability": 3, + "m_Value": { + "x": 0.4000000059604645, + "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.AbsoluteNode", + "m_ObjectId": "37c67b58086d4649a519fff753ec256b", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "Absolute", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -43.000083923339847, + "y": 2732.999755859375, + "width": 208.00003051757813, + "height": 278.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "e1c43210f1b048298f4c4b8b58ccd24d" + }, + { + "m_Id": "dd9bf24403cf4394b717087205167be0" + } + ], + "synonyms": [ + "positive" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PowerNode", + "m_ObjectId": "397c0be744ba4f58a5f4d3b9344ace2b", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "Power", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 535.9998779296875, + "y": 2795.999755859375, + "width": 208.0, + "height": 302.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "b69dfb2e5f3f43769e873beb07930851" + }, + { + "m_Id": "cb9cdb8da8df4228b89f9876659dde32" + }, + { + "m_Id": "5b09e5f68bc645e0bff7757bf7e2671a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "3b353dba8108458a9f84c51d7f9dec98", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2918.0, + "y": 1805.9998779296875, + "width": 56.0, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "87a43a598b104b999f062e5711d4f84a" + }, + { + "m_Id": "e3b9a6c51c5947d792f74a13b23a56ce" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3bc5a5ae0aed4561953422a4495abe1c", + "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.OneMinusNode", + "m_ObjectId": "3c2e218a9b394d1a8665e34d3833ccf9", + "m_Group": { + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" + }, + "m_Name": "One Minus", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4158.00048828125, + "y": 1407.0, + "width": 128.0, + "height": 94.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "c29d072543674753aa86290f357486aa" + }, + { + "m_Id": "c48600ee361247ebb06f812c47a62257" + } + ], + "synonyms": [ + "complement", + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "3d508c43ff324906a4c0dc3c31b3a6b9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1703.9998779296875, + "y": 1373.9998779296875, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "0798fd74bcca48ccadb036bdf9c9662b" + }, + { + "m_Id": "ebbea2a461da4e6db6216f33e9e58be9" + }, + { + "m_Id": "30e404c7898c4a94971734e15c5dc3fa" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3fa46f7df4bf48a5a382c5f2a15a6fe4", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "42ef9c7eb4d94874a1e4af41d0f74119", + "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": "d9657fbdbcca4356ac7e53f17a4759fc" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "450bb566389b4e83b26cac613a25cb16", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1526.0, + "y": 1766.0, + "width": 208.0, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "f81ae6f577a24e20b6d9613b02d982d6" + }, + { + "m_Id": "ce06eebab4794af39ee025107d22a1a9" + }, + { + "m_Id": "c10a784d6b874c55bd5b4c7e1cdafd9f" + }, + { + "m_Id": "cbded2fb1d6e496bb153861186a52af5" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4586fce2a67a4ca3a65a83e351f87daa", + "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.Vector1MaterialSlot", + "m_ObjectId": "4796157c997441cfade084438337f1b3", + "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": "4a380eace7a44005aa780597e6a06a39", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4a5ba4f97ffe4307a441e7c66690f00f", + "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": "676d0d64973e49c096309b4b15442513" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "4a8137effa68458993d7c05c980949d9", + "m_Id": 0, + "m_DisplayName": "SkyColorDay", + "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": "4b5d1c82485d4ffc9abea92052f23255", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4c38ca8c104b495686bef633e1d99784", + "m_Id": 1, + "m_DisplayName": "Edge2", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge2", + "m_StageCapability": 3, + "m_Value": { + "x": 1.5, + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "4d02759dd45844169793d8bfba647320", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1Node", + "m_ObjectId": "4d7b05e8a339482894c78a4e07ec1832", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Float", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1303.0001220703125, + "y": 2035.0, + "width": 125.9998779296875, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "570359f17e1649d4a19622d5676fe2d9" + }, + { + "m_Id": "6a5134c2f711405dab2b38d398827161" + } + ], + "synonyms": [ + "Vector 1", + "1", + "v1", + "vec1", + "scalar" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "4fcc8ff4ecb946d6a71fb973246aec33", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3974.0, + "y": 1141.0, + "width": 56.0, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "07298023357e48dc9a4a93a749c4604f" + }, + { + "m_Id": "7a8a629fc4314286977a03f098becb64" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PowerNode", + "m_ObjectId": "5332b1a18da1472893a182fb03828316", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Power", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1390.0, + "y": 2251.0, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "896b89c100ca43eb8f14fdde0fd7014d" + }, + { + "m_Id": "75b1e337ebda42af8ab45da19e86530b" + }, + { + "m_Id": "17b83ce1427944e4a03a794f1d13d5db" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "53cab639b17f43dc8a719d6b9a099c6e", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "550725f3dfde4d9195d600bf692a538a", + "m_Id": 2, + "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.PropertyNode", + "m_ObjectId": "55fb8f2f32e043498414b142170a47e2", + "m_Group": { + "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -98.85687255859375, + "y": 1192.365966796875, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "4a8137effa68458993d7c05c980949d9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "30e79906ea6441908ae44a2131f6b416" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "570359f17e1649d4a19622d5676fe2d9", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.5, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "57bc39587a39478fa7f0f4619bb779eb", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.AddNode", + "m_ObjectId": "5841947ab56e46fcb828bf9adb4eb5ca", + "m_Group": { + "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 137.99998474121095, + "y": 1059.9998779296875, + "width": 208.00001525878907, + "height": 302.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "13c87fcb39244a1f9a4650b8c89f8286" + }, + { + "m_Id": "951b060485b04bf8b186573c1a23807f" + }, + { + "m_Id": "f87108fa5ebf401eb437ad00c625d456" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5982303d3f9440e197aec2e2851aea4f", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "5b09e5f68bc645e0bff7757bf7e2671a", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5c9ed6e1f27b4101b721226574f86b2c", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "5d2d0c0264214fae9e0e5cd398a198e6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 345.9999694824219, + "y": 1328.0, + "width": 153.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "79fd98df3c6d4b60b30f749d7370aef8" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "a45650180b1242c8a03fd3167872c7bc" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5d79ed7fc3bb48b4a37ae0ae9513dfb3", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SmoothstepNode", + "m_ObjectId": "5dd5e072c94d4d369d0aefcfbbc5de0a", + "m_Group": { + "m_Id": "6d0527dd58f348658146e0b5aa2b15a1" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -189.99993896484376, + "y": 2023.9998779296875, + "width": 207.99990844726563, + "height": 326.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "a09fd48c709d4ddea1df9ab85ea08fef" + }, + { + "m_Id": "1bec2e8b244a41a99171cb04e44d3bfa" + }, + { + "m_Id": "26e1e6b2e2e44bc7b4d797d12fdaa2eb" + }, + { + "m_Id": "083e44e7effc4d17b52c33b1423c4dc2" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5ea72a494ede46d7ae68ecd450ce48d5", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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": "5f07d0723e6343639140cf57f42e8b9c", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5fdd37d88d294624ad8bf1d555a052a3", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "63b40c2b916946a88636613c8d8b928c", + "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": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "64ebda2ed66d4ba583e03df9fb6a0249", + "m_ActiveSubTarget": { + "m_Id": "80de83d9ba3c4a558d480896bde0aec1" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 0, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "66dc28a17629436a95f88b07e116b28c", + "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.NormalMaterialSlot", + "m_ObjectId": "676d0d64973e49c096309b4b15442513", + "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.SubtractNode", + "m_ObjectId": "6774e13c03b04b819758892fbcd5f5cd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1421.9998779296875, + "y": 1373.9998779296875, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "dbcaca88625d43059aca5448adfff045" + }, + { + "m_Id": "5c9ed6e1f27b4101b721226574f86b2c" + }, + { + "m_Id": "af0f1a69ca234a26a8c07cb726b6b24d" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "68405e4f35444c25af41e4e08e57b665", + "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.GroupData", + "m_ObjectId": "6958154701694f7daab2bd60fbc56d55", + "m_Title": "SunHeightBlend", + "m_Position": { + "x": 10.0, + "y": 10.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ClampNode", + "m_ObjectId": "6a444a0c97594f62a601ef43b46ba774", + "m_Group": { + "m_Id": "94407e1f19b14a1a996944a188a10ee3" + }, + "m_Name": "Clamp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1004.0, + "y": 830.9998779296875, + "width": 208.00006103515626, + "height": 326.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "3551c64f347b4783bdfd2531197aaf6d" + }, + { + "m_Id": "1f1a75dd719343858394bcb17caf8c73" + }, + { + "m_Id": "f3c39a057d1c432eb83758fb1e16bc18" + }, + { + "m_Id": "8c7c9f7a08424545b781a1a4b2dbdf64" + } + ], + "synonyms": [ + "limit" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6a5134c2f711405dab2b38d398827161", + "m_Id": 0, + "m_DisplayName": "Out", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "6acd22c42a4a406eb8d5a60bff85693e", + "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.Vector3MaterialSlot", + "m_ObjectId": "6c3f5b272f7343aba9af8ac57e754de1", + "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 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "6d0527dd58f348658146e0b5aa2b15a1", + "m_Title": "SunsetBlend", + "m_Position": { + "x": -851.0, + "y": 1965.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "6f30d030cef9473bbe6c4a35c22d2831", + "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.TangentMaterialSlot", + "m_ObjectId": "6ffbc3ea7801433e8893e7207731bfd9", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "7052f031ebc242c59fadac18f3a0fde6", + "m_Id": 2, + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "71a2aa0a35c045f8ae72e67ddf3e95d4", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0005000000237487257, + "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.SaturateNode", + "m_ObjectId": "75ae370dfc5442b9965ce0be1a57177c", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "Saturate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 779.0, + "y": 2702.999755859375, + "width": 207.99981689453126, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "3bc5a5ae0aed4561953422a4495abe1c" + }, + { + "m_Id": "13c98e83e7d547d4a1642a055cb6bc02" + } + ], + "synonyms": [ + "clamp" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "75b1e337ebda42af8ab45da19e86530b", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 4.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7686ec91615744789dbfcc1329dc1a1c", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.5, + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "773263d17ce84bf98e3c8d2ed1790583", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "77fcc5470e13451ea970c427cb436929", + "m_Id": 1, + "m_DisplayName": "Edge2", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge2", + "m_StageCapability": 3, + "m_Value": { + "x": 0.699999988079071, + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "79299e4730c24eed80660395568ec34d", + "m_Id": 2, + "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": "79fd98df3c6d4b60b30f749d7370aef8", + "m_Id": 0, + "m_DisplayName": "SkyColorNight", + "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": "7a8a629fc4314286977a03f098becb64", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "7e79d2747a89426bb27925effb86cee1", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "7f6235de63494758b86d13bfc5b1b5a5", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "80357fa7533e4a1ea965d9690ca048ae", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "80a9c9cda89d4d7f8dd5af6a402315ba", + "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.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "80de83d9ba3c4a558d480896bde0aec1" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "83f0aa652b4c4f59b937cf94417a1662", + "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": "87a43a598b104b999f062e5711d4f84a", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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": "885e173348364ba79b88d517358af740", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ColorNode", + "m_ObjectId": "88d58134e77840a191beb1b23517fdc0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Color", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2344.0, + "y": 1883.0, + "width": 208.0, + "height": 127.0 + } + }, + "m_Slots": [ + { + "m_Id": "89cd171e544a4584a0bae8087464da56" + } + ], + "synonyms": [ + "rgba" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Color": { + "color": { + "r": 1.0, + "g": 0.5, + "b": 0.0, + "a": 1.0 + }, + "mode": 0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "896b89c100ca43eb8f14fdde0fd7014d", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "89cd171e544a4584a0bae8087464da56", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8a97ac44c0ef45ec9ca58adcae444f79", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8b653a71425f46ce99bc1f15ce6ac1c7", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8c7c9f7a08424545b781a1a4b2dbdf64", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "8cd490d06dad4139ba92328feb90b93b", + "m_Id": 1, + "m_DisplayName": "Edge2", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge2", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "8cf36ead86e648959d85f91c87416c33", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "8db84c60223c43a8bab677abd8a95656", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "8fd1551e91694f24ae28e95fd5c04f5c", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "91bcff693cd047d483853201806776cf", + "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, + "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": "93afb4a6617e409e9105e96aa1d3d8f8", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ClampNode", + "m_ObjectId": "9405071930e94f5b8dfcf49cdfc258c0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Clamp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4432.0, + "y": 1936.9998779296875, + "width": 144.0, + "height": 142.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "e797e1988d4a48cb9568952653481462" + }, + { + "m_Id": "95560fa6d2dc42a49d846fcd571e6226" + }, + { + "m_Id": "d8c1571ceb1f426b9d031ab19af811c6" + }, + { + "m_Id": "6f30d030cef9473bbe6c4a35c22d2831" + } + ], + "synonyms": [ + "limit" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "94407e1f19b14a1a996944a188a10ee3", + "m_Title": "SunDot", + "m_Position": { + "x": -2056.0, + "y": 710.999755859375 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "951b060485b04bf8b186573c1a23807f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "95560fa6d2dc42a49d846fcd571e6226", + "m_Id": 1, + "m_DisplayName": "Min", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Min", + "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.NormalizeNode", + "m_ObjectId": "9b1d8761b5ff4474b852ceea23cedfb3", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "Normalize", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -474.0, + "y": 2721.999755859375, + "width": 207.99996948242188, + "height": 278.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "4586fce2a67a4ca3a65a83e351f87daa" + }, + { + "m_Id": "773263d17ce84bf98e3c8d2ed1790583" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "9c87366acc95483ca5af43cc597424e9", + "m_Guid": { + "m_GuidSerialized": "f3984461-e7e2-43d2-b60e-05f7e1acae0f" + }, + "m_Name": "GroundSpaceBlend", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "GroundSpaceBlend", + "m_DefaultReferenceName": "_GroundSpaceBlend", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": false, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalizeNode", + "m_ObjectId": "9c8d0bd7527b4712afed4f3a54599789", + "m_Group": { + "m_Id": "94407e1f19b14a1a996944a188a10ee3" + }, + "m_Name": "Normalize", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1776.9998779296875, + "y": 769.9998168945313, + "width": 208.0, + "height": 278.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "0fb1857903f14d9da91d956284a30116" + }, + { + "m_Id": "146a87efb89743eb96226210a9cfe892" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9eb595283caa4353aae788c7ed7a4df8", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.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": "9eecd7189e5e42018384296151138864", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "a09fd48c709d4ddea1df9ab85ea08fef", + "m_Id": 0, + "m_DisplayName": "Edge1", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge1", + "m_StageCapability": 3, + "m_Value": { + "x": 0.6000000238418579, + "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.DynamicValueMaterialSlot", + "m_ObjectId": "a2661984be4a43b495bed35c5a0e8f10", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.5, + "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.GroupData", + "m_ObjectId": "a26777f05d0b4fbcb91f246f6d79d767", + "m_Title": "SunDisk", + "m_Position": { + "x": 3826.00048828125, + "y": 1231.00048828125 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "a45650180b1242c8a03fd3167872c7bc", + "m_Guid": { + "m_GuidSerialized": "67807f20-035c-4729-bdf4-2d57f42878ae" + }, + "m_Name": "SkyColorNight", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "SkyColorNight", + "m_DefaultReferenceName": "_SkyColorNight", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.01600000075995922, + "g": 0.01600000075995922, + "b": 0.10000000149011612, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AbsoluteNode", + "m_ObjectId": "a5e80011e0034edbb539fb6adb19891d", + "m_Group": { + "m_Id": "6d0527dd58f348658146e0b5aa2b15a1" + }, + "m_Name": "Absolute", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -825.9999389648438, + "y": 2039.9998779296875, + "width": 208.0, + "height": 278.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "f8abfab34dd5436689d337993400c3fb" + }, + { + "m_Id": "91bcff693cd047d483853201806776cf" + } + ], + "synonyms": [ + "positive" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a9daa7142a61483aa598533107fb3a4d", + "m_Id": 0, + "m_DisplayName": "SunRadius", + "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.MultiplyNode", + "m_ObjectId": "ac869a26dd2b4370a15cacf2657d301d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2276.0, + "y": 1373.9998779296875, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "6acd22c42a4a406eb8d5a60bff85693e" + }, + { + "m_Id": "bdadd14d38044f1a8f1911de3ef6779d" + }, + { + "m_Id": "aebcf8c0077a47249cdcff557f4581b4" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "acff244567df447fb2d8016052092ea2", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "aebcf8c0077a47249cdcff557f4581b4", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "af0f1a69ca234a26a8c07cb726b6b24d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ViewDirectionNode", + "m_ObjectId": "af2bd5853b48436a8b43a2508f3387d2", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "View Direction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -738.0, + "y": 2701.0, + "width": 207.99993896484376, + "height": 314.999755859375 + } + }, + "m_Slots": [ + { + "m_Id": "1d3e959ae85d4d368c19576dcc2c899a" + } + ], + "synonyms": [ + "eye direction" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 2 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "aff3db42745b459c9bca73bfea0afd9a", + "m_Title": "Sun Bloom", + "m_Position": { + "x": 10.0, + "y": 10.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b11026cb09e643dd8fe0cd6981282499", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SmoothstepNode", + "m_ObjectId": "b1120c2e1d5e4915b22a1ad5fa1d1f33", + "m_Group": { + "m_Id": "6958154701694f7daab2bd60fbc56d55" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -158.00003051757813, + "y": 1485.9998779296875, + "width": 207.99996948242188, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "35549a319b234ce680f0bca49603eae9" + }, + { + "m_Id": "77fcc5470e13451ea970c427cb436929" + }, + { + "m_Id": "79299e4730c24eed80660395568ec34d" + }, + { + "m_Id": "0c9469d38f3c44c5b1122c0982dc6e68" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "b1410891b6654c5eaefff0d5ca051303", + "m_Title": "HorizonBlend", + "m_Position": { + "x": -763.0, + "y": 2642.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DotProductNode", + "m_ObjectId": "b1c5c45320d44e1596698124b8f1ab1b", + "m_Group": { + "m_Id": "94407e1f19b14a1a996944a188a10ee3" + }, + "m_Name": "Dot Product", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1358.9998779296875, + "y": 830.9998779296875, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "f483e98a7d6e4667a01f0c4b7bcb8754" + }, + { + "m_Id": "2d2140e754ca40e5b8d7a099d40f7529" + }, + { + "m_Id": "fc41f56a623d49a1ad7a8a8152cac5e9" + } + ], + "synonyms": [ + "scalar product" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b24172b4c5954e539498150a270d8938", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.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.DynamicVectorMaterialSlot", + "m_ObjectId": "b3cf14d7b9c14a75a375a5253173c1bc", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b60ec09ff6c74ea6ae800611a0dbcb7b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b69dfb2e5f3f43769e873beb07930851", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b6f1a2995cd44cf4932b8cb7eef34fc8", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "b9c81e6079134b8b89117124411c5b3b", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "bc6470befcb64e698c11e9dfa3bf13ec", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "bd2dec51933f4bb4a099b51209b87beb", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "bdadd14d38044f1a8f1911de3ef6779d", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.5, + "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.AddNode", + "m_ObjectId": "be435aa746fd46769840b44dde02bedb", + "m_Group": { + "m_Id": "6958154701694f7daab2bd60fbc56d55" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -893.0, + "y": 1536.9998779296875, + "width": 208.0, + "height": 302.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "b3cf14d7b9c14a75a375a5253173c1bc" + }, + { + "m_Id": "b24172b4c5954e539498150a270d8938" + }, + { + "m_Id": "8a97ac44c0ef45ec9ca58adcae444f79" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c10a784d6b874c55bd5b4c7e1cdafd9f", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "c274b91ae8ff4ac49454a3afbdc92a32", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c29d072543674753aa86290f357486aa", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "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.AddNode", + "m_ObjectId": "c2de12f9036943a09fe9a0a6eb293f9c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4046.0, + "y": 1936.9998779296875, + "width": 130.0, + "height": 118.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "c274b91ae8ff4ac49454a3afbdc92a32" + }, + { + "m_Id": "1d9418870ab94bb3a4814aa0e27bca50" + }, + { + "m_Id": "fb1ef5d885554ccbbbe9e29826407814" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c48600ee361247ebb06f812c47a62257", + "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, + "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": "c6cc3b01e1e0402d9d6f7d19ca7ffaeb", + "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.SplitNode", + "m_ObjectId": "c79e696727d849b9927d959121146936", + "m_Group": { + "m_Id": "6958154701694f7daab2bd60fbc56d55" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1118.0, + "y": 1656.0, + "width": 120.0, + "height": 149.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "80a9c9cda89d4d7f8dd5af6a402315ba" + }, + { + "m_Id": "9eecd7189e5e42018384296151138864" + }, + { + "m_Id": "061b8029d19f4ab5bb7813be53259e0e" + }, + { + "m_Id": "66dc28a17629436a95f88b07e116b28c" + }, + { + "m_Id": "83f0aa652b4c4f59b937cf94417a1662" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c901bc9ee5514dbcb8d52e24ce7db92a", + "m_Group": { + "m_Id": "94407e1f19b14a1a996944a188a10ee3" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1702.9998779296875, + "y": 1073.9998779296875, + "width": 134.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "0c9de6d0dcea463096006add3179299e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "23f2a437e8fe463481157b52cf70130e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c92521bba2be4a278acba0fa31ac8454", + "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.SmoothstepNode", + "m_ObjectId": "cab46846fe6a46a6a7a71ee564e19a8c", + "m_Group": { + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4604.00048828125, + "y": 1349.0001220703125, + "width": 208.0, + "height": 325.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "df3ffdbd09644eeb8d49277868eb68f8" + }, + { + "m_Id": "8cd490d06dad4139ba92328feb90b93b" + }, + { + "m_Id": "550725f3dfde4d9195d600bf692a538a" + }, + { + "m_Id": "cfd4b5fd32b64d40a0bd7e4940764d7b" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cabf61252b1c4648a359aa6e4444e7f4", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "cb9425794dbc46cdb8c3c7f9fb077a88", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1988.9998779296875, + "y": 1373.9998779296875, + "width": 208.0001220703125, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "4d02759dd45844169793d8bfba647320" + }, + { + "m_Id": "9eb595283caa4353aae788c7ed7a4df8" + }, + { + "m_Id": "31013c194dd446b793d7fb3825afa730" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cb9cdb8da8df4228b89f9876659dde32", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cbded2fb1d6e496bb153861186a52af5", + "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.Vector1Node", + "m_ObjectId": "cc0bef66e0ef4c2faf7aed3e7b113618", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Float", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3574.0, + "y": 2010.9998779296875, + "width": 125.999755859375, + "height": 77.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "5fdd37d88d294624ad8bf1d555a052a3" + }, + { + "m_Id": "885e173348364ba79b88d517358af740" + } + ], + "synonyms": [ + "Vector 1", + "1", + "v1", + "vec1", + "scalar" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ce06eebab4794af39ee025107d22a1a9", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "cf120a5737fc4e4ba2a9b9c448f95b93", + "m_Group": { + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4002.00048828125, + "y": 1407.0, + "width": 126.0, + "height": 118.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "68405e4f35444c25af41e4e08e57b665" + }, + { + "m_Id": "bc6470befcb64e698c11e9dfa3bf13ec" + }, + { + "m_Id": "53cab639b17f43dc8a719d6b9a099c6e" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cfd4b5fd32b64d40a0bd7e4940764d7b", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "d1e59438019b49daac53ec0ebe1a49ee", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "d2867680e09645c0bc82c8acccd21938", + "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.OneMinusNode", + "m_ObjectId": "d6d80edd3de343738c14078e891454fb", + "m_Group": { + "m_Id": "6d0527dd58f348658146e0b5aa2b15a1" + }, + "m_Name": "One Minus", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -552.9999389648438, + "y": 2039.9998779296875, + "width": 207.99996948242188, + "height": 278.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "f6a16da930284dd8af8dfdb5a097fde4" + }, + { + "m_Id": "f7f320f5ea1c42098878dca1507f07d4" + } + ], + "synonyms": [ + "complement", + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d8c1571ceb1f426b9d031ab19af811c6", + "m_Id": 2, + "m_DisplayName": "Max", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Max", + "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.PositionMaterialSlot", + "m_ObjectId": "d9657fbdbcca4356ac7e53f17a4759fc", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "dbcaca88625d43059aca5448adfff045", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "dd9bf24403cf4394b717087205167be0", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "df3ffdbd09644eeb8d49277868eb68f8", + "m_Id": 0, + "m_DisplayName": "Edge1", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge1", + "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": "df6909f271814d2aac0da245d4ececb5", + "m_Group": { + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3851.000244140625, + "y": 1465.0001220703125, + "width": 130.0, + "height": 33.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "a9daa7142a61483aa598533107fb3a4d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f2454f526ae94cb99b61f8af8a27da52" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "e00ea24d00c34a48aeb82f5ab67d02ba", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2476.0, + "y": 1805.9998779296875, + "width": 56.0, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "e245d76aaba34c74a0c433993c19b2bd" + }, + { + "m_Id": "7f6235de63494758b86d13bfc5b1b5a5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e0abb38dab864509bd8e163c5e913489", + "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": "fa4ad49d107b4e8aba005b32f866f71b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e1c43210f1b048298f4c4b8b58ccd24d", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "e245d76aaba34c74a0c433993c19b2bd", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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": "e305f3381a294d61b95c843f40a8343a", + "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": "6ffbc3ea7801433e8893e7207731bfd9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e3b86c6d3ad7497992b04f9e10f1ad16", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "e3b9a6c51c5947d792f74a13b23a56ce", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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": "e3cb5f61649c464085d51543bad13e51", + "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.Vector4MaterialSlot", + "m_ObjectId": "e759a50fb6604e08be6c42013b1a1bb4", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e797e1988d4a48cb9568952653481462", + "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.RedirectNodeData", + "m_ObjectId": "e8c864d9f58c447cac3482a9e55d5ac0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3058.0, + "y": 1277.9998779296875, + "width": 55.999755859375, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "1817b52679ae401cb4b3d2e4317c48d5" + }, + { + "m_Id": "8db84c60223c43a8bab677abd8a95656" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ebbea2a461da4e6db6216f33e9e58be9", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ed40cee77cad43b68d078c7de3f35e7e", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "f03949c18a614c618ee21a6d993ba9a3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 541.0000610351563, + "y": 1272.0, + "width": 207.9998779296875, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "1b0e5ed5fe9e46259e237fbe7d406e6d" + }, + { + "m_Id": "cabf61252b1c4648a359aa6e4444e7f4" + }, + { + "m_Id": "13ac8c8f7d564e6cbbaefa7879b92392" + }, + { + "m_Id": "e3b86c6d3ad7497992b04f9e10f1ad16" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "f1f9a8faddd24f88b9235cfd9f3d4763", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -224.00001525878907, + "y": 2721.999755859375, + "width": 119.99996948242188, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "333e81ef74f94e3a95782344c63b7fe9" + }, + { + "m_Id": "e3cb5f61649c464085d51543bad13e51" + }, + { + "m_Id": "c6cc3b01e1e0402d9d6f7d19ca7ffaeb" + }, + { + "m_Id": "5f07d0723e6343639140cf57f42e8b9c" + }, + { + "m_Id": "4796157c997441cfade084438337f1b3" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "f2454f526ae94cb99b61f8af8a27da52", + "m_Guid": { + "m_GuidSerialized": "18c4621d-3212-405f-8a3f-ba2520223c5b" + }, + "m_Name": "SunRadius", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "SunRadius", + "m_DefaultReferenceName": "_SunRadius", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.009999999776482582, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 0.5 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f3c39a057d1c432eb83758fb1e16bc18", + "m_Id": 2, + "m_DisplayName": "Max", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Max", + "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.SmoothstepNode", + "m_ObjectId": "f431618d29874d2e9ed445d6e21caabe", + "m_Group": { + "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -471.0, + "y": 1036.0, + "width": 208.0, + "height": 325.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "31bdf0cda06241338f93d2928bdd1f38" + }, + { + "m_Id": "4c38ca8c104b495686bef633e1d99784" + }, + { + "m_Id": "7052f031ebc242c59fadac18f3a0fde6" + }, + { + "m_Id": "c92521bba2be4a278acba0fa31ac8454" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f483e98a7d6e4667a01f0c4b7bcb8754", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "f49ec666afe14c929decc77b4aa064a5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2656.0, + "y": 1829.9998779296875, + "width": 208.0, + "height": 325.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "4a380eace7a44005aa780597e6a06a39" + }, + { + "m_Id": "8fd1551e91694f24ae28e95fd5c04f5c" + }, + { + "m_Id": "acff244567df447fb2d8016052092ea2" + }, + { + "m_Id": "d2867680e09645c0bc82c8acccd21938" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f6a16da930284dd8af8dfdb5a097fde4", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "f7f320f5ea1c42098878dca1507f07d4", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f81ae6f577a24e20b6d9613b02d982d6", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.OneMinusNode", + "m_ObjectId": "f8693afbb09e49f884782595a0c3c93a", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "One Minus", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 238.99998474121095, + "y": 2795.999755859375, + "width": 208.00001525878907, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "011f3a78ebc84703a61691c0a6374a92" + }, + { + "m_Id": "b9c81e6079134b8b89117124411c5b3b" + } + ], + "synonyms": [ + "complement", + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f87108fa5ebf401eb437ad00c625d456", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f8abfab34dd5436689d337993400c3fb", + "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.PropertyNode", + "m_ObjectId": "f8f2ec45de05456dad0ffc0289c13fc2", + "m_Group": { + "m_Id": "6958154701694f7daab2bd60fbc56d55" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1282.0001220703125, + "y": 1695.0001220703125, + "width": 134.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "028f1dcc203f4768a28db4709b50dedc" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "23f2a437e8fe463481157b52cf70130e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "f9fcd77d22bf49698574a97ebeb38c87", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3196.0, + "y": 2681.999755859375, + "width": 55.999755859375, + "height": 24.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "80357fa7533e4a1ea965d9690ca048ae" + }, + { + "m_Id": "5ea72a494ede46d7ae68ecd450ce48d5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "fa4ad49d107b4e8aba005b32f866f71b", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "fb1ef5d885554ccbbbe9e29826407814", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "fc41f56a623d49a1ad7a8a8152cac5e9", + "m_Id": 2, + "m_DisplayName": "Out", + "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.LerpNode", + "m_ObjectId": "ff01cfb737d745dc9cc49d1ee537942d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3100.999755859375, + "y": 1883.0, + "width": 208.000244140625, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "7e79d2747a89426bb27925effb86cee1" + }, + { + "m_Id": "ed40cee77cad43b68d078c7de3f35e7e" + }, + { + "m_Id": "bd2dec51933f4bb4a099b51209b87beb" + }, + { + "m_Id": "b6f1a2995cd44cf4932b8cb7eef34fc8" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph.meta b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph.meta new file mode 100644 index 00000000..1693a163 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 603e20526edf4634eb41da80349cc5e6 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat b/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat new file mode 100644 index 00000000..263d4f7c --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat @@ -0,0 +1,58 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-1505964358057005809 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 5 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: CesiumSkyShaderGraph + m_Shader: {fileID: -6465566751694194690, guid: 603e20526edf4634eb41da80349cc5e6, + type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _QueueControl: 0 + - _QueueOffset: 0 + - _SunRadius: 0.02 + m_Colors: + - _SkyColorDay: {r: 0.32999998, g: 0.59, b: 0.83, a: 1} + - _SkyColorNight: {r: 0.016, g: 0.016, b: 0.09999997, a: 1} + - _SunDirectionSG: {r: 0.8, g: 0.25, b: 0.25, a: 0} + m_BuildTextureStacks: [] diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat.meta b/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat.meta new file mode 100644 index 00000000..74cfe8a6 --- /dev/null +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9da00f12199023549a0c89515e95c8a0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: From 6c5a356c15f45dd8c04fefcbb654e7efe2e8ae42 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Tue, 31 Jan 2023 17:27:26 -0500 Subject: [PATCH 14/18] add atmosphere blend for shadergraph shader --- Runtime/CesiumSkyController.cs | 3 +- ...CesiumDynamicSkyboxShaderGraph.shadergraph | 3399 ++++++++++++----- 2 files changed, 2379 insertions(+), 1023 deletions(-) diff --git a/Runtime/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs index 9d6d30f0..637a87e9 100644 --- a/Runtime/CesiumSkyController.cs +++ b/Runtime/CesiumSkyController.cs @@ -227,7 +227,7 @@ public void SetSunPosition() if (_sunLight != null) { _sunLight.transform.localEulerAngles = newSunRotation; - Shader.SetGlobalVector("_SunDirectionSG", -_sunLight.transform.forward); + Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); } } @@ -289,7 +289,6 @@ void LateUpdate() { UpdateSky(); } - } } diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph index 45dc4879..a8f739a2 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph @@ -111,24 +111,6 @@ { "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" }, - { - "m_Id": "f03949c18a614c618ee21a6d993ba9a3" - }, - { - "m_Id": "55fb8f2f32e043498414b142170a47e2" - }, - { - "m_Id": "5d2d0c0264214fae9e0e5cd398a198e6" - }, - { - "m_Id": "450bb566389b4e83b26cac613a25cb16" - }, - { - "m_Id": "0e11b8be7dda47118c59f4291babdda8" - }, - { - "m_Id": "111fa6a87ec246ffa300d61fe4225645" - }, { "m_Id": "f49ec666afe14c929decc77b4aa064a5" }, @@ -162,27 +144,15 @@ { "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" }, - { - "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" - }, { "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" }, - { - "m_Id": "cc0bef66e0ef4c2faf7aed3e7b113618" - }, { "m_Id": "f431618d29874d2e9ed445d6e21caabe" }, - { - "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" - }, { "m_Id": "2875b112c7d54014b2a1e1e5d5444a64" }, - { - "m_Id": "4d7b05e8a339482894c78a4e07ec1832" - }, { "m_Id": "10b9de8100374965b0454160207f02bc" }, @@ -200,6 +170,57 @@ }, { "m_Id": "f9fcd77d22bf49698574a97ebeb38c87" + }, + { + "m_Id": "36e95b4259934301871c554034cff6e9" + }, + { + "m_Id": "11f996cb295745f690632c6b81ee1799" + }, + { + "m_Id": "0655bdf71b7f4cce9bd98c0f659dc8d9" + }, + { + "m_Id": "c235c3639d9849ad94ff14b119b921b1" + }, + { + "m_Id": "75fa868fae71478088a0f08012d22fa1" + }, + { + "m_Id": "57c10ad3c3104eb6ba73cc18949fa182" + }, + { + "m_Id": "9d952d991a9e46f6af3444cf6d90f7d4" + }, + { + "m_Id": "15c7a9d9e46c4eeeb73360fcffea4d1a" + }, + { + "m_Id": "f1b0665b813a45beb9656c8ffde16484" + }, + { + "m_Id": "0f73cb508a7e4f0983f82c4d0e7779ac" + }, + { + "m_Id": "86a458cf882b457784280261c9e122ed" + }, + { + "m_Id": "39e911161caf47cdbdb52949d4bc6c44" + }, + { + "m_Id": "8eceb77de4784c9390007f18fe7110cf" + }, + { + "m_Id": "6fbcc8f18295479f970dc12dffe8a15a" + }, + { + "m_Id": "6f2a947e6c5f46b196488ffc08358bde" + }, + { + "m_Id": "857d6eda89024e14944a152b4d0cf1dc" + }, + { + "m_Id": "d77641d3056442339bd6b943c453346d" } ], "m_GroupDatas": [ @@ -220,6 +241,12 @@ }, { "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + }, + { + "m_Id": "4927a7900b42462abcc3017f64a1ca7e" + }, + { + "m_Id": "5cfde08222554261b7da011b0a5cc689" } ], "m_StickyNoteDatas": [], @@ -238,6 +265,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0655bdf71b7f4cce9bd98c0f659dc8d9" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e8c864d9f58c447cac3482a9e55d5ac0" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -247,23 +288,23 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "0e11b8be7dda47118c59f4291babdda8" + "m_Id": "0f73cb508a7e4f0983f82c4d0e7779ac" }, - "m_SlotId": 0 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "450bb566389b4e83b26cac613a25cb16" + "m_Id": "f1b0665b813a45beb9656c8ffde16484" }, - "m_SlotId": 0 + "m_SlotId": 1 } }, { @@ -297,15 +338,15 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "111fa6a87ec246ffa300d61fe4225645" + "m_Id": "11f996cb295745f690632c6b81ee1799" }, - "m_SlotId": 0 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "450bb566389b4e83b26cac613a25cb16" + "m_Id": "0655bdf71b7f4cce9bd98c0f659dc8d9" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { @@ -322,6 +363,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "15c7a9d9e46c4eeeb73360fcffea4d1a" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "86a458cf882b457784280261c9e122ed" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -331,7 +386,7 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + "m_Id": "15c7a9d9e46c4eeeb73360fcffea4d1a" }, "m_SlotId": 1 } @@ -350,6 +405,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "39e911161caf47cdbdb52949d4bc6c44" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -367,13 +436,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "37c67b58086d4649a519fff753ec256b" + "m_Id": "36e95b4259934301871c554034cff6e9" }, - "m_SlotId": 1 + "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "f8693afbb09e49f884782595a0c3c93a" + "m_Id": "11f996cb295745f690632c6b81ee1799" }, "m_SlotId": 0 } @@ -381,13 +450,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "397c0be744ba4f58a5f4d3b9344ace2b" + "m_Id": "37c67b58086d4649a519fff753ec256b" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "75ae370dfc5442b9965ce0be1a57177c" + "m_Id": "f8693afbb09e49f884782595a0c3c93a" }, "m_SlotId": 0 } @@ -395,13 +464,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "3b353dba8108458a9f84c51d7f9dec98" + "m_Id": "397c0be744ba4f58a5f4d3b9344ace2b" }, - "m_SlotId": 1 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + "m_Id": "75ae370dfc5442b9965ce0be1a57177c" }, "m_SlotId": 0 } @@ -409,27 +478,27 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" + "m_Id": "39e911161caf47cdbdb52949d4bc6c44" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "120a9094ce2a4e43b0489fda7ee0126c" + "m_Id": "11f996cb295745f690632c6b81ee1799" }, - "m_SlotId": 0 + "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" + "m_Id": "39e911161caf47cdbdb52949d4bc6c44" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + "m_Id": "57c10ad3c3104eb6ba73cc18949fa182" }, "m_SlotId": 1 } @@ -437,13 +506,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" + "m_Id": "39e911161caf47cdbdb52949d4bc6c44" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" + "m_Id": "8eceb77de4784c9390007f18fe7110cf" }, "m_SlotId": 0 } @@ -451,13 +520,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "450bb566389b4e83b26cac613a25cb16" + "m_Id": "3b353dba8108458a9f84c51d7f9dec98" }, - "m_SlotId": 3 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "e00ea24d00c34a48aeb82f5ab67d02ba" + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" }, "m_SlotId": 0 } @@ -465,41 +534,41 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "4fcc8ff4ecb946d6a71fb973246aec33" + "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + "m_Id": "120a9094ce2a4e43b0489fda7ee0126c" }, - "m_SlotId": 2 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "5332b1a18da1472893a182fb03828316" + "m_Id": "3c2e218a9b394d1a8665e34d3833ccf9" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" }, - "m_SlotId": 2 + "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "55fb8f2f32e043498414b142170a47e2" + "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" }, - "m_SlotId": 0 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" }, "m_SlotId": 0 } @@ -507,27 +576,27 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "5841947ab56e46fcb828bf9adb4eb5ca" + "m_Id": "4fcc8ff4ecb946d6a71fb973246aec33" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" }, - "m_SlotId": 1 + "m_SlotId": 2 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "5d2d0c0264214fae9e0e5cd398a198e6" + "m_Id": "5332b1a18da1472893a182fb03828316" }, - "m_SlotId": 0 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + "m_Id": "6fbcc8f18295479f970dc12dffe8a15a" }, "m_SlotId": 0 } @@ -535,13 +604,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "5dd5e072c94d4d369d0aefcfbbc5de0a" + "m_Id": "57c10ad3c3104eb6ba73cc18949fa182" }, - "m_SlotId": 3 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" + "m_Id": "15c7a9d9e46c4eeeb73360fcffea4d1a" }, "m_SlotId": 0 } @@ -555,7 +624,7 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "5332b1a18da1472893a182fb03828316" + "m_Id": "6f2a947e6c5f46b196488ffc08358bde" }, "m_SlotId": 0 } @@ -605,13 +674,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "75ae370dfc5442b9965ce0be1a57177c" + "m_Id": "6f2a947e6c5f46b196488ffc08358bde" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "f9fcd77d22bf49698574a97ebeb38c87" + "m_Id": "3d508c43ff324906a4c0dc3c31b3a6b9" }, "m_SlotId": 0 } @@ -619,41 +688,41 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "88d58134e77840a191beb1b23517fdc0" + "m_Id": "6f2a947e6c5f46b196488ffc08358bde" }, - "m_SlotId": 0 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "f49ec666afe14c929decc77b4aa064a5" + "m_Id": "5332b1a18da1472893a182fb03828316" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" + "m_Id": "6fbcc8f18295479f970dc12dffe8a15a" }, - "m_SlotId": 3 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "2f35b4983aaa489b90491c5c303caae7" + "m_Id": "ff01cfb737d745dc9cc49d1ee537942d" }, - "m_SlotId": 0 + "m_SlotId": 2 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" + "m_Id": "75ae370dfc5442b9965ce0be1a57177c" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "f1f9a8faddd24f88b9235cfd9f3d4763" + "m_Id": "f9fcd77d22bf49698574a97ebeb38c87" }, "m_SlotId": 0 } @@ -661,13 +730,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "9c8d0bd7527b4712afed4f3a54599789" + "m_Id": "75fa868fae71478088a0f08012d22fa1" }, - "m_SlotId": 1 + "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + "m_Id": "c235c3639d9849ad94ff14b119b921b1" }, "m_SlotId": 0 } @@ -675,83 +744,83 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "a5e80011e0034edbb539fb6adb19891d" + "m_Id": "857d6eda89024e14944a152b4d0cf1dc" }, - "m_SlotId": 1 + "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "d6d80edd3de343738c14078e891454fb" + "m_Id": "d77641d3056442339bd6b943c453346d" }, - "m_SlotId": 0 + "m_SlotId": 2 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "ac869a26dd2b4370a15cacf2657d301d" + "m_Id": "86a458cf882b457784280261c9e122ed" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "f49ec666afe14c929decc77b4aa064a5" + "m_Id": "0f73cb508a7e4f0983f82c4d0e7779ac" }, - "m_SlotId": 2 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "af2bd5853b48436a8b43a2508f3387d2" + "m_Id": "88d58134e77840a191beb1b23517fdc0" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" + "m_Id": "f49ec666afe14c929decc77b4aa064a5" }, - "m_SlotId": 0 + "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + "m_Id": "8eceb77de4784c9390007f18fe7110cf" }, - "m_SlotId": 3 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "450bb566389b4e83b26cac613a25cb16" + "m_Id": "c235c3639d9849ad94ff14b119b921b1" }, - "m_SlotId": 2 + "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" }, "m_SlotId": 3 }, "m_InputSlot": { "m_Node": { - "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + "m_Id": "f1b0665b813a45beb9656c8ffde16484" }, - "m_SlotId": 2 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "6a444a0c97594f62a601ef43b46ba774" + "m_Id": "f1f9a8faddd24f88b9235cfd9f3d4763" }, "m_SlotId": 0 } @@ -759,13 +828,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "be435aa746fd46769840b44dde02bedb" + "m_Id": "9c8d0bd7527b4712afed4f3a54599789" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" }, "m_SlotId": 0 } @@ -773,13 +842,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + "m_Id": "9d952d991a9e46f6af3444cf6d90f7d4" }, - "m_SlotId": 2 + "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "9405071930e94f5b8dfcf49cdfc258c0" + "m_Id": "57c10ad3c3104eb6ba73cc18949fa182" }, "m_SlotId": 0 } @@ -787,13 +856,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "c79e696727d849b9927d959121146936" + "m_Id": "a5e80011e0034edbb539fb6adb19891d" }, - "m_SlotId": 2 + "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { - "m_Id": "a5e80011e0034edbb539fb6adb19891d" + "m_Id": "d6d80edd3de343738c14078e891454fb" }, "m_SlotId": 0 } @@ -801,55 +870,55 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "c79e696727d849b9927d959121146936" + "m_Id": "ac869a26dd2b4370a15cacf2657d301d" }, "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "be435aa746fd46769840b44dde02bedb" + "m_Id": "f49ec666afe14c929decc77b4aa064a5" }, - "m_SlotId": 0 + "m_SlotId": 2 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "c901bc9ee5514dbcb8d52e24ce7db92a" + "m_Id": "af2bd5853b48436a8b43a2508f3387d2" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + "m_Id": "9b1d8761b5ff4474b852ceea23cedfb3" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" }, - "m_SlotId": 3 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "2f35b4983aaa489b90491c5c303caae7" + "m_Id": "6a444a0c97594f62a601ef43b46ba774" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" + "m_Id": "be435aa746fd46769840b44dde02bedb" }, "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "ac869a26dd2b4370a15cacf2657d301d" + "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" }, "m_SlotId": 0 } @@ -857,13 +926,83 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "cc0bef66e0ef4c2faf7aed3e7b113618" + "m_Id": "c235c3639d9849ad94ff14b119b921b1" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e00ea24d00c34a48aeb82f5ab67d02ba" }, "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c79e696727d849b9927d959121146936" + }, + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" + "m_Id": "a5e80011e0034edbb539fb6adb19891d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c79e696727d849b9927d959121146936" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "be435aa746fd46769840b44dde02bedb" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c901bc9ee5514dbcb8d52e24ce7db92a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b1c5c45320d44e1596698124b8f1ab1b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cab46846fe6a46a6a7a71ee564e19a8c" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cb9425794dbc46cdb8c3c7f9fb077a88" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac869a26dd2b4370a15cacf2657d301d" }, "m_SlotId": 0 } @@ -896,6 +1035,20 @@ "m_SlotId": 2 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d77641d3056442339bd6b943c453346d" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -961,7 +1114,7 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "c2de12f9036943a09fe9a0a6eb293f9c" + "m_Id": "0cda2d6471ec4153ae5abcc7bf73c3d5" }, "m_SlotId": 0 } @@ -969,13 +1122,13 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "f03949c18a614c618ee21a6d993ba9a3" + "m_Id": "f1b0665b813a45beb9656c8ffde16484" }, - "m_SlotId": 3 + "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "e8c864d9f58c447cac3482a9e55d5ac0" + "m_Id": "d77641d3056442339bd6b943c453346d" }, "m_SlotId": 0 } @@ -1081,8 +1234,8 @@ ], "m_VertexContext": { "m_Position": { - "x": 5405.00048828125, - "y": 1568.0001220703125 + "x": 5772.0, + "y": 1067.0 }, "m_Blocks": [ { @@ -1098,8 +1251,8 @@ }, "m_FragmentContext": { "m_Position": { - "x": 5405.00048828125, - "y": 1768.0001220703125 + "x": 5772.0, + "y": 1267.0 }, "m_Blocks": [ { @@ -1210,6 +1363,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0325b7768acf4ff89b5d2834626e70e3", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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", @@ -1225,6 +1402,41 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "0655bdf71b7f4cce9bd98c0f659dc8d9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 933.7318725585938, + "y": 1310.5, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "867c6f6a436a400eb1db77ee8e8a6618" + }, + { + "m_Id": "ec39e1e107d84956ac5f9ccaa44be04f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1380,8 +1592,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 3746.999755859375, - "y": 2045.9998779296875, + "x": 3793.999755859375, + "y": 2010.9998779296875, "width": 208.0, "height": 326.0001220703125 } @@ -1414,45 +1626,61 @@ } { - "m_SGVersion": 1, - "m_Type": "UnityEditor.ShaderGraph.ColorNode", - "m_ObjectId": "0e11b8be7dda47118c59f4291babdda8", + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0d45a25532b040ca8e8c2c96ee6d2251", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.RedirectNodeData", + "m_ObjectId": "0f73cb508a7e4f0983f82c4d0e7779ac", "m_Group": { "m_Id": "" }, - "m_Name": "Color", + "m_Name": "Redirect Node", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 943.0, - "y": 1858.0, - "width": 208.0, - "height": 127.0 + "x": 2974.0, + "y": 521.0, + "width": 55.999755859375, + "height": 24.0 } }, "m_Slots": [ { - "m_Id": "e759a50fb6604e08be6c42013b1a1bb4" + "m_Id": "7b0fd3447dde45d687c922c26237b112" + }, + { + "m_Id": "0325b7768acf4ff89b5d2834626e70e3" } ], - "synonyms": [ - "rgba" - ], + "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] - }, - "m_Color": { - "color": { - "r": 0.07800000160932541, - "g": 0.09200000017881394, - "b": 0.12800000607967378, - "a": 1.0 - }, - "mode": 0 } } @@ -1480,6 +1708,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "105d108e97f04888aa3445927ebc1004", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.RedirectNodeData", @@ -1517,44 +1793,39 @@ { "m_SGVersion": 1, - "m_Type": "UnityEditor.ShaderGraph.ColorNode", - "m_ObjectId": "111fa6a87ec246ffa300d61fe4225645", + "m_Type": "UnityEditor.ShaderGraph.SampleGradient", + "m_ObjectId": "11f996cb295745f690632c6b81ee1799", "m_Group": { - "m_Id": "" + "m_Id": "5cfde08222554261b7da011b0a5cc689" }, - "m_Name": "Color", + "m_Name": "Sample Gradient", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 943.0, - "y": 1985.0, - "width": 208.0, - "height": 127.0 + "x": 650.0000610351563, + "y": 1267.0001220703125, + "width": 207.9998779296875, + "height": 302.0 } }, "m_Slots": [ { - "m_Id": "93afb4a6617e409e9105e96aa1d3d8f8" - } - ], - "synonyms": [ - "rgba" + "m_Id": "dec5f4e7125847b8b90c1cff01986c34" + }, + { + "m_Id": "d2119299fb6b460cb92b952ef2e0d9b2" + }, + { + "m_Id": "58e11786d26f4ece989d1bfcde5b9bd5" + } ], + "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] - }, - "m_Color": { - "color": { - "r": 0.5, - "g": 0.5, - "b": 0.5, - "a": 1.0 - }, - "mode": 0 } } @@ -1570,10 +1841,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4394.00048828125, - "y": 1290.0001220703125, + "x": 2601.0, + "y": 839.0000610351563, "width": 126.0, - "height": 117.9998779296875 + "height": 118.0 } }, "m_Slots": [ @@ -1652,12 +1923,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "13ac8c8f7d564e6cbbaefa7879b92392", - "m_Id": 2, - "m_DisplayName": "T", + "m_ObjectId": "131f07cc7c7e4c08b3dc9267b5780740", + "m_Id": 0, + "m_DisplayName": "A", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "T", + "m_ShaderOutputName": "A", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -1676,12 +1947,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "13c87fcb39244a1f9a4650b8c89f8286", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, + "m_ObjectId": "13c98e83e7d547d4a1642a055cb6bc02", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -1700,7 +1971,7 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "13c98e83e7d547d4a1642a055cb6bc02", + "m_ObjectId": "146a87efb89743eb96226210a9cfe892", "m_Id": 1, "m_DisplayName": "Out", "m_SlotType": 1, @@ -1724,12 +1995,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "146a87efb89743eb96226210a9cfe892", + "m_ObjectId": "156153e0a2af49f0ae78acafa5fe07d3", "m_Id": 1, - "m_DisplayName": "Out", + "m_DisplayName": "", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -1745,6 +2016,48 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "15c7a9d9e46c4eeeb73360fcffea4d1a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1137.9998779296875, + "y": 457.0, + "width": 207.9998779296875, + "height": 301.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "f9bd48b240f8457a826e88c15d0b59eb" + }, + { + "m_Id": "d0ba6546f96f46bdb93caba2d3293968" + }, + { + "m_Id": "884fd94dd6934038bd531d9e38bc82eb" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -1841,30 +2154,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "1b0e5ed5fe9e46259e237fbe7d406e6d", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1912,30 +2201,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "1d9418870ab94bb3a4814aa0e27bca50", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1971,7 +2236,7 @@ "m_DefaultRefNameVersion": 1, "m_RefNameGeneratedByDisplayName": "SunDirection", "m_DefaultReferenceName": "_SunDirection", - "m_OverrideReferenceName": "_SunDirectionSG", + "m_OverrideReferenceName": "_SunDirection", "m_GeneratePropertyBlock": false, "m_UseCustomSlotLabel": false, "m_CustomSlotLabel": "", @@ -2023,9 +2288,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -181.56259155273438, - "y": 1076.4373779296875, - "width": 208.0, + "x": 745.0, + "y": -7.999968528747559, + "width": 207.99993896484376, "height": 302.0 } }, @@ -2053,6 +2318,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2a5cd3bcb42d49e68f116688b872eefc", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2113,10 +2402,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4985.00048828125, - "y": 1617.000244140625, + "x": 5352.0, + "y": 1116.0, "width": 208.0, - "height": 301.9998779296875 + "height": 302.0 } }, "m_Slots": [ @@ -2220,6 +2509,31 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "31a900a0d93f4a9e8f0b5f5836989a09", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2358,6 +2672,72 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientNode", + "m_ObjectId": "36e95b4259934301871c554034cff6e9", + "m_Group": { + "m_Id": "5cfde08222554261b7da011b0a5cc689" + }, + "m_Name": "Gradient", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 368.9999694824219, + "y": 1251.0, + "width": 207.99996948242188, + "height": 104.0 + } + }, + "m_Slots": [ + { + "m_Id": "dfe60d474ac043278c7a68e7565907e1" + } + ], + "synonyms": [ + "ramp" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0, + "m_SerializableColorKeys": [ + { + "x": 0.005411173216998577, + "y": 0.005411173216998577, + "z": 0.018867909908294679, + "w": 0.3941252827644348 + }, + { + "x": 0.2860092520713806, + "y": 0.30845189094543459, + "z": 0.3679245114326477, + "w": 0.4470588266849518 + }, + { + "x": 0.33000001311302187, + "y": 0.5899999737739563, + "z": 0.8299999833106995, + "w": 0.7647058963775635 + } + ], + "m_SerializableAlphaKeys": [ + { + "x": 1.0, + "y": 0.0 + }, + { + "x": 1.0, + "y": 1.0 + } + ], + "m_SerializableMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.AbsoluteNode", @@ -2370,10 +2750,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -43.000083923339847, - "y": 2732.999755859375, - "width": 208.00003051757813, - "height": 278.000244140625 + "x": 2041.9998779296875, + "y": 2587.0, + "width": 208.0001220703125, + "height": 278.0 } }, "m_Slots": [ @@ -2407,10 +2787,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 535.9998779296875, - "y": 2795.999755859375, + "x": 2621.0, + "y": 2650.0, "width": 208.0, - "height": 302.000244140625 + "height": 302.0 } }, "m_Slots": [ @@ -2433,6 +2813,41 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "39e911161caf47cdbdb52949d4bc6c44", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 173.0000762939453, + "y": 1334.9998779296875, + "width": 56.00001525878906, + "height": 24.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "105d108e97f04888aa3445927ebc1004" + }, + { + "m_Id": "c991780faf0a4abd83f91a80aec1ee3f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", @@ -2504,10 +2919,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4158.00048828125, - "y": 1407.0, + "x": 2365.0, + "y": 956.0, "width": 128.0, - "height": 94.000244140625 + "height": 94.0 } }, "m_Slots": [ @@ -2633,64 +3048,19 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.LerpNode", - "m_ObjectId": "450bb566389b4e83b26cac613a25cb16", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Lerp", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 1526.0, - "y": 1766.0, - "width": 208.0, - "height": 326.0 - } - }, - "m_Slots": [ - { - "m_Id": "f81ae6f577a24e20b6d9613b02d982d6" - }, - { - "m_Id": "ce06eebab4794af39ee025107d22a1a9" - }, - { - "m_Id": "c10a784d6b874c55bd5b4c7e1cdafd9f" - }, - { - "m_Id": "cbded2fb1d6e496bb153861186a52af5" - } - ], - "synonyms": [ - "mix", - "blend", - "linear interpolate" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "4586fce2a67a4ca3a65a83e351f87daa", - "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_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4586fce2a67a4ca3a65a83e351f87daa", + "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, @@ -2715,6 +3085,17 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "4927a7900b42462abcc3017f64a1ca7e", + "m_Title": "SunBloomColor", + "m_Position": { + "x": 10.0, + "y": 10.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2774,13 +3155,13 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "4a8137effa68458993d7c05c980949d9", - "m_Id": 0, - "m_DisplayName": "SkyColorDay", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4a7d640544474664a8b99d4f37d2c0df", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "B", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -2793,8 +3174,7 @@ "y": 0.0, "z": 0.0, "w": 0.0 - }, - "m_Labels": [] + } } { @@ -2869,62 +3249,20 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1Node", - "m_ObjectId": "4d7b05e8a339482894c78a4e07ec1832", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Float", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 1303.0001220703125, - "y": 2035.0, - "width": 125.9998779296875, - "height": 77.0 - } - }, - "m_Slots": [ - { - "m_Id": "570359f17e1649d4a19622d5676fe2d9" - }, - { - "m_Id": "6a5134c2f711405dab2b38d398827161" - } - ], - "synonyms": [ - "Vector 1", - "1", - "v1", - "vec1", - "scalar" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Value": 0.0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", "m_ObjectId": "4fcc8ff4ecb946d6a71fb973246aec33", "m_Group": { - "m_Id": "" + "m_Id": "a26777f05d0b4fbcb91f246f6d79d767" }, "m_Name": "Redirect Node", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 3974.0, - "y": 1141.0, + "x": 2699.0, + "y": 1116.0, "width": 56.0, "height": 24.0 } @@ -2946,6 +3284,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "50dff1eb27784a12806c7700a44b3063", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.PowerNode", @@ -2958,8 +3320,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1390.0, - "y": 2251.0, + "x": 2093.0, + "y": 2175.0, "width": 208.0, "height": 302.0 } @@ -3056,56 +3418,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "55fb8f2f32e043498414b142170a47e2", - "m_Group": { - "m_Id": "aff3db42745b459c9bca73bfea0afd9a" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -98.85687255859375, - "y": 1192.365966796875, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "4a8137effa68458993d7c05c980949d9" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "30e79906ea6441908ae44a2131f6b416" - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "570359f17e1649d4a19622d5676fe2d9", - "m_Id": 1, - "m_DisplayName": "X", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "X", - "m_StageCapability": 3, - "m_Value": 0.5, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -3131,39 +3443,35 @@ } { - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.AddNode", - "m_ObjectId": "5841947ab56e46fcb828bf9adb4eb5ca", + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.SampleGradient", + "m_ObjectId": "57c10ad3c3104eb6ba73cc18949fa182", "m_Group": { - "m_Id": "aff3db42745b459c9bca73bfea0afd9a" + "m_Id": "4927a7900b42462abcc3017f64a1ca7e" }, - "m_Name": "Add", + "m_Name": "Sample Gradient", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 137.99998474121095, - "y": 1059.9998779296875, - "width": 208.00001525878907, - "height": 302.0001220703125 + "x": 782.0000610351563, + "y": 457.0, + "width": 207.9998779296875, + "height": 302.0 } }, "m_Slots": [ { - "m_Id": "13c87fcb39244a1f9a4650b8c89f8286" + "m_Id": "aef0717f61974d38bd32af83c3c095ac" }, { - "m_Id": "951b060485b04bf8b186573c1a23807f" + "m_Id": "737bc472f6724fea90668cd9e96679cf" }, { - "m_Id": "f87108fa5ebf401eb437ad00c625d456" + "m_Id": "31a900a0d93f4a9e8f0b5f5836989a09" } ], - "synonyms": [ - "addition", - "sum", - "plus" - ], + "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_PreviewMode": 0, @@ -3172,6 +3480,31 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "58e11786d26f4ece989d1bfcde5b9bd5", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -3220,6 +3553,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5a18b61336cc443b95ab42331d69fafa", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", @@ -3270,36 +3627,12 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "5d2d0c0264214fae9e0e5cd398a198e6", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 345.9999694824219, - "y": 1328.0, - "width": 153.0, - "height": 34.0 - } - }, - "m_Slots": [ - { - "m_Id": "79fd98df3c6d4b60b30f749d7370aef8" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "a45650180b1242c8a03fd3167872c7bc" + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "5cfde08222554261b7da011b0a5cc689", + "m_Title": "Base Sky Color, Day/Night blend", + "m_Position": { + "x": 10.0, + "y": 10.0 } } @@ -3339,10 +3672,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -189.99993896484376, - "y": 2023.9998779296875, - "width": 207.99990844726563, - "height": 326.0001220703125 + "x": -229.99996948242188, + "y": 2047.0001220703125, + "width": 208.0, + "height": 325.9998779296875 } }, "m_Slots": [ @@ -3409,21 +3742,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "5fdd37d88d294624ad8bf1d555a052a3", - "m_Id": 1, - "m_DisplayName": "X", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "X", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -3628,8 +3946,8 @@ "m_ObjectId": "6958154701694f7daab2bd60fbc56d55", "m_Title": "SunHeightBlend", "m_Position": { - "x": 10.0, - "y": 10.0 + "x": -1307.0, + "y": 1478.0001220703125 } } @@ -3676,21 +3994,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "6a5134c2f711405dab2b38d398827161", - "m_Id": 0, - "m_DisplayName": "Out", - "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.DynamicValueMaterialSlot", @@ -3768,8 +4071,43 @@ "m_ObjectId": "6d0527dd58f348658146e0b5aa2b15a1", "m_Title": "SunsetBlend", "m_Position": { - "x": -851.0, - "y": 1965.0 + "x": -891.0000610351563, + "y": 1987.9998779296875 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "6f2a947e6c5f46b196488ffc08358bde", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1422.0, + "y": 2221.0, + "width": 56.0001220703125, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "0d45a25532b040ca8e8c2c96ee6d2251" + }, + { + "m_Id": "f3712f054650456286b464c20ba16d79" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] } } @@ -3797,6 +4135,41 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "6fbcc8f18295479f970dc12dffe8a15a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2836.0, + "y": 2209.0, + "width": 56.0, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "787935b93ac4417e8df070f5dc50fa49" + }, + { + "m_Id": "156153e0a2af49f0ae78acafa5fe07d3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", @@ -3845,6 +4218,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7191063326744f13a99c84895d0c0c95", + "m_Id": 1, + "m_DisplayName": "Time", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -3869,6 +4257,33 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "737bc472f6724fea90668cd9e96679cf", + "m_Id": 1, + "m_DisplayName": "Time", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientMaterialSlot", + "m_ObjectId": "73a047eaaa13401e93dd7455b9c8fb1b", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SaturateNode", @@ -3881,9 +4296,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 779.0, - "y": 2702.999755859375, - "width": 207.99981689453126, + "x": 2864.0, + "y": 2557.0, + "width": 208.000244140625, "height": 278.0 } }, @@ -3930,6 +4345,72 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientNode", + "m_ObjectId": "75fa868fae71478088a0f08012d22fa1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Gradient", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1325.0, + "y": 1726.0, + "width": 208.0, + "height": 104.0 + } + }, + "m_Slots": [ + { + "m_Id": "a6d4f28b25d8484ea89a1bc2cad11556" + } + ], + "synonyms": [ + "ramp" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0, + "m_SerializableColorKeys": [ + { + "x": 0.02995728701353073, + "y": 0.02995728701353073, + "z": 0.08490568399429321, + "w": 0.4000000059604645 + }, + { + "x": 1.0, + "y": 0.4376072585582733, + "z": 0.18301880359649659, + "w": 0.5000076293945313 + }, + { + "x": 0.8830189108848572, + "y": 0.9336085319519043, + "z": 0.9811320900917053, + "w": 0.7647058963775635 + } + ], + "m_SerializableAlphaKeys": [ + { + "x": 1.0, + "y": 0.0 + }, + { + "x": 1.0, + "y": 1.0 + } + ], + "m_SerializableMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -4013,7 +4494,7 @@ "m_ShaderOutputName": "Edge2", "m_StageCapability": 3, "m_Value": { - "x": 0.699999988079071, + "x": 1.0, "y": 1.0, "z": 1.0, "w": 1.0 @@ -4026,6 +4507,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "787935b93ac4417e8df070f5dc50fa49", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", @@ -4052,13 +4557,13 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "79fd98df3c6d4b60b30f749d7370aef8", - "m_Id": 0, - "m_DisplayName": "SkyColorNight", + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "7a8a629fc4314286977a03f098becb64", + "m_Id": 1, + "m_DisplayName": "", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4071,17 +4576,16 @@ "y": 0.0, "z": 0.0, "w": 0.0 - }, - "m_Labels": [] + } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "7a8a629fc4314286977a03f098becb64", - "m_Id": 1, + "m_ObjectId": "7b0fd3447dde45d687c922c26237b112", + "m_Id": 0, "m_DisplayName": "", - "m_SlotType": 1, + "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "", "m_StageCapability": 3, @@ -4203,28 +4707,13 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "83f0aa652b4c4f59b937cf94417a1662", - "m_Id": 4, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "80e1d774616f4c7e840f36447a2b855d", + "m_Id": 2, + "m_DisplayName": "Out", "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": "87a43a598b104b999f062e5711d4f84a", - "m_Id": 0, - "m_DisplayName": "", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "", + "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4237,18 +4726,19 @@ "y": 0.0, "z": 0.0, "w": 0.0 - } + }, + "m_Labels": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "885e173348364ba79b88d517358af740", - "m_Id": 0, - "m_DisplayName": "Out", + "m_ObjectId": "83f0aa652b4c4f59b937cf94417a1662", + "m_Id": 4, + "m_DisplayName": "A", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "A", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, @@ -4256,45 +4746,211 @@ } { - "m_SGVersion": 1, - "m_Type": "UnityEditor.ShaderGraph.ColorNode", - "m_ObjectId": "88d58134e77840a191beb1b23517fdc0", + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "857d6eda89024e14944a152b4d0cf1dc", "m_Group": { "m_Id": "" }, - "m_Name": "Color", + "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 2344.0, - "y": 1883.0, - "width": 208.0, - "height": 127.0 + "x": 4768.99951171875, + "y": 1789.0, + "width": 166.0, + "height": 34.0 } }, "m_Slots": [ { - "m_Id": "89cd171e544a4584a0bae8087464da56" + "m_Id": "ec75340dd568490a9e2bccbe9e1627e7" } ], - "synonyms": [ - "rgba" - ], + "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, - "m_Color": { - "color": { - "r": 1.0, - "g": 0.5, - "b": 0.0, - "a": 1.0 - }, - "mode": 0 + "m_Property": { + "m_Id": "9c87366acc95483ca5af43cc597424e9" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "867c6f6a436a400eb1db77ee8e8a6618", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.RedirectNodeData", + "m_ObjectId": "86a458cf882b457784280261c9e122ed", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1422.0, + "y": 508.9999694824219, + "width": 56.0, + "height": 24.000030517578126 + } + }, + "m_Slots": [ + { + "m_Id": "5a18b61336cc443b95ab42331d69fafa" + }, + { + "m_Id": "50dff1eb27784a12806c7700a44b3063" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "87a43a598b104b999f062e5711d4f84a", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "884fd94dd6934038bd531d9e38bc82eb", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.ColorNode", + "m_ObjectId": "88d58134e77840a191beb1b23517fdc0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Color", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2344.0, + "y": 1883.0, + "width": 208.0, + "height": 127.0 + } + }, + "m_Slots": [ + { + "m_Id": "89cd171e544a4584a0bae8087464da56" + } + ], + "synonyms": [ + "rgba" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Color": { + "color": { + "r": 0.9433962106704712, + "g": 0.6223034858703613, + "b": 0.3070487678050995, + "a": 1.0 + }, + "mode": 0 } } @@ -4515,6 +5171,41 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "8eceb77de4784c9390007f18fe7110cf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 726.0000610351563, + "y": 1831.0, + "width": 55.9998779296875, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "fd2e03ca84c940bca1ac1eb012d53b28" + }, + { + "m_Id": "e9a80386086641f2a1ad9f17e8a66eec" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -4563,31 +5254,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "93afb4a6617e409e9105e96aa1d3d8f8", - "m_Id": 0, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ClampNode", @@ -4600,10 +5266,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4432.0, - "y": 1936.9998779296875, + "x": 4190.0, + "y": 2010.0, "width": 144.0, - "height": 142.0001220703125 + "height": 142.0 } }, "m_Slots": [ @@ -4645,12 +5311,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "951b060485b04bf8b186573c1a23807f", + "m_ObjectId": "95560fa6d2dc42a49d846fcd571e6226", "m_Id": 1, - "m_DisplayName": "B", + "m_DisplayName": "Min", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", + "m_ShaderOutputName": "Min", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4669,12 +5335,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "95560fa6d2dc42a49d846fcd571e6226", - "m_Id": 1, - "m_DisplayName": "Min", - "m_SlotType": 0, + "m_ObjectId": "9605198e5f1340ba86cc7b3bb19eeeee", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Min", + "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4702,10 +5368,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -474.0, - "y": 2721.999755859375, - "width": 207.99996948242188, - "height": 278.000244140625 + "x": 1611.0, + "y": 2576.0, + "width": 208.0001220703125, + "height": 278.0 } }, "m_Slots": [ @@ -4789,28 +5455,94 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "9eb595283caa4353aae788c7ed7a4df8", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 + "m_Type": "UnityEditor.ShaderGraph.GradientNode", + "m_ObjectId": "9d952d991a9e46f6af3444cf6d90f7d4", + "m_Group": { + "m_Id": "4927a7900b42462abcc3017f64a1ca7e" }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - + "m_Name": "Gradient", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 335.0000305175781, + "y": 405.0, + "width": 207.99996948242188, + "height": 104.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "73a047eaaa13401e93dd7455b9c8fb1b" + } + ], + "synonyms": [ + "ramp" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0, + "m_SerializableColorKeys": [ + { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.4000000059604645 + }, + { + "x": 1.0, + "y": 0.5663458108901978, + "z": 0.0, + "w": 0.5000076293945313 + }, + { + "x": 0.9056603908538818, + "y": 0.9056603908538818, + "z": 0.9056603908538818, + "w": 0.7647058963775635 + } + ], + "m_SerializableAlphaKeys": [ + { + "x": 1.0, + "y": 0.0 + }, + { + "x": 1.0, + "y": 1.0 + } + ], + "m_SerializableMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9eb595283caa4353aae788c7ed7a4df8", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.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", @@ -4904,8 +5636,8 @@ "m_ObjectId": "a26777f05d0b4fbcb91f246f6d79d767", "m_Title": "SunDisk", "m_Position": { - "x": 3826.00048828125, - "y": 1231.00048828125 + "x": 2033.0, + "y": 780.0000610351563 } } @@ -4950,10 +5682,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -825.9999389648438, - "y": 2039.9998779296875, + "x": -866.0, + "y": 2063.0, "width": 208.0, - "height": 278.0001220703125 + "height": 278.000244140625 } }, "m_Slots": [ @@ -4975,6 +5707,18 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientMaterialSlot", + "m_ObjectId": "a6d4f28b25d8484ea89a1bc2cad11556", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -5104,6 +5848,158 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientInputMaterialSlot", + "m_ObjectId": "aef0717f61974d38bd32af83c3c095ac", + "m_Id": 0, + "m_DisplayName": "Gradient", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Gradient", + "m_StageCapability": 3, + "m_Value": { + "serializedVersion": "2", + "key0": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key1": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key2": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key3": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key4": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key5": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key6": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key7": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "ctime0": 0, + "ctime1": 65535, + "ctime2": 0, + "ctime3": 0, + "ctime4": 0, + "ctime5": 0, + "ctime6": 0, + "ctime7": 0, + "atime0": 0, + "atime1": 65535, + "atime2": 0, + "atime3": 0, + "atime4": 0, + "atime5": 0, + "atime6": 0, + "atime7": 0, + "m_Mode": 0, + "m_NumColorKeys": 2, + "m_NumAlphaKeys": 2 + }, + "m_DefaultValue": { + "serializedVersion": "2", + "key0": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key1": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key2": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key3": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key4": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key5": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key6": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key7": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "ctime0": 0, + "ctime1": 65535, + "ctime2": 0, + "ctime3": 0, + "ctime4": 0, + "ctime5": 0, + "ctime6": 0, + "ctime7": 0, + "atime0": 0, + "atime1": 65535, + "atime2": 0, + "atime3": 0, + "atime4": 0, + "atime5": 0, + "atime6": 0, + "atime7": 0, + "m_Mode": 0, + "m_NumColorKeys": 2, + "m_NumAlphaKeys": 2 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -5140,10 +6036,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -738.0, - "y": 2701.0, - "width": 207.99993896484376, - "height": 314.999755859375 + "x": 1347.0, + "y": 2555.0, + "width": 208.0, + "height": 315.0 } }, "m_Slots": [ @@ -5169,8 +6065,8 @@ "m_ObjectId": "aff3db42745b459c9bca73bfea0afd9a", "m_Title": "Sun Bloom", "m_Position": { - "x": 10.0, - "y": 10.0 + "x": 430.99993896484377, + "y": -83.99996948242188 } } @@ -5210,9 +6106,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -158.00003051757813, - "y": 1485.9998779296875, - "width": 207.99996948242188, + "x": -119.99999237060547, + "y": 1541.0, + "width": 208.00006103515626, "height": 326.0 } }, @@ -5247,8 +6143,8 @@ "m_ObjectId": "b1410891b6654c5eaefff0d5ca051303", "m_Title": "HorizonBlend", "m_Position": { - "x": -763.0, - "y": 2642.0 + "x": 1322.0, + "y": 2496.0 } } @@ -5412,6 +6308,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b72bfd38ea6e424b8f28c01f2f05e58c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -5484,6 +6404,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "bc9117def15b46ea99348007cdadbb16", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicVectorMaterialSlot", @@ -5601,12 +6545,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "c10a784d6b874c55bd5b4c7e1cdafd9f", + "m_ObjectId": "c1691e5b95604c6f89b606305c441342", "m_Id": 2, - "m_DisplayName": "T", - "m_SlotType": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "T", + "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -5623,26 +6567,40 @@ } { - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "c274b91ae8ff4ac49454a3afbdc92a32", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.SampleGradient", + "m_ObjectId": "c235c3639d9849ad94ff14b119b921b1", + "m_Group": { + "m_Id": "" }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 + "m_Name": "Sample Gradient", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1781.0, + "y": 1765.9998779296875, + "width": 208.0, + "height": 302.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "c739c85c475447e3b17af8aa51b9aa15" + }, + { + "m_Id": "7191063326744f13a99c84895d0c0c95" + }, + { + "m_Id": "80e1d774616f4c7e840f36447a2b855d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] } } @@ -5670,48 +6628,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.AddNode", - "m_ObjectId": "c2de12f9036943a09fe9a0a6eb293f9c", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Add", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 4046.0, - "y": 1936.9998779296875, - "width": 130.0, - "height": 118.0001220703125 - } - }, - "m_Slots": [ - { - "m_Id": "c274b91ae8ff4ac49454a3afbdc92a32" - }, - { - "m_Id": "1d9418870ab94bb3a4814aa0e27bca50" - }, - { - "m_Id": "fb1ef5d885554ccbbbe9e29826407814" - } - ], - "synonyms": [ - "addition", - "sum", - "plus" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -5751,22 +6667,174 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientInputMaterialSlot", + "m_ObjectId": "c739c85c475447e3b17af8aa51b9aa15", + "m_Id": 0, + "m_DisplayName": "Gradient", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Gradient", + "m_StageCapability": 3, + "m_Value": { + "serializedVersion": "2", + "key0": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key1": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key2": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key3": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key4": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key5": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key6": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key7": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "ctime0": 0, + "ctime1": 65535, + "ctime2": 0, + "ctime3": 0, + "ctime4": 0, + "ctime5": 0, + "ctime6": 0, + "ctime7": 0, + "atime0": 0, + "atime1": 65535, + "atime2": 0, + "atime3": 0, + "atime4": 0, + "atime5": 0, + "atime6": 0, + "atime7": 0, + "m_Mode": 0, + "m_NumColorKeys": 2, + "m_NumAlphaKeys": 2 + }, + "m_DefaultValue": { + "serializedVersion": "2", + "key0": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key1": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key2": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key3": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key4": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key5": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key6": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key7": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "ctime0": 0, + "ctime1": 65535, + "ctime2": 0, + "ctime3": 0, + "ctime4": 0, + "ctime5": 0, + "ctime6": 0, + "ctime7": 0, + "atime0": 0, + "atime1": 65535, + "atime2": 0, + "atime3": 0, + "atime4": 0, + "atime5": 0, + "atime6": 0, + "atime7": 0, + "m_Mode": 0, + "m_NumColorKeys": 2, + "m_NumAlphaKeys": 2 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SplitNode", "m_ObjectId": "c79e696727d849b9927d959121146936", "m_Group": { - "m_Id": "6958154701694f7daab2bd60fbc56d55" + "m_Id": "" }, "m_Name": "Split", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -1118.0, - "y": 1656.0, + "x": -1389.9998779296875, + "y": 1866.9998779296875, "width": 120.0, - "height": 149.0001220703125 + "height": 149.0 } }, "m_Slots": [ @@ -5856,6 +6924,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "c991780faf0a4abd83f91a80aec1ee3f", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.SmoothstepNode", @@ -5868,10 +6984,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4604.00048828125, - "y": 1349.0001220703125, + "x": 2811.0, + "y": 898.0000610351563, "width": 208.0, - "height": 325.9998779296875 + "height": 325.99993896484377 } }, "m_Slots": [ @@ -5899,30 +7015,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "cabf61252b1c4648a359aa6e4444e7f4", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.AddNode", @@ -5946,119 +7038,29 @@ "m_Id": "4d02759dd45844169793d8bfba647320" }, { - "m_Id": "9eb595283caa4353aae788c7ed7a4df8" - }, - { - "m_Id": "31013c194dd446b793d7fb3825afa730" - } - ], - "synonyms": [ - "addition", - "sum", - "plus" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "cb9cdb8da8df4228b89f9876659dde32", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 2.0, - "y": 2.0, - "z": 2.0, - "w": 2.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "cbded2fb1d6e496bb153861186a52af5", - "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.Vector1Node", - "m_ObjectId": "cc0bef66e0ef4c2faf7aed3e7b113618", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Float", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 3574.0, - "y": 2010.9998779296875, - "width": 125.999755859375, - "height": 77.0001220703125 - } - }, - "m_Slots": [ - { - "m_Id": "5fdd37d88d294624ad8bf1d555a052a3" + "m_Id": "9eb595283caa4353aae788c7ed7a4df8" }, { - "m_Id": "885e173348364ba79b88d517358af740" + "m_Id": "31013c194dd446b793d7fb3825afa730" } ], "synonyms": [ - "Vector 1", - "1", - "v1", - "vec1", - "scalar" + "addition", + "sum", + "plus" ], "m_Precision": 0, "m_PreviewExpanded": true, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] - }, - "m_Value": 0.0 + } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "ce06eebab4794af39ee025107d22a1a9", + "m_ObjectId": "cb9cdb8da8df4228b89f9876659dde32", "m_Id": 1, "m_DisplayName": "B", "m_SlotType": 0, @@ -6066,10 +7068,10 @@ "m_ShaderOutputName": "B", "m_StageCapability": 3, "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 + "x": 4.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 }, "m_DefaultValue": { "x": 0.0, @@ -6091,10 +7093,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4002.00048828125, - "y": 1407.0, + "x": 2209.0, + "y": 956.0, "width": 126.0, - "height": 118.0001220703125 + "height": 118.0 } }, "m_Slots": [ @@ -6145,6 +7147,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "d0ba6546f96f46bdb93caba2d3293968", + "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.DynamicVectorMaterialSlot", @@ -6169,6 +7219,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d2119299fb6b460cb92b952ef2e0d9b2", + "m_Id": 1, + "m_DisplayName": "Time", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -6205,10 +7270,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -552.9999389648438, - "y": 2039.9998779296875, - "width": 207.99996948242188, - "height": 278.0001220703125 + "x": -592.9999389648438, + "y": 2063.0, + "width": 208.00003051757813, + "height": 278.000244140625 } }, "m_Slots": [ @@ -6232,6 +7297,51 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "d77641d3056442339bd6b943c453346d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 5024.0, + "y": 1625.9998779296875, + "width": 208.0, + "height": 326.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "b72bfd38ea6e424b8f28c01f2f05e58c" + }, + { + "m_Id": "4a7d640544474664a8b99d4f37d2c0df" + }, + { + "m_Id": "bc9117def15b46ea99348007cdadbb16" + }, + { + "m_Id": "9605198e5f1340ba86cc7b3bb19eeeee" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -6328,6 +7438,158 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientInputMaterialSlot", + "m_ObjectId": "dec5f4e7125847b8b90c1cff01986c34", + "m_Id": 0, + "m_DisplayName": "Gradient", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Gradient", + "m_StageCapability": 3, + "m_Value": { + "serializedVersion": "2", + "key0": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key1": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key2": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key3": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key4": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key5": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key6": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key7": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "ctime0": 0, + "ctime1": 65535, + "ctime2": 0, + "ctime3": 0, + "ctime4": 0, + "ctime5": 0, + "ctime6": 0, + "ctime7": 0, + "atime0": 0, + "atime1": 65535, + "atime2": 0, + "atime3": 0, + "atime4": 0, + "atime5": 0, + "atime6": 0, + "atime7": 0, + "m_Mode": 0, + "m_NumColorKeys": 2, + "m_NumAlphaKeys": 2 + }, + "m_DefaultValue": { + "serializedVersion": "2", + "key0": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key1": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "key2": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key3": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key4": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key5": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key6": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "key7": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "ctime0": 0, + "ctime1": 65535, + "ctime2": 0, + "ctime3": 0, + "ctime4": 0, + "ctime5": 0, + "ctime6": 0, + "ctime7": 0, + "atime0": 0, + "atime1": 65535, + "atime2": 0, + "atime3": 0, + "atime4": 0, + "atime5": 0, + "atime6": 0, + "atime7": 0, + "m_Mode": 0, + "m_NumColorKeys": 2, + "m_NumAlphaKeys": 2 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -6364,10 +7626,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 3851.000244140625, - "y": 1465.0001220703125, + "x": 2058.0, + "y": 1014.0000610351563, "width": 130.0, - "height": 33.9998779296875 + "height": 33.99993896484375 } }, "m_Slots": [ @@ -6387,6 +7649,18 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientMaterialSlot", + "m_ObjectId": "dfe60d474ac043278c7a68e7565907e1", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", @@ -6536,30 +7810,6 @@ "m_SerializedDescriptor": "VertexDescription.Tangent" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "e3b86c6d3ad7497992b04f9e10f1ad16", - "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.DynamicVectorMaterialSlot", @@ -6599,31 +7849,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "e759a50fb6604e08be6c42013b1a1bb4", - "m_Id": 0, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -6660,8 +7885,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 3058.0, - "y": 1277.9998779296875, + "x": 3235.000244140625, + "y": 1290.0001220703125, "width": 55.999755859375, "height": 24.0 } @@ -6683,6 +7908,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e9a80386086641f2a1ad9f17e8a66eec", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", @@ -6707,6 +7980,45 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ec39e1e107d84956ac5f9ccaa44be04f", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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": "ec75340dd568490a9e2bccbe9e1627e7", + "m_Id": 0, + "m_DisplayName": "GroundSpaceBlend", + "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.DynamicVectorMaterialSlot", @@ -6733,40 +8045,37 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.LerpNode", - "m_ObjectId": "f03949c18a614c618ee21a6d993ba9a3", + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "f1b0665b813a45beb9656c8ffde16484", "m_Group": { "m_Id": "" }, - "m_Name": "Lerp", + "m_Name": "Add", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 541.0000610351563, - "y": 1272.0, - "width": 207.9998779296875, - "height": 326.0 + "x": 4460.0, + "y": 1615.0001220703125, + "width": 208.0, + "height": 301.9998779296875 } }, "m_Slots": [ { - "m_Id": "1b0e5ed5fe9e46259e237fbe7d406e6d" - }, - { - "m_Id": "cabf61252b1c4648a359aa6e4444e7f4" + "m_Id": "131f07cc7c7e4c08b3dc9267b5780740" }, { - "m_Id": "13ac8c8f7d564e6cbbaefa7879b92392" + "m_Id": "2a5cd3bcb42d49e68f116688b872eefc" }, { - "m_Id": "e3b86c6d3ad7497992b04f9e10f1ad16" + "m_Id": "c1691e5b95604c6f89b606305c441342" } ], "synonyms": [ - "mix", - "blend", - "linear interpolate" + "addition", + "sum", + "plus" ], "m_Precision": 0, "m_PreviewExpanded": true, @@ -6788,9 +8097,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -224.00001525878907, - "y": 2721.999755859375, - "width": 119.99996948242188, + "x": 1861.0, + "y": 2576.0, + "width": 120.0, "height": 149.0 } }, @@ -6849,6 +8158,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f3712f054650456286b464c20ba16d79", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", @@ -6885,10 +8218,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -471.0, - "y": 1036.0, - "width": 208.0, - "height": 325.9998779296875 + "x": 456.0, + "y": -25.0000057220459, + "width": 207.99993896484376, + "height": 326.0 } }, "m_Slots": [ @@ -7033,30 +8366,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "f81ae6f577a24e20b6d9613b02d982d6", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.OneMinusNode", @@ -7069,9 +8378,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 238.99998474121095, - "y": 2795.999755859375, - "width": 208.00001525878907, + "x": 2324.0, + "y": 2650.0, + "width": 208.000244140625, "height": 278.0 } }, @@ -7096,30 +8405,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "f87108fa5ebf401eb437ad00c625d456", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -7149,17 +8434,17 @@ "m_Type": "UnityEditor.ShaderGraph.PropertyNode", "m_ObjectId": "f8f2ec45de05456dad0ffc0289c13fc2", "m_Group": { - "m_Id": "6958154701694f7daab2bd60fbc56d55" + "m_Id": "" }, "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -1282.0001220703125, - "y": 1695.0001220703125, + "x": -1553.9998779296875, + "y": 1905.9998779296875, "width": 134.0, - "height": 34.0 + "height": 34.0001220703125 } }, "m_Slots": [ @@ -7179,6 +8464,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "f9bd48b240f8457a826e88c15d0b59eb", + "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.RedirectNodeData", @@ -7191,9 +8524,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 3196.0, - "y": 2681.999755859375, - "width": 55.999755859375, + "x": 3291.19970703125, + "y": 2507.19970703125, + "width": 56.0, "height": 24.000244140625 } }, @@ -7246,41 +8579,65 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "fb1ef5d885554ccbbbe9e29826407814", + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "fc41f56a623d49a1ad7a8a8152cac5e9", "m_Id": 2, "m_DisplayName": "Out", "m_SlotType": 1, "m_Hidden": false, "m_ShaderOutputName": "Out", "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "fc41f56a623d49a1ad7a8a8152cac5e9", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "fd2e03ca84c940bca1ac1eb012d53b28", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "", "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "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 + } } { From 30e42166e6a577027602654a028eb2a7059bfb65 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:35:40 -0500 Subject: [PATCH 15/18] Updates to shader, cleanup --- Runtime/CesiumSkyController.cs | 413 ++--- ...CesiumDynamicSkyboxShaderGraph.shadergraph | 1560 ++++++++++++++--- .../CesiumSkyShaderGraph.mat | 4 + 3 files changed, 1521 insertions(+), 456 deletions(-) diff --git a/Runtime/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs index 637a87e9..da6c0693 100644 --- a/Runtime/CesiumSkyController.cs +++ b/Runtime/CesiumSkyController.cs @@ -1,296 +1,303 @@ +using Reinterop; + using UnityEngine; using UnityEditor; using CesiumForUnity; -[ExecuteInEditMode] -public class CesiumSkyController : MonoBehaviour -{ - [SerializeField] - GameObject _sunLight = default; +namespace CesiumForUnity +{ + [ExecuteInEditMode] + [ReinteropNativeImplementation("CesiumForUnityNative::CesiumSkyControllerImpl", "CesiumSkyControllerImpl.h")] + public partial class CesiumSkyController : MonoBehaviour + { + [SerializeField] + GameObject _sunLight = default; - [SerializeField] - private bool _updateOnTick = false; + [SerializeField] + private bool _updateOnTick = false; - public bool updateOnTick - { - get => this._updateOnTick; - set + public bool updateOnTick { - this._updateOnTick = value; + get => this._updateOnTick; + set + { + this._updateOnTick = value; + } } - } - [SerializeField] - bool _updateInEditor = false; + [SerializeField] + bool _updateInEditor = false; - public bool updateInEditor - { - get => this._updateInEditor; - set + public bool updateInEditor { - this._updateInEditor = value; + get => this._updateInEditor; + set + { + this._updateInEditor = value; + } } - } - [SerializeField] - [Range(-90.0f, 90.0f)] - private float _latitude = 0.0f; + [SerializeField] + [Range(-90.0f, 90.0f)] + private float _latitude = 0.0f; - public float latitude - { - get => this._latitude; - set + public float latitude { - this._latitude = value; + get => this._latitude; + set + { + this._latitude = value; + } } - } - [SerializeField] - [Range(-180.0f, 180.0f)] - private float _longitude = 0.0f; + [SerializeField] + [Range(-180.0f, 180.0f)] + private float _longitude = 0.0f; - public float longitude - { - get => this._longitude; - set + public float longitude { - this._longitude = value; + get => this._longitude; + set + { + this._longitude = value; + } } - } - [SerializeField] - [Range(0.0f, 24.0f)] - private float _timeOfDay = 12.0f; + [SerializeField] + [Range(0.0f, 24.0f)] + private float _timeOfDay = 12.0f; - public float timeOfDay - { - get => this._timeOfDay; - set + public float timeOfDay { - this._timeOfDay = value; - this.SetSunPosition(); + get => this._timeOfDay; + set + { + this._timeOfDay = value; + this.SetSunPosition(); + } } - } - // Pretty sure this should always be -90, so this should probably not be a variable and should instead be hardcoded into the native implementation. - [SerializeField] - [Range(-360.0f, 360.0f)] - private float _northOffset = -90.0f; + // Pretty sure this should always be -90, so this should probably not be a variable and should instead be hardcoded into the native implementation. + [SerializeField] + [Range(-360.0f, 360.0f)] + private float _northOffset = -90.0f; - public float northOffset - { - get => this._northOffset; - set + public float northOffset { - this._northOffset = value; - this.UpdateSky(); + get => this._northOffset; + set + { + this._northOffset = value; + this.UpdateSky(); + } } - } - [SerializeField] - [Range(1, 31)] - private int _day = 1; + [SerializeField] + [Range(1, 31)] + private int _day = 1; - public int day - { - get => this._day; - set + public int day { - this._day = value; - this.UpdateSky(); + get => this._day; + set + { + this._day = value; + this.UpdateSky(); + } } - } - [SerializeField] - [Range(1, 12)] - private int _month = 6; + [SerializeField] + [Range(1, 12)] + private int _month = 6; - public int month - { - get => this._month; - set + public int month { - this._month = value; - this.UpdateSky(); + get => this._month; + set + { + this._month = value; + this.UpdateSky(); + } } - } - [SerializeField] - private int _year = 2022; + [SerializeField] + private int _year = 2022; - public int year - { - get => this._year; - set + public int year { - this._year = value; - this.UpdateSky(); + get => this._year; + set + { + this._year = value; + this.UpdateSky(); + } } - } - [SerializeField] - private float _timeZone = 0.0f; + [SerializeField] + private float _timeZone = 0.0f; - public float timeZone - { - get => this._timeZone; - set + public float timeZone { - this._timeZone = value; - this.UpdateSky(); + get => this._timeZone; + set + { + this._timeZone = value; + this.UpdateSky(); + } } - } - [SerializeField] - private bool _useCesiumSkybox = true; + [SerializeField] + private bool _useCesiumSkybox = true; - public bool useCesiumSkybox - { - get => this._useCesiumSkybox; - set + public bool useCesiumSkybox { - this._useCesiumSkybox = value; - //this.ChangeSkyboxMaterial(); + get => this._useCesiumSkybox; + set + { + this._useCesiumSkybox = value; + //this.ChangeSkyboxMaterial(); + } } - } - //[SerializeField] // This can be serialized for easy testing of the skybox shader. - [Range(0.0f, 1.0f)] - private float groundSpaceBlend = 0.0f; + //[SerializeField] // This can be serialized for easy testing of the skybox shader. + [Range(0.0f, 1.0f)] + private float groundSpaceBlend = 0.0f; - private float lastBlendValue; + private float lastBlendValue; - [SerializeField] - float _groundBlendHeight = 2000.0f; - [SerializeField] - float _spaceBlendHeight = 800000.0f; + [SerializeField] + float _groundBlendHeight = 2000.0f; + [SerializeField] + float _spaceBlendHeight = 800000.0f; - //Todo: Additional options for HDRP vs URP. In URP, skybox-specific options, including perhaps the ability to set the skybox used in the level. For HDRP, atmosphere scaling options for Physically Based Sky. + //Todo: Additional options for HDRP vs URP. In URP, skybox-specific options, including perhaps the ability to set the skybox used in the level. For HDRP, atmosphere scaling options for Physically Based Sky. - Camera activeCamera; + Camera activeCamera; - CesiumGlobeAnchor globeAnchor; + CesiumGlobeAnchor globeAnchor; - public void UpdateSky() - { - SetSunPosition(); - if (_useCesiumSkybox) - { - GetCameraHeight(); + public void UpdateSky() + { + SetSunPosition(); + if (_useCesiumSkybox) + { + GetCameraHeight(); + } } - } - public void ChangeSkyboxMaterial() - { - if (_useCesiumSkybox) + public void ChangeSkyboxMaterial() { - RenderSettings.skybox = Resources.Load("CesiumSkyController/CesiumDynamicSkybox", typeof(Material)) as Material; - DynamicGI.UpdateEnvironment(); - } - - } + if (_useCesiumSkybox) + { + RenderSettings.skybox = Resources.Load("CesiumSkyController/CesiumDynamicSkybox", typeof(Material)) as Material; + DynamicGI.UpdateEnvironment(); + } - void ResolveCamera() - { - if (Application.IsPlaying(gameObject)) - { - activeCamera = Camera.main; - globeAnchor = activeCamera.GetComponent(); } - else if (_updateInEditor) + + void ResolveCamera() { - SceneView sceneWindow = SceneView.lastActiveSceneView; - if (sceneWindow) + if (Application.IsPlaying(gameObject)) + { + activeCamera = Camera.main; + globeAnchor = activeCamera.GetComponent(); + } + else if (_updateInEditor) { - if (sceneWindow.camera != null) + SceneView sceneWindow = SceneView.lastActiveSceneView; + if (sceneWindow) { - activeCamera = sceneWindow.camera; + if (sceneWindow.camera != null) + { + activeCamera = sceneWindow.camera; + } } } } - } - public Vector3 CalculateSunPosition() // This will be a partial class that is entirely implemented in Cesium Native - { - float hourToAngle = ((timeOfDay * 15.0f) - 90.0f); - Vector3 positionToRotation = new Vector3(hourToAngle, _northOffset, 0); + //public partial void CalculateSunPosition(float time) // This will be a partial class that is entirely implemented in Cesium Native + //{ + // float hourToAngle = ((timeOfDay * 15.0f) - 90.0f); + // Vector3 positionToRotation = new Vector3(hourToAngle, _northOffset, 0); - return positionToRotation; - } + // return positionToRotation; + // } + private partial Vector3 CalculateSunPosition(float t); - public void SetSunPosition() - { - Vector3 newSunRotation = CalculateSunPosition(); - - if (_sunLight != null) + public void SetSunPosition() { - _sunLight.transform.localEulerAngles = newSunRotation; - Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); + Vector3 newSunRotation = CalculateSunPosition(timeOfDay); + + if (_sunLight != null) + { + _sunLight.transform.localEulerAngles = newSunRotation; + Shader.SetGlobalVector("_SunDirection", -_sunLight.transform.forward); + } } - } - void GetCameraHeight() - { - if (activeCamera != null) + void GetCameraHeight() { - float camHeight; - if (globeAnchor) camHeight = (float)globeAnchor.height; - else camHeight = activeCamera.transform.position.y; + if (activeCamera != null) + { + float camHeight; + if (globeAnchor) camHeight = (float)globeAnchor.height; + else camHeight = activeCamera.transform.position.y; - if (camHeight <= _groundBlendHeight) - { - groundSpaceBlend = 0.0f; - } - else if (camHeight >= _spaceBlendHeight) - { - groundSpaceBlend = 1.0f; - } - else - { - groundSpaceBlend = (camHeight - _groundBlendHeight) / (_spaceBlendHeight - _groundBlendHeight); - // Linear interpolation seems too abrupt here at the beginning and end of the blend. That, or the math is wrong. Perhaps a smoother interpolation, especially in space. - } + if (camHeight <= _groundBlendHeight) + { + groundSpaceBlend = 0.0f; + } + else if (camHeight >= _spaceBlendHeight) + { + groundSpaceBlend = 1.0f; + } + else + { + groundSpaceBlend = (camHeight - _groundBlendHeight) / (_spaceBlendHeight - _groundBlendHeight); + // Linear interpolation seems too abrupt here at the beginning and end of the blend. That, or the math is wrong. Perhaps a smoother interpolation, especially in space. + } - // TODO: Add a check to see if the scene is using the Cesium skybox material - if (groundSpaceBlend != lastBlendValue) - { - Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); - lastBlendValue = groundSpaceBlend; + // TODO: Add a check to see if the scene is using the Cesium skybox material + if (groundSpaceBlend != lastBlendValue) + { + Shader.SetGlobalFloat("_GroundSpaceBlend", groundSpaceBlend); + lastBlendValue = groundSpaceBlend; - Debug.Log("camera height is " + camHeight + ". Blend factor is " + groundSpaceBlend + ". Disable Check for Camera Updates on Sky Controller."); + Debug.Log("camera height is " + camHeight + ". Blend factor is " + groundSpaceBlend + ". Disable Check for Camera Updates on Sky Controller."); + } } + else ResolveCamera(); + } - else ResolveCamera(); - } + void Awake() + { - void Awake() - { + ResolveCamera(); - ResolveCamera(); + // If the application has started and the directional light reference is not set, set it to the prefab's child Directional Light object. + if (Application.IsPlaying(gameObject) && !_sunLight) + { + _sunLight = this.transform.Find("Directional Light").gameObject; - // If the application has started and the directional light reference is not set, set it to the prefab's child Directional Light object. - if (Application.IsPlaying(gameObject) && !_sunLight) - { - _sunLight = this.transform.Find("Directional Light").gameObject; + } } - } - - void LateUpdate() - { - if (updateOnTick) - { - if (Application.IsPlaying(gameObject) || _updateInEditor) + void LateUpdate() + { + if (updateOnTick) { - UpdateSky(); + if (Application.IsPlaying(gameObject) || _updateInEditor) + { + UpdateSky(); + } } } - } -} + } +} \ No newline at end of file diff --git a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph index a8f739a2..8c7121eb 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph +++ b/Runtime/Resources/CesiumSkyController/CesiumDynamicSkyboxShaderGraph.shadergraph @@ -17,6 +17,12 @@ }, { "m_Id": "9c87366acc95483ca5af43cc597424e9" + }, + { + "m_Id": "ce070598a336475782a1b421678a57eb" + }, + { + "m_Id": "7cfa9a4a9c7d4605b738648de06443c3" } ], "m_Keywords": [], @@ -108,9 +114,6 @@ { "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" }, - { - "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" - }, { "m_Id": "f49ec666afe14c929decc77b4aa064a5" }, @@ -221,6 +224,36 @@ }, { "m_Id": "d77641d3056442339bd6b943c453346d" + }, + { + "m_Id": "3f5e789735bd409481a85e9b6c5946dc" + }, + { + "m_Id": "336edca634794066a4dbcbe4ce803768" + }, + { + "m_Id": "061d37c2c39a490c8cd76f669e442334" + }, + { + "m_Id": "7c65735d816b41f3b142542b3e5d7a31" + }, + { + "m_Id": "2d2931631bf14f3eaf3d13ea19d931df" + }, + { + "m_Id": "614e7d9a7b1b42ffacda31664e6fad3a" + }, + { + "m_Id": "13090dd6070945e0b8ed3dd4c22c587a" + }, + { + "m_Id": "7bbf8d6042a7448a9e3dd15467ff9e8e" + }, + { + "m_Id": "db8ae7148bd24f2fb693d8dbd21d8c98" + }, + { + "m_Id": "cba37259938749fba385df8fba18b7e2" } ], "m_GroupDatas": [ @@ -247,6 +280,9 @@ }, { "m_Id": "5cfde08222554261b7da011b0a5cc689" + }, + { + "m_Id": "194b1136a6b14c6082b28924884c1ac6" } ], "m_StickyNoteDatas": [], @@ -265,6 +301,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "061d37c2c39a490c8cd76f669e442334" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3f5e789735bd409481a85e9b6c5946dc" + }, + "m_SlotId": 2 + } + }, { "m_OutputSlot": { "m_Node": { @@ -363,6 +413,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "13090dd6070945e0b8ed3dd4c22c587a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2d2931631bf14f3eaf3d13ea19d931df" + }, + "m_SlotId": 2 + } + }, { "m_OutputSlot": { "m_Node": { @@ -386,9 +450,23 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "15c7a9d9e46c4eeeb73360fcffea4d1a" + "m_Id": "cba37259938749fba385df8fba18b7e2" }, - "m_SlotId": 1 + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2d2931631bf14f3eaf3d13ea19d931df" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7c65735d816b41f3b142542b3e5d7a31" + }, + "m_SlotId": 0 } }, { @@ -422,15 +500,15 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "32a4a9d946fa40aa96e8bad2df2d93aa" + "m_Id": "336edca634794066a4dbcbe4ce803768" }, - "m_SlotId": 2 + "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "b1120c2e1d5e4915b22a1ad5fa1d1f33" + "m_Id": "3f5e789735bd409481a85e9b6c5946dc" }, - "m_SlotId": 2 + "m_SlotId": 1 } }, { @@ -573,6 +651,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3f5e789735bd409481a85e9b6c5946dc" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d77641d3056442339bd6b943c453346d" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -629,6 +721,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "614e7d9a7b1b42ffacda31664e6fad3a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "13090dd6070945e0b8ed3dd4c22c587a" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -741,6 +847,34 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7bbf8d6042a7448a9e3dd15467ff9e8e" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2d2931631bf14f3eaf3d13ea19d931df" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7c65735d816b41f3b142542b3e5d7a31" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "061d37c2c39a490c8cd76f669e442334" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -988,9 +1122,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "2f35b4983aaa489b90491c5c303caae7" + "m_Id": "db8ae7148bd24f2fb693d8dbd21d8c98" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { @@ -1007,6 +1141,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cba37259938749fba385df8fba18b7e2" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "15c7a9d9e46c4eeeb73360fcffea4d1a" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -1049,6 +1197,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "db8ae7148bd24f2fb693d8dbd21d8c98" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2f35b4983aaa489b90491c5c303caae7" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -1128,7 +1290,7 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "d77641d3056442339bd6b943c453346d" + "m_Id": "3f5e789735bd409481a85e9b6c5946dc" }, "m_SlotId": 0 } @@ -1147,6 +1309,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f1f9a8faddd24f88b9235cfd9f3d4763" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "614e7d9a7b1b42ffacda31664e6fad3a" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -1234,8 +1410,8 @@ ], "m_VertexContext": { "m_Position": { - "x": 5772.0, - "y": 1067.0 + "x": 6240.0, + "y": 1077.0 }, "m_Blocks": [ { @@ -1251,8 +1427,8 @@ }, "m_FragmentContext": { "m_Position": { - "x": 5772.0, - "y": 1267.0 + "x": 6240.0, + "y": 1277.0001220703125 }, "m_Blocks": [ { @@ -1402,6 +1578,41 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "061d37c2c39a490c8cd76f669e442334", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4690.99951171875, + "y": 1986.9998779296875, + "width": 56.00048828125, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "d96ebbbc082e4af2a11e373eb1074213" + }, + { + "m_Id": "fc8a494852f54a9dbb0ade9d260753f1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", @@ -1414,10 +1625,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 933.7318725585938, - "y": 1310.5, - "width": 0.0, - "height": 0.0 + "x": 1476.9998779296875, + "y": 1290.0, + "width": 56.0, + "height": 24.0 } }, "m_Slots": [ @@ -1512,12 +1723,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "0c9469d38f3c44c5b1122c0982dc6e68", - "m_Id": 3, - "m_DisplayName": "Out", + "m_ObjectId": "0ab9c60cc86249bbb887b240af1fbc07", + "m_Id": 1, + "m_DisplayName": "", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -1661,8 +1872,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 2974.0, - "y": 521.0, + "x": 3105.0, + "y": 718.9998779296875, "width": 55.999755859375, "height": 24.0 } @@ -1892,6 +2103,12 @@ }, { "m_Id": "9c87366acc95483ca5af43cc597424e9" + }, + { + "m_Id": "ce070598a336475782a1b421678a57eb" + }, + { + "m_Id": "7cfa9a4a9c7d4605b738648de06443c3" } ] } @@ -1899,12 +2116,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "13074b6e50f84ea0be4ce395115e9cae", - "m_Id": 2, - "m_DisplayName": "T", + "m_ObjectId": "12a9304225074868a034a87800de31af", + "m_Id": 0, + "m_DisplayName": "", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "T", + "m_ShaderOutputName": "", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -1923,12 +2140,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "131f07cc7c7e4c08b3dc9267b5780740", - "m_Id": 0, - "m_DisplayName": "A", + "m_ObjectId": "13074b6e50f84ea0be4ce395115e9cae", + "m_Id": 2, + "m_DisplayName": "T", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "T", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -1946,38 +2163,121 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "13c98e83e7d547d4a1642a055cb6bc02", - "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, - "w": 0.0 + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "13090dd6070945e0b8ed3dd4c22c587a", + "m_Group": { + "m_Id": "" }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "146a87efb89743eb96226210a9cfe892", - "m_Id": 1, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3397.0, + "y": 3082.999755859375, + "width": 55.999755859375, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "f1d9db209ef9434cb2f8fd8b9aabfd89" + }, + { + "m_Id": "ab17d1d07441435c97c801cb9e582d62" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "131f07cc7c7e4c08b3dc9267b5780740", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "13c98e83e7d547d4a1642a055cb6bc02", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "140f972b207947afab2918f655432afe", + "m_Id": 0, + "m_DisplayName": "Edge1", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge1", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "146a87efb89743eb96226210a9cfe892", + "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, @@ -2016,6 +2316,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1585fbe39e504ba6b787bd506e70169a", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.MultiplyNode", @@ -2028,10 +2352,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1137.9998779296875, - "y": 457.0, - "width": 207.9998779296875, - "height": 301.99993896484377 + "x": 1268.9998779296875, + "y": 655.0, + "width": 208.0001220703125, + "height": 301.9998779296875 } }, "m_Slots": [ @@ -2154,6 +2478,17 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "194b1136a6b14c6082b28924884c1ac6", + "m_Title": "Horizon Colors", + "m_Position": { + "x": 10.0, + "y": 10.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2288,10 +2623,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 745.0, - "y": -7.999968528747559, - "width": 207.99993896484376, - "height": 302.0 + "x": 138.99993896484376, + "y": 429.9999084472656, + "width": 208.0001220703125, + "height": 302.0000915527344 } }, "m_Slots": [ @@ -2318,6 +2653,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2966e3c16699448ba1ebfeea159cca72", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "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.DynamicVectorMaterialSlot", @@ -2390,6 +2749,49 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SmoothstepNode", + "m_ObjectId": "2d2931631bf14f3eaf3d13ea19d931df", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3690.000244140625, + "y": 2769.0, + "width": 207.999755859375, + "height": 326.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "140f972b207947afab2918f655432afe" + }, + { + "m_Id": "3569789fd2aa40cc8339bcf10063da2e" + }, + { + "m_Id": "accbdce91d634fc58acd04470837df32" + }, + { + "m_Id": "8854205ef9ef450eb167385bb40b4fa8" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.AddNode", @@ -2402,8 +2804,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 5352.0, - "y": 1116.0, + "x": 5833.0, + "y": 1290.0, "width": 208.0, "height": 302.0 } @@ -2570,10 +2972,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -560.0, - "y": 1540.9998779296875, - "width": 207.99996948242188, - "height": 302.0001220703125 + "x": -249.0001678466797, + "y": 1581.0001220703125, + "width": 208.00013732910157, + "height": 301.9998779296875 } }, "m_Slots": [ @@ -2624,6 +3026,41 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "336edca634794066a4dbcbe4ce803768", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4795.0, + "y": 1684.0, + "width": 144.0, + "height": 33.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "d5318889ab4a4868b14a060ade7e3ba9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ce070598a336475782a1b421678a57eb" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2651,18 +3088,18 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "35549a319b234ce680f0bca49603eae9", - "m_Id": 0, - "m_DisplayName": "Edge1", + "m_ObjectId": "3569789fd2aa40cc8339bcf10063da2e", + "m_Id": 1, + "m_DisplayName": "Edge2", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Edge1", + "m_ShaderOutputName": "Edge2", "m_StageCapability": 3, "m_Value": { - "x": 0.4000000059604645, - "y": 0.0, - "z": 0.0, - "w": 0.0 + "x": 0.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 }, "m_DefaultValue": { "x": 0.0, @@ -2713,16 +3150,22 @@ "w": 0.3941252827644348 }, { - "x": 0.2860092520713806, - "y": 0.30845189094543459, - "z": 0.3679245114326477, + "x": 0.12260590493679047, + "y": 0.15487146377563477, + "z": 0.22641509771347047, "w": 0.4470588266849518 }, { - "x": 0.33000001311302187, - "y": 0.5899999737739563, - "z": 0.8299999833106995, - "w": 0.7647058963775635 + "x": 0.23789604008197785, + "y": 0.3991832137107849, + "z": 0.4245283007621765, + "w": 0.4941176474094391 + }, + { + "x": 0.11982911080121994, + "y": 0.30697885155677798, + "z": 0.4811320900917053, + "w": 0.6000000238418579 } ], "m_SerializableAlphaKeys": [ @@ -2750,9 +3193,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 2041.9998779296875, - "y": 2587.0, - "width": 208.0001220703125, + "x": 2007.0001220703125, + "y": 2683.0, + "width": 207.9996337890625, "height": 278.0 } }, @@ -2787,8 +3230,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 2621.0, - "y": 2650.0, + "x": 2586.0, + "y": 2746.0, "width": 208.0, "height": 302.0 } @@ -2853,7 +3296,7 @@ "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", "m_ObjectId": "3b353dba8108458a9f84c51d7f9dec98", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Redirect Node", "m_DrawState": { @@ -2951,7 +3394,7 @@ "m_Type": "UnityEditor.ShaderGraph.SubtractNode", "m_ObjectId": "3d508c43ff324906a4c0dc3c31b3a6b9", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Subtract", "m_DrawState": { @@ -2989,6 +3432,51 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "3f5e789735bd409481a85e9b6c5946dc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 5026.99951171875, + "y": 1615.0, + "width": 208.0, + "height": 325.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "9caf30ee01174eb8b4b59f32ba6c3257" + }, + { + "m_Id": "7440f77644e14ae88ee8b4c57d0b3800" + }, + { + "m_Id": "2966e3c16699448ba1ebfeea159cca72" + }, + { + "m_Id": "7eb317147a374bcd9a558a48d17ae4ad" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -3046,6 +3534,30 @@ "m_SerializedDescriptor": "VertexDescription.Position" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "44036ea7a7094280b2e0197e69806d33", + "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.DynamicVectorMaterialSlot", @@ -3313,7 +3825,7 @@ "m_Type": "UnityEditor.ShaderGraph.PowerNode", "m_ObjectId": "5332b1a18da1472893a182fb03828316", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Power", "m_DrawState": { @@ -3454,10 +3966,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 782.0000610351563, - "y": 457.0, - "width": 207.9998779296875, - "height": 302.0 + "x": 912.9999389648438, + "y": 655.0, + "width": 207.99993896484376, + "height": 301.9998779296875 } }, "m_Slots": [ @@ -3577,6 +4089,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5a7f23c582e449ffb5b95cb036baf8d0", + "m_Id": 0, + "m_DisplayName": "GroundBlend", + "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.DynamicVectorMaterialSlot", @@ -3742,6 +4269,41 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "614e7d9a7b1b42ffacda31664e6fad3a", + "m_Group": { + "m_Id": "b1410891b6654c5eaefff0d5ca051303" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 2006.9998779296875, + "y": 3082.999755859375, + "width": 55.9998779296875, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "12a9304225074868a034a87800de31af" + }, + { + "m_Id": "1585fbe39e504ba6b787bd506e70169a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -3854,7 +4416,7 @@ "m_Type": "UnityEditor.ShaderGraph.SubtractNode", "m_ObjectId": "6774e13c03b04b819758892fbcd5f5cd", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Subtract", "m_DrawState": { @@ -3946,8 +4508,56 @@ "m_ObjectId": "6958154701694f7daab2bd60fbc56d55", "m_Title": "SunHeightBlend", "m_Position": { - "x": -1307.0, - "y": 1478.0001220703125 + "x": -607.0001220703125, + "y": 1518.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "69f0ae8c030b4c93927ca43eb44e7588", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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 } } @@ -4076,12 +4686,36 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "6e00306422394312b84fcd6844d20b8a", + "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, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", "m_ObjectId": "6f2a947e6c5f46b196488ffc08358bde", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Redirect Node", "m_DrawState": { @@ -4140,7 +4774,7 @@ "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", "m_ObjectId": "6fbcc8f18295479f970dc12dffe8a15a", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Redirect Node", "m_DrawState": { @@ -4284,6 +4918,54 @@ "m_StageCapability": 3 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "7440f77644e14ae88ee8b4c57d0b3800", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "75147b0c6da44bd09f090de5983469a1", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.SaturateNode", @@ -4296,9 +4978,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 2864.0, - "y": 2557.0, - "width": 208.000244140625, + "x": 2829.0, + "y": 2653.0, + "width": 208.0, "height": 278.0 } }, @@ -4350,15 +5032,15 @@ "m_Type": "UnityEditor.ShaderGraph.GradientNode", "m_ObjectId": "75fa868fae71478088a0f08012d22fa1", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Gradient", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1325.0, - "y": 1726.0, + "x": 1325.0001220703125, + "y": 1726.0001220703125, "width": 208.0, "height": 104.0 } @@ -4380,9 +5062,9 @@ "m_Value": 0.0, "m_SerializableColorKeys": [ { - "x": 0.02995728701353073, - "y": 0.02995728701353073, - "z": 0.08490568399429321, + "x": 0.017977925017476083, + "y": 0.017977925017476083, + "z": 0.04716980457305908, "w": 0.4000000059604645 }, { @@ -4392,9 +5074,9 @@ "w": 0.5000076293945313 }, { - "x": 0.8830189108848572, - "y": 0.9336085319519043, - "z": 0.9811320900917053, + "x": 0.5616945624351502, + "y": 0.7503681182861328, + "z": 0.9245283007621765, "w": 0.7647058963775635 } ], @@ -4422,7 +5104,7 @@ "m_ShaderOutputName": "B", "m_StageCapability": 3, "m_Value": { - "e00": 0.5, + "e00": 0.30000001192092898, "e01": 2.0, "e02": 2.0, "e03": 2.0, @@ -4483,30 +5165,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "77fcc5470e13451ea970c427cb436929", - "m_Id": 1, - "m_DisplayName": "Edge2", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Edge2", - "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.DynamicVectorMaterialSlot", @@ -4534,12 +5192,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "79299e4730c24eed80660395568ec34d", - "m_Id": 2, - "m_DisplayName": "In", - "m_SlotType": 0, + "m_ObjectId": "7a8a629fc4314286977a03f098becb64", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "In", + "m_ShaderOutputName": "", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4558,10 +5216,10 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "7a8a629fc4314286977a03f098becb64", - "m_Id": 1, + "m_ObjectId": "7b0fd3447dde45d687c922c26237b112", + "m_Id": 0, "m_DisplayName": "", - "m_SlotType": 1, + "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "", "m_StageCapability": 3, @@ -4579,15 +5237,114 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "7bbf8d6042a7448a9e3dd15467ff9e8e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 3502.000244140625, + "y": 2849.0, + "width": 142.999755859375, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "5a7f23c582e449ffb5b95cb036baf8d0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "7cfa9a4a9c7d4605b738648de06443c3" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SaturateNode", + "m_ObjectId": "7c65735d816b41f3b142542b3e5d7a31", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Saturate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 4002.000244140625, + "y": 2769.0, + "width": 208.000244140625, + "height": 278.000244140625 + } + }, + "m_Slots": [ + { + "m_Id": "44036ea7a7094280b2e0197e69806d33" + }, + { + "m_Id": "6e00306422394312b84fcd6844d20b8a" + } + ], + "synonyms": [ + "clamp" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "7cfa9a4a9c7d4605b738648de06443c3", + "m_Guid": { + "m_GuidSerialized": "734c5604-e2f8-445a-8615-b483a0a5b421" + }, + "m_Name": "GroundBlend", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "GroundBlend", + "m_DefaultReferenceName": "_GroundBlend", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.25, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "7b0fd3447dde45d687c922c26237b112", + "m_ObjectId": "7e79d2747a89426bb27925effb86cee1", "m_Id": 0, - "m_DisplayName": "", + "m_DisplayName": "A", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "", + "m_ShaderOutputName": "A", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4606,12 +5363,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "7e79d2747a89426bb27925effb86cee1", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, + "m_ObjectId": "7eb317147a374bcd9a558a48d17ae4ad", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": { "x": 0.0, @@ -4757,8 +5514,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4768.99951171875, - "y": 1789.0, + "x": 5317.0, + "y": 1733.0, "width": 166.0, "height": 34.0 } @@ -4816,10 +5573,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1422.0, - "y": 508.9999694824219, - "width": 56.0, - "height": 24.000030517578126 + "x": 1553.0, + "y": 707.0, + "width": 56.0001220703125, + "height": 24.0 } }, "m_Slots": [ @@ -4839,6 +5596,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "878d54b164c748d38b08ea22c8a190de", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicVectorMaterialSlot", @@ -4911,12 +5716,36 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8854205ef9ef450eb167385bb40b4fa8", + "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": 1, "m_Type": "UnityEditor.ShaderGraph.ColorNode", "m_ObjectId": "88d58134e77840a191beb1b23517fdc0", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Color", "m_DrawState": { @@ -5368,9 +6197,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1611.0, - "y": 2576.0, - "width": 208.0001220703125, + "x": 1575.9998779296875, + "y": 2672.0, + "width": 208.0, "height": 278.0 } }, @@ -5453,6 +6282,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9caf30ee01174eb8b4b59f32ba6c3257", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.GradientNode", @@ -5465,10 +6318,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 335.0000305175781, - "y": 405.0, - "width": 207.99996948242188, - "height": 104.00003051757813 + "x": 466.0000305175781, + "y": 602.9999389648438, + "width": 207.99990844726563, + "height": 104.00006103515625 } }, "m_Slots": [ @@ -5734,12 +6587,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ab17d1d07441435c97c801cb9e582d62", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.MultiplyNode", "m_ObjectId": "ac869a26dd2b4370a15cacf2657d301d", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Multiply", "m_DrawState": { @@ -5776,6 +6653,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "accbdce91d634fc58acd04470837df32", + "m_Id": 2, + "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.DynamicVectorMaterialSlot", @@ -6036,9 +6937,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1347.0, - "y": 2555.0, - "width": 208.0, + "x": 1312.0, + "y": 2651.0, + "width": 208.0001220703125, "height": 315.0 } }, @@ -6065,8 +6966,8 @@ "m_ObjectId": "aff3db42745b459c9bca73bfea0afd9a", "m_Title": "Sun Bloom", "m_Position": { - "x": 430.99993896484377, - "y": -83.99996948242188 + "x": -175.00009155273438, + "y": 354.0000305175781 } } @@ -6094,57 +6995,14 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SmoothstepNode", - "m_ObjectId": "b1120c2e1d5e4915b22a1ad5fa1d1f33", - "m_Group": { - "m_Id": "6958154701694f7daab2bd60fbc56d55" - }, - "m_Name": "Smoothstep", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -119.99999237060547, - "y": 1541.0, - "width": 208.00006103515626, - "height": 326.0 - } - }, - "m_Slots": [ - { - "m_Id": "35549a319b234ce680f0bca49603eae9" - }, - { - "m_Id": "77fcc5470e13451ea970c427cb436929" - }, - { - "m_Id": "79299e4730c24eed80660395568ec34d" - }, - { - "m_Id": "0c9469d38f3c44c5b1122c0982dc6e68" - } - ], - "synonyms": [ - "curve" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.GroupData", "m_ObjectId": "b1410891b6654c5eaefff0d5ca051303", "m_Title": "HorizonBlend", "m_Position": { - "x": 1322.0, - "y": 2496.0 + "x": 1286.9998779296875, + "y": 2591.999755859375 } } @@ -6512,9 +7370,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -893.0, - "y": 1536.9998779296875, - "width": 208.0, + "x": -582.0001220703125, + "y": 1577.0, + "width": 207.99996948242188, "height": 302.0001220703125 } }, @@ -6571,7 +7429,7 @@ "m_Type": "UnityEditor.ShaderGraph.SampleGradient", "m_ObjectId": "c235c3639d9849ad94ff14b119b921b1", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Sample Gradient", "m_DrawState": { @@ -7020,7 +7878,7 @@ "m_Type": "UnityEditor.ShaderGraph.AddNode", "m_ObjectId": "cb9425794dbc46cdb8c3c7f9fb077a88", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Add", "m_DrawState": { @@ -7081,6 +7939,70 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "cba37259938749fba385df8fba18b7e2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1065.0, + "y": 470.9999694824219, + "width": 56.0, + "height": 24.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "878d54b164c748d38b08ea22c8a190de" + }, + { + "m_Id": "69f0ae8c030b4c93927ca43eb44e7588" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "ce070598a336475782a1b421678a57eb", + "m_Guid": { + "m_GuidSerialized": "075bb739-a3f8-4d5c-96a8-a4123f9a76dd" + }, + "m_Name": "GroundColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "GroundColor", + "m_DefaultReferenceName": "_GroundColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.37735849618911745, + "g": 0.37735849618911745, + "b": 0.37735849618911745, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", @@ -7258,6 +8180,31 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d5318889ab4a4868b14a060ade7e3ba9", + "m_Id": 0, + "m_DisplayName": "GroundColor", + "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.OneMinusNode", @@ -7309,10 +8256,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 5024.0, - "y": 1625.9998779296875, + "x": 5516.0, + "y": 1615.0001220703125, "width": 208.0, - "height": 326.0001220703125 + "height": 325.9998779296875 } }, "m_Slots": [ @@ -7390,6 +8337,65 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d96ebbbc082e4af2a11e373eb1074213", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.RedirectNodeData", + "m_ObjectId": "db8ae7148bd24f2fb693d8dbd21d8c98", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 5120.0, + "y": 957.0000610351563, + "width": 56.0, + "height": 24.0 + } + }, + "m_Slots": [ + { + "m_Id": "75147b0c6da44bd09f090de5983469a1" + }, + { + "m_Id": "0ab9c60cc86249bbb887b240af1fbc07" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -7666,7 +8672,7 @@ "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", "m_ObjectId": "e00ea24d00c34a48aeb82f5ab67d02ba", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Redirect Node", "m_DrawState": { @@ -8055,7 +9061,7 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4460.0, + "x": 4561.0, "y": 1615.0001220703125, "width": 208.0, "height": 301.9998779296875 @@ -8085,6 +9091,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f1d9db209ef9434cb2f8fd8b9aabfd89", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.SplitNode", @@ -8097,8 +9127,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 1861.0, - "y": 2576.0, + "x": 1826.0, + "y": 2672.0, "width": 120.0, "height": 149.0 } @@ -8150,7 +9180,7 @@ "overrideHLSLDeclaration": false, "hlslDeclarationOverride": 0, "m_Hidden": false, - "m_Value": 0.009999999776482582, + "m_Value": 0.20000000298023225, "m_FloatType": 1, "m_RangeValues": { "x": 0.0, @@ -8218,10 +9248,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 456.0, - "y": -25.0000057220459, - "width": 207.99993896484376, - "height": 326.0 + "x": -150.00006103515626, + "y": 412.9999694824219, + "width": 208.0001220703125, + "height": 325.9999084472656 } }, "m_Slots": [ @@ -8278,7 +9308,7 @@ "m_Type": "UnityEditor.ShaderGraph.LerpNode", "m_ObjectId": "f49ec666afe14c929decc77b4aa064a5", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Lerp", "m_DrawState": { @@ -8378,9 +9408,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 2324.0, - "y": 2650.0, - "width": 208.000244140625, + "x": 2289.0, + "y": 2746.0, + "width": 208.0, "height": 278.0 } }, @@ -8524,8 +9554,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 3291.19970703125, - "y": 2507.19970703125, + "x": 3252.999755859375, + "y": 2520.999755859375, "width": 56.0, "height": 24.000244140625 } @@ -8592,6 +9622,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "fc8a494852f54a9dbb0ade9d260753f1", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "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.DynamicValueMaterialSlot", @@ -8645,7 +9699,7 @@ "m_Type": "UnityEditor.ShaderGraph.LerpNode", "m_ObjectId": "ff01cfb737d745dc9cc49d1ee537942d", "m_Group": { - "m_Id": "" + "m_Id": "194b1136a6b14c6082b28924884c1ac6" }, "m_Name": "Lerp", "m_DrawState": { diff --git a/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat b/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat index 263d4f7c..736b316b 100644 --- a/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat +++ b/Runtime/Resources/CesiumSkyController/CesiumSkyShaderGraph.mat @@ -48,10 +48,14 @@ Material: m_Offset: {x: 0, y: 0} m_Ints: [] m_Floats: + - _GroundBlend: 0.277 + - _GroundPos: 0 + - _GroundPos2: 0.33 - _QueueControl: 0 - _QueueOffset: 0 - _SunRadius: 0.02 m_Colors: + - _GroundColor: {r: 0.2264151, g: 0.2264151, b: 0.2264151, a: 0} - _SkyColorDay: {r: 0.32999998, g: 0.59, b: 0.83, a: 1} - _SkyColorNight: {r: 0.016, g: 0.016, b: 0.09999997, a: 1} - _SunDirectionSG: {r: 0.8, g: 0.25, b: 0.25, a: 0} From 058f02171f7924ea4676ad74d2ea0d650513044f Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:35:59 -0500 Subject: [PATCH 16/18] Begin c++ implementation --- .../Runtime/src/CesiumSkyControllerImpl.cpp | 37 +++++++++++++++++++ native~/Runtime/src/CesiumSkyControllerImpl.h | 28 ++++++++++++++ native~/extern/cesium-native | 2 +- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 native~/Runtime/src/CesiumSkyControllerImpl.cpp create mode 100644 native~/Runtime/src/CesiumSkyControllerImpl.h diff --git a/native~/Runtime/src/CesiumSkyControllerImpl.cpp b/native~/Runtime/src/CesiumSkyControllerImpl.cpp new file mode 100644 index 00000000..605dc030 --- /dev/null +++ b/native~/Runtime/src/CesiumSkyControllerImpl.cpp @@ -0,0 +1,37 @@ +#include "CesiumSkyControllerImpl.h" + +#include + +#include +#include "UnityTransforms.h" + +#include + +#include + +using namespace CesiumGeospatial; +using namespace DotNet; + +namespace CesiumForUnityNative { + + CesiumSkyControllerImpl::CesiumSkyControllerImpl( + const DotNet::CesiumForUnity::CesiumSkyController& skyController) {} + + CesiumSkyControllerImpl::~CesiumSkyControllerImpl() {} + + void CesiumSkyControllerImpl::JustBeforeDelete( + const DotNet::CesiumForUnity::CesiumSkyController& skyController) {} + + UnityEngine::Vector3 + CesiumSkyControllerImpl::CalculateSunPosition( + const DotNet::CesiumForUnity::CesiumSkyController& + skyController, float& time) { + + glm::dvec3 cppAngle = SunPosition::getSunAngle(time); + + UnityEngine::Vector3 sunAngle; + sunAngle = UnityTransforms::toUnity(cppAngle); + + return sunAngle; + } + } diff --git a/native~/Runtime/src/CesiumSkyControllerImpl.h b/native~/Runtime/src/CesiumSkyControllerImpl.h new file mode 100644 index 00000000..ed361660 --- /dev/null +++ b/native~/Runtime/src/CesiumSkyControllerImpl.h @@ -0,0 +1,28 @@ +#pragma once + +namespace DotNet::UnityEngine { +struct Vector3; +} // namespace DotNet::UnityEngine + +namespace DotNet::CesiumForUnity { +class CesiumSkyController; + +} + + + +namespace CesiumForUnityNative { +class CesiumSkyControllerImpl { + public: + CesiumSkyControllerImpl( + const DotNet::CesiumForUnity::CesiumSkyController& skyController); + ~CesiumSkyControllerImpl(); + + void JustBeforeDelete(const DotNet::CesiumForUnity::CesiumSkyController& skyController); + + DotNet::UnityEngine::Vector3 + CalculateSunPosition(const DotNet::CesiumForUnity::CesiumSkyController& + skyController, float& time); + }; + +} diff --git a/native~/extern/cesium-native b/native~/extern/cesium-native index 8c7600d4..9baa8373 160000 --- a/native~/extern/cesium-native +++ b/native~/extern/cesium-native @@ -1 +1 @@ -Subproject commit 8c7600d4a472cb64fb3220e957db6a8deb59e048 +Subproject commit 9baa837325a48c1bf6f2e3c2c777cdda2a05f4c6 From 847cb9a82493a2e2ba955572062cbadf5cf71d5a Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:49:23 -0500 Subject: [PATCH 17/18] Update CesiumSkyController.cs --- Runtime/CesiumSkyController.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Runtime/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs index da6c0693..e9f56d80 100644 --- a/Runtime/CesiumSkyController.cs +++ b/Runtime/CesiumSkyController.cs @@ -217,13 +217,6 @@ void ResolveCamera() } } - //public partial void CalculateSunPosition(float time) // This will be a partial class that is entirely implemented in Cesium Native - //{ - // float hourToAngle = ((timeOfDay * 15.0f) - 90.0f); - // Vector3 positionToRotation = new Vector3(hourToAngle, _northOffset, 0); - - // return positionToRotation; - // } private partial Vector3 CalculateSunPosition(float t); public void SetSunPosition() From 680c9d34f488215c63596c4dc9b039009de548e2 Mon Sep 17 00:00:00 2001 From: Alex Gallegos <39537389+argallegos@users.noreply.github.com> Date: Mon, 6 Feb 2023 11:57:46 -0500 Subject: [PATCH 18/18] Formatting --- Runtime/CesiumSkyController.cs | 10 +++--- .../Runtime/src/CesiumSkyControllerImpl.cpp | 34 +++++++++---------- native~/Runtime/src/CesiumSkyControllerImpl.h | 23 ++++++------- 3 files changed, 32 insertions(+), 35 deletions(-) diff --git a/Runtime/CesiumSkyController.cs b/Runtime/CesiumSkyController.cs index e9f56d80..b39c6119 100644 --- a/Runtime/CesiumSkyController.cs +++ b/Runtime/CesiumSkyController.cs @@ -5,7 +5,7 @@ using CesiumForUnity; namespace CesiumForUnity -{ +{ [ExecuteInEditMode] [ReinteropNativeImplementation("CesiumForUnityNative::CesiumSkyControllerImpl", "CesiumSkyControllerImpl.h")] public partial class CesiumSkyController : MonoBehaviour @@ -180,7 +180,7 @@ public void UpdateSky() { SetSunPosition(); if (_useCesiumSkybox) - { + { GetCameraHeight(); } @@ -281,8 +281,8 @@ void Awake() } void LateUpdate() - { - if (updateOnTick) + { + if (updateOnTick) { if (Application.IsPlaying(gameObject) || _updateInEditor) { @@ -291,6 +291,6 @@ void LateUpdate() } } - + } } \ No newline at end of file diff --git a/native~/Runtime/src/CesiumSkyControllerImpl.cpp b/native~/Runtime/src/CesiumSkyControllerImpl.cpp index 605dc030..216ab455 100644 --- a/native~/Runtime/src/CesiumSkyControllerImpl.cpp +++ b/native~/Runtime/src/CesiumSkyControllerImpl.cpp @@ -1,37 +1,35 @@ #include "CesiumSkyControllerImpl.h" -#include - -#include #include "UnityTransforms.h" -#include +#include +#include #include +#include using namespace CesiumGeospatial; using namespace DotNet; namespace CesiumForUnityNative { - CesiumSkyControllerImpl::CesiumSkyControllerImpl( +CesiumSkyControllerImpl::CesiumSkyControllerImpl( const DotNet::CesiumForUnity::CesiumSkyController& skyController) {} - CesiumSkyControllerImpl::~CesiumSkyControllerImpl() {} +CesiumSkyControllerImpl::~CesiumSkyControllerImpl() {} - void CesiumSkyControllerImpl::JustBeforeDelete( - const DotNet::CesiumForUnity::CesiumSkyController& skyController) {} +void CesiumSkyControllerImpl::JustBeforeDelete( + const DotNet::CesiumForUnity::CesiumSkyController& skyController) {} - UnityEngine::Vector3 - CesiumSkyControllerImpl::CalculateSunPosition( - const DotNet::CesiumForUnity::CesiumSkyController& - skyController, float& time) { +UnityEngine::Vector3 CesiumSkyControllerImpl::CalculateSunPosition( + const DotNet::CesiumForUnity::CesiumSkyController& skyController, + float& time) { - glm::dvec3 cppAngle = SunPosition::getSunAngle(time); + glm::dvec3 cppAngle = SunPosition::getSunAngle(time); - UnityEngine::Vector3 sunAngle; - sunAngle = UnityTransforms::toUnity(cppAngle); + UnityEngine::Vector3 sunAngle; + sunAngle = UnityTransforms::toUnity(cppAngle); - return sunAngle; - } - } + return sunAngle; +} +} // namespace CesiumForUnityNative diff --git a/native~/Runtime/src/CesiumSkyControllerImpl.h b/native~/Runtime/src/CesiumSkyControllerImpl.h index ed361660..62d05978 100644 --- a/native~/Runtime/src/CesiumSkyControllerImpl.h +++ b/native~/Runtime/src/CesiumSkyControllerImpl.h @@ -9,20 +9,19 @@ class CesiumSkyController; } - - namespace CesiumForUnityNative { class CesiumSkyControllerImpl { - public: - CesiumSkyControllerImpl( - const DotNet::CesiumForUnity::CesiumSkyController& skyController); - ~CesiumSkyControllerImpl(); +public: + CesiumSkyControllerImpl( + const DotNet::CesiumForUnity::CesiumSkyController& skyController); + ~CesiumSkyControllerImpl(); - void JustBeforeDelete(const DotNet::CesiumForUnity::CesiumSkyController& skyController); + void JustBeforeDelete( + const DotNet::CesiumForUnity::CesiumSkyController& skyController); - DotNet::UnityEngine::Vector3 - CalculateSunPosition(const DotNet::CesiumForUnity::CesiumSkyController& - skyController, float& time); - }; + DotNet::UnityEngine::Vector3 CalculateSunPosition( + const DotNet::CesiumForUnity::CesiumSkyController& skyController, + float& time); +}; -} +} // namespace CesiumForUnityNative