Bar Ui 작업 중2

This commit is contained in:
NTG_Lenovo 2024-09-03 21:04:25 +09:00
parent 340408a8d4
commit 4bac95ec9b
18 changed files with 1908 additions and 129 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using Sirenix.OdinInspector;
using TMPro;
using UnityEngine;
using UnityEngine.Pool;
@ -20,6 +21,9 @@ namespace BlueWater
[SerializeField]
private Collider2D _reachedCollider;
[SerializeField]
private TMP_Text _amountText;
[Title("스폰 데이터")]
[SerializeField, Required]
@ -142,7 +146,7 @@ namespace BlueWater
public void Initialize()
{
_instanceLiquidCount = 0;
_currentLiquidAmount = 0f;
SetCurrentAmount(0f);
_currentMixedColor = _liquidColor;
_instanceMaterial.SetColor(_liquidColorHash, _currentMixedColor * _colorIntensity);
}
@ -206,7 +210,7 @@ namespace BlueWater
_colorCounts.Clear();
_instanceLiquidCount = 0;
_currentLiquidAmount = 0f;
SetCurrentAmount(0f);
_instanceMaterial.SetFloat(_liquidAmountHash, 0f);
}
@ -220,6 +224,24 @@ namespace BlueWater
{
_isPouring = false;
}
private void SetCurrentAmount(float value)
{
_currentLiquidAmount = value;
if (_amountText)
{
var percent = (int)(_currentLiquidAmount / _maxLiquidCount * 100);
_amountText.text = $"{percent}%";
}
else
{
if (_amountText.enabled)
{
_amountText.enabled = false;
}
}
}
/// <summary>
/// 사용된 색상의 비율에 맞게 색을 혼합시키는 함수
@ -250,7 +272,7 @@ namespace BlueWater
public void OnLiquidReached()
{
_liquidReachedTime = Time.time;
_currentLiquidAmount++;
SetCurrentAmount(++_currentLiquidAmount);
var liquidAmount = Mathf.Clamp(_currentLiquidAmount / _maxLiquidCount, 0f, 1f);
_instanceMaterial.SetFloat(_liquidAmountHash, liquidAmount);
_targetColor = MixColorsByTime();

View File

@ -1,13 +1,18 @@
using System.Collections.Generic;
using UnityEngine;
namespace BlueWater.Uis
{
public class BarUi : SwitchActionPopupUi
{
[SerializeField]
private CocktailStatusUi _cocktailStatusUi;
public override void Open(List<PopupUi> popupUiList)
{
base.Open(popupUiList);
_cocktailStatusUi.ResetCocktailStatus();
TycoonCameraManager.Instance.SetMainCamera(TycoonCameraType.Bar);
TycoonEvents.OnDrinkUiOpened?.Invoke();
}

View File

@ -11,8 +11,8 @@ namespace BlueWater.Uis
{
public class BrewingUi : SwitchActionPopupUi
{
[SerializeField, Required]
private DrinkRecipeSlotUi _drinkRecipeSlotUiPrefab;
[FormerlySerializedAs("_drinkRecipeSlotUiPrefab")] [SerializeField, Required]
private LiquidRecipeSlotUi liquidRecipeSlotUiPrefab;
[SerializeField, Required]
private Transform _drinkRecipeSpawnLocation;
@ -36,7 +36,7 @@ namespace BlueWater.Uis
[SerializeField]
private Brewing _currentBrewing;
private List<DrinkRecipeSlotUi> _drinkRecipeSlotUis = new();
private List<LiquidRecipeSlotUi> _drinkRecipeSlotUis = new();
private void Start()
{
@ -103,7 +103,7 @@ namespace BlueWater.Uis
private void AddDrinkRecipe(string idx)
{
var instance = Instantiate(_drinkRecipeSlotUiPrefab, _drinkRecipeSpawnLocation);
var instance = Instantiate(liquidRecipeSlotUiPrefab, _drinkRecipeSpawnLocation);
instance.Initialize(idx);
_drinkRecipeSlotUis.Add(instance);
}

View File

@ -0,0 +1,62 @@
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.UI;
namespace BlueWater
{
public class CenterSlider : MonoBehaviour
{
[SerializeField]
private RectTransform _fillRect;
[SerializeField]
private Image _fill;
[SerializeField]
private RectTransform _handleRect;
[SerializeField]
private float _minValue;
[SerializeField]
private float _maxValue = 1f;
[SerializeField]
private float _value;
[SerializeField]
private Color _minColor = Color.white;
[SerializeField]
private Color _maxColor = Color.white;
private readonly float _centerAnchorX = 0.5f;
private void Start()
{
SetValue(_value);
}
private void UpdateSlider(float value)
{
// 0 ~ 1값
var normalizedValue = (value - _minValue) / (_maxValue - _minValue);
_fill.color = normalizedValue < 0.5f ? _minColor : _maxColor;
_handleRect.anchorMin = new Vector2(normalizedValue, 0f);
_handleRect.anchorMax = new Vector2(normalizedValue, 1f);
_fillRect.anchorMin = new Vector2(Mathf.Clamp(_handleRect.anchorMin.x, 0, _centerAnchorX), 0);
_fillRect.anchorMax = new Vector2(Mathf.Clamp(_handleRect.anchorMin.x, _centerAnchorX, 1), 1);
}
[Button("값 추가")]
public void SetValue(float value)
{
var newValue = Mathf.Clamp(value, _minValue, _maxValue);
_value = newValue;
UpdateSlider(_value);
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: d0b242c6d3d747f48ab34ff4e8485aaf

View File

@ -0,0 +1,56 @@
using Sirenix.OdinInspector;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace BlueWater.Uis
{
public class CocktailStatusUi : MonoBehaviour
{
[Title("알코올")]
[SerializeField]
private Slider _alcoholSlider;
[SerializeField]
private TMP_Text _alcoholText;
[Title("온도")]
[SerializeField]
private CenterSlider _temperatureSlider;
[SerializeField]
private TMP_Text _temperatureText;
[Title("맛")]
[SerializeField]
private CenterSlider _bitterSweetSlider;
[SerializeField]
private TMP_Text _bitterSweetText;
[Title("향")]
[SerializeField]
private Slider _scentSlider;
[SerializeField]
private TMP_Text _scentText;
private const string AlcoholUnitText = "(alc)";
public void ResetCocktailStatus()
{
_alcoholSlider.value = 0f;
_temperatureSlider.SetValue(0f);
_bitterSweetSlider.SetValue(0f);
_scentSlider.value = 0f;
}
public void SetCocktailStatus(float alcohol, float temperature, float bitterSweet, float scent)
{
_alcoholSlider.value = alcohol;
_temperatureSlider.SetValue(temperature);
_bitterSweetSlider.SetValue(bitterSweet);
_scentSlider.value = scent;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f6deeba2587097647a0eeb3e8436bd9d

View File

@ -7,7 +7,7 @@ using UnityEngine.UI;
namespace BlueWater.Uis
{
[Serializable]
public class DrinkRecipeSlotUi : MonoBehaviour
public class LiquidRecipeSlotUi : MonoBehaviour
{
[SerializeField]
private Button _button;

View File

@ -6,7 +6,7 @@ using UnityEngine.UI;
namespace BlueWater.Uis
{
[Serializable]
public class CocktailIngredientSlotUi : MonoBehaviour
public class LiquidSlotUi : MonoBehaviour
{
[SerializeField]
private Button _button;

View File

@ -0,0 +1,144 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4409874377547118702
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: 9
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: GradientSlider
m_Shader: {fileID: -6465566751694194690, guid: ae82fd6780cf2e54b850202306896be6, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
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:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _ColorMask: 15
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _Surface: 0
- _UIMaskSoftnessX: 1
- _UIMaskSoftnessY: 1
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _ClipRect: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 65422bd8c2510674dbaf427e79c76269
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -89,7 +89,7 @@ GameObject:
- component: {fileID: 3050633509931874182}
- component: {fileID: 282528693430034096}
m_Layer: 5
m_Name: DrinkRecipeSlotUi
m_Name: LiquidRecipeSlotUi
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

View File

@ -0,0 +1,945 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "125e252b280d4043a3e232ad66365ff2",
"m_Properties": [
{
"m_Id": "a128696d045141149cfb3bf816b54d80"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "b24d1c02f74d48e5a6cb3e41a064f0fa"
}
],
"m_Nodes": [
{
"m_Id": "40a37cf1d98f49d2a7766d6a9c7a304b"
},
{
"m_Id": "0211643180e94c54bcd79ec77dc452ea"
},
{
"m_Id": "482587c66b08454d8c0cf94bb2a533ec"
},
{
"m_Id": "a5d899d55d4c42c2bee93c46b469c0a0"
},
{
"m_Id": "1fe4e18012224bd086abad48cef570a5"
},
{
"m_Id": "aae61fd383a145759ae1fa10631fabba"
},
{
"m_Id": "5e0d5368f6144fa3a05f2b5e989e25ba"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "1fe4e18012224bd086abad48cef570a5"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "40a37cf1d98f49d2a7766d6a9c7a304b"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5e0d5368f6144fa3a05f2b5e989e25ba"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1fe4e18012224bd086abad48cef570a5"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a5d899d55d4c42c2bee93c46b469c0a0"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1fe4e18012224bd086abad48cef570a5"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "aae61fd383a145759ae1fa10631fabba"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5e0d5368f6144fa3a05f2b5e989e25ba"
},
"m_SlotId": 0
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 200.0
},
"m_Blocks": [
{
"m_Id": "40a37cf1d98f49d2a7766d6a9c7a304b"
},
{
"m_Id": "0211643180e94c54bcd79ec77dc452ea"
},
{
"m_Id": "482587c66b08454d8c0cf94bb2a533ec"
}
]
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Shader Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": ""
},
"m_SubDatas": [],
"m_ActiveTargets": [
{
"m_Id": "72dd91f1183d498f819167fdf65ada12"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "0211643180e94c54bcd79ec77dc452ea",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Emission",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "38602216b85349ffa57dfa5856f2bf92"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Emission"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "15ca3e2a6ecd4dc78b089a004c8dd832",
"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.5,
"y": 0.5,
"z": 0.5
},
"m_Labels": [],
"m_ColorMode": 0,
"m_DefaultColor": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 1.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.SampleGradient",
"m_ObjectId": "1fe4e18012224bd086abad48cef570a5",
"m_Group": {
"m_Id": ""
},
"m_Name": "Sample Gradient",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -642.9998168945313,
"y": 199.99996948242188,
"width": 207.99993896484376,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "6fbe934ec4cb457d95fa2916f5121f30"
},
{
"m_Id": "9b5d385653b04fa7bd2b3810f55e8013"
},
{
"m_Id": "2e071c1ec2c647f997309f104913f763"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "254af246b3ae42258ec1d4d0e0049d97",
"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.Vector4MaterialSlot",
"m_ObjectId": "2e071c1ec2c647f997309f104913f763",
"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.ColorRGBMaterialSlot",
"m_ObjectId": "38602216b85349ffa57dfa5856f2bf92",
"m_Id": 0,
"m_DisplayName": "Emission",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Emission",
"m_StageCapability": 2,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_ColorMode": 1,
"m_DefaultColor": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "40a37cf1d98f49d2a7766d6a9c7a304b",
"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": "15ca3e2a6ecd4dc78b089a004c8dd832"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "482587c66b08454d8c0cf94bb2a533ec",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Alpha",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "71bcf66d2c7a4dee9f08bc89a9774672"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "5679351844564412ae5af9334f89321f",
"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.SplitNode",
"m_ObjectId": "5e0d5368f6144fa3a05f2b5e989e25ba",
"m_Group": {
"m_Id": ""
},
"m_Name": "Split",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1009.9998779296875,
"y": 302.9999694824219,
"width": 120.00006103515625,
"height": 148.99996948242188
}
},
"m_Slots": [
{
"m_Id": "5679351844564412ae5af9334f89321f"
},
{
"m_Id": "e037e7d258e34400b685169a0a598aa7"
},
{
"m_Id": "254af246b3ae42258ec1d4d0e0049d97"
},
{
"m_Id": "8c75f434bf6e4081990d03377c07f669"
},
{
"m_Id": "70120b5270a3424b91d2fc6dac508a2b"
}
],
"synonyms": [
"separate"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GradientInputMaterialSlot",
"m_ObjectId": "6fbe934ec4cb457d95fa2916f5121f30",
"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_ColorSpace": -1,
"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_ColorSpace": -1,
"m_NumColorKeys": 2,
"m_NumAlphaKeys": 2
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "70120b5270a3424b91d2fc6dac508a2b",
"m_Id": 4,
"m_DisplayName": "A",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "71bcf66d2c7a4dee9f08bc89a9774672",
"m_Id": 0,
"m_DisplayName": "Alpha",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 2,
"m_Value": 1.0,
"m_DefaultValue": 1.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
"m_ObjectId": "72dd91f1183d498f819167fdf65ada12",
"m_Datas": [
{
"m_Id": "e43fc642d054436484b7fc14464630de"
}
],
"m_ActiveSubTarget": {
"m_Id": "c0126ad9f7e344cd93a205ece9acb55b"
},
"m_AllowMaterialOverride": false,
"m_SurfaceType": 0,
"m_ZTestMode": 4,
"m_ZWriteControl": 0,
"m_AlphaMode": 0,
"m_RenderFace": 2,
"m_AlphaClip": false,
"m_CastShadows": true,
"m_ReceiveShadows": true,
"m_DisableTint": false,
"m_AdditionalMotionVectorMode": 0,
"m_AlembicMotionVectors": false,
"m_SupportsLODCrossFade": false,
"m_CustomEditorGUI": "",
"m_SupportVFX": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "8c75f434bf6e4081990d03377c07f669",
"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": "9b5d385653b04fa7bd2b3810f55e8013",
"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.GradientShaderProperty",
"m_ObjectId": "a128696d045141149cfb3bf816b54d80",
"m_Guid": {
"m_GuidSerialized": "c67d0ed6-ff75-47f5-9414-be832a06c9e4"
},
"m_Name": "Gradient",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Gradient",
"m_DefaultReferenceName": "_Gradient",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": false,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"serializedVersion": "2",
"key0": {
"r": 0.0,
"g": 0.0,
"b": 1.0,
"a": 1.0
},
"key1": {
"r": 0.0,
"g": 0.03921568766236305,
"b": 1.0,
"a": 1.0
},
"key2": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"key3": {
"r": 1.0,
"g": 0.03921568766236305,
"b": 0.0,
"a": 0.0
},
"key4": {
"r": 1.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": 29491,
"ctime2": 32768,
"ctime3": 36044,
"ctime4": 65535,
"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_ColorSpace": 1,
"m_NumColorKeys": 5,
"m_NumAlphaKeys": 2
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "a5d899d55d4c42c2bee93c46b469c0a0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -800.9998779296875,
"y": 183.0,
"width": 113.0,
"height": 33.99998474121094
}
},
"m_Slots": [
{
"m_Id": "fac570dcada74bb99f8f84df7704cf04"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "a128696d045141149cfb3bf816b54d80"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVNode",
"m_ObjectId": "aae61fd383a145759ae1fa10631fabba",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1250.9998779296875,
"y": 271.9999694824219,
"width": 208.0001220703125,
"height": 313.0000305175781
}
},
"m_Slots": [
{
"m_Id": "d0bf0b18495841e3b036937f9ecea82f"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "b24d1c02f74d48e5a6cb3e41a064f0fa",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "a128696d045141149cfb3bf816b54d80"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalCanvasSubTarget",
"m_ObjectId": "c0126ad9f7e344cd93a205ece9acb55b"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "d0bf0b18495841e3b036937f9ecea82f",
"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.Vector1MaterialSlot",
"m_ObjectId": "e037e7d258e34400b685169a0a598aa7",
"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.Rendering.Canvas.ShaderGraph.CanvasData",
"m_ObjectId": "e43fc642d054436484b7fc14464630de",
"m_Version": 0,
"m_AlphaClip": false,
"m_DisableTint": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GradientMaterialSlot",
"m_ObjectId": "fac570dcada74bb99f8f84df7704cf04",
"m_Id": 0,
"m_DisplayName": "Gradient",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3
}

View File

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