0.3.2.3
This commit is contained in:
parent
619ce13f38
commit
a85c91211e
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 220707b92d9118b428f678148448058a
|
||||
guid: c142668ac9cb04544bb0250da1353ec5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
30226
Assets/01.Scenes/01.Tycoon 2.unity
Normal file
30226
Assets/01.Scenes/01.Tycoon 2.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/01.Scenes/01.Tycoon 2.unity.meta
Normal file
7
Assets/01.Scenes/01.Tycoon 2.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93be6597eb9d77e47a12d5c2d57241dd
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
33952
Assets/01.Scenes/__01.Tycoon 1.unity
Normal file
33952
Assets/01.Scenes/__01.Tycoon 1.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/01.Scenes/__01.Tycoon 1.unity.meta
Normal file
7
Assets/01.Scenes/__01.Tycoon 1.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 220707b92d9118b428f678148448058a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -66,6 +66,20 @@ namespace BlueWater.Items
|
||||
return ingredients;
|
||||
}
|
||||
|
||||
|
||||
public List<CocktailIngredient> GetValidIngredientsToImage()
|
||||
{
|
||||
var ingredients = new List<CocktailIngredient>(5);
|
||||
|
||||
if (!string.IsNullOrEmpty(IngredientIdx1)) ingredients.Add(new CocktailIngredient(IngredientIdx1, IngredientAmount1));
|
||||
if (!string.IsNullOrEmpty(IngredientIdx2)) ingredients.Add(new CocktailIngredient(IngredientIdx2, IngredientAmount2));
|
||||
if (!string.IsNullOrEmpty(IngredientIdx3)) ingredients.Add(new CocktailIngredient(IngredientIdx3, IngredientAmount3));
|
||||
if (!string.IsNullOrEmpty(IngredientIdx4)) ingredients.Add(new CocktailIngredient(IngredientIdx4, IngredientAmount4));
|
||||
if (!string.IsNullOrEmpty(IngredientIdx5)) ingredients.Add(new CocktailIngredient(IngredientIdx5, IngredientAmount5));
|
||||
|
||||
return ingredients;
|
||||
}
|
||||
|
||||
public int GetCocktailAmount(List<CocktailIngredient> cocktailIngredients)
|
||||
{
|
||||
var amount = 0;
|
||||
|
@ -7,4 +7,6 @@ namespace BlueWater.Items
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
|
314
Assets/02.Scripts/Ui/Tycoon/ManualBook.cs
Normal file
314
Assets/02.Scripts/Ui/Tycoon/ManualBook.cs
Normal file
@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BlueWater;
|
||||
using BlueWater.Items;
|
||||
using BlueWater.Tycoons;
|
||||
using ExcelDataReader.Log;
|
||||
using TMPro;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Sirenix.OdinInspector;
|
||||
using Spine;
|
||||
using UnityEngine.Android;
|
||||
|
||||
public class ManualBook : MonoBehaviour
|
||||
{
|
||||
private Image _cocktailImage;
|
||||
private TextMeshProUGUI _cocktailName;
|
||||
private GameObject _ingredientSlot1;
|
||||
private GameObject _ingredientSlot2;
|
||||
private GameObject _ingredientSlot3;
|
||||
|
||||
[field: SerializeField, CLabel("메뉴얼 CockTail Prefab")]
|
||||
private GameObject _ManualCocktailsPrefabs;
|
||||
|
||||
[field: SerializeField, CLabel("리큐르A 이미지")]
|
||||
private Sprite LiquidA_Sprite;
|
||||
[field: SerializeField, CLabel("리큐르B 이미지")]
|
||||
private Sprite LiquidB_Sprite;
|
||||
[field: SerializeField, CLabel("리큐르C 이미지")]
|
||||
private Sprite LiquidC_Sprite;
|
||||
[field: SerializeField, CLabel("리큐르D 이미지")]
|
||||
private Sprite LiquidD_Sprite;
|
||||
[field: SerializeField, CLabel("리큐르E 이미지")]
|
||||
private Sprite LiquidE_Sprite;
|
||||
[field: SerializeField, CLabel("가니쉬1 이미지")]
|
||||
private Sprite Garnish1_Sprite;
|
||||
[field: SerializeField, CLabel("가니쉬2 이미지")]
|
||||
private Sprite Garnish2_Sprite;
|
||||
|
||||
private struct CocktailsBtn
|
||||
{
|
||||
public CocktailData Cocktail { get; set; }
|
||||
public GameObject CockTailButton { get; set; }
|
||||
public string Idx { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int LiquidA { get; set; }
|
||||
public int LiquidB { get; set; }
|
||||
public int LiquidC { get; set; }
|
||||
public int LiquidD { get; set; }
|
||||
public int LiquidE { get; set; }
|
||||
public int Garnish1 { get; set; }
|
||||
public int Garnish2 { get; set; }
|
||||
public bool Enable { get; set; }
|
||||
|
||||
public int Sibling { get; set; }
|
||||
|
||||
internal CocktailsBtn(CocktailData cocktail,GameObject cockTailButton , string idx , string name )
|
||||
{
|
||||
Cocktail = cocktail;
|
||||
CockTailButton = cockTailButton;
|
||||
Idx = idx;
|
||||
Name = name;
|
||||
LiquidA = 0;
|
||||
LiquidB = 0;
|
||||
LiquidC = 0;
|
||||
LiquidD = 0;
|
||||
LiquidE = 0;
|
||||
Garnish1 = 0;
|
||||
Garnish2 = 0;
|
||||
Sibling = 2048;
|
||||
Enable = false;
|
||||
}
|
||||
}
|
||||
|
||||
private Dictionary<string,CocktailsBtn> _cocktailsBtn;
|
||||
|
||||
//private List<Button> _cocktailsBtn;
|
||||
|
||||
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
EventManager.OnLevelUp += UpdateManualBook;
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
_cocktailImage = transform.Find("CooktailPreview").Find("CocktailImage").GetComponent<Image>();
|
||||
_cocktailName = transform.Find("CocktailName").GetComponent<TextMeshProUGUI>();
|
||||
_ingredientSlot1 = transform.Find("IngredientSlot1").gameObject;
|
||||
_ingredientSlot2 = transform.Find("IngredientSlot2").gameObject;
|
||||
_ingredientSlot3 = transform.Find("IngredientSlot3").gameObject;
|
||||
|
||||
_cocktailsBtn = new Dictionary<string,CocktailsBtn>();
|
||||
_cocktailName = transform.Find("CocktailName").GetComponent<TextMeshProUGUI>();
|
||||
|
||||
_ingredientSlot1 = transform.Find("IngredientSlot1").gameObject;
|
||||
_ingredientSlot2 = transform.Find("IngredientSlot2").gameObject;
|
||||
_ingredientSlot3 = transform.Find("IngredientSlot3").gameObject;
|
||||
|
||||
// private Image _ingredientSlot1Image;
|
||||
// private Image _ingredientSlot2Image;
|
||||
// private Image _ingredientSlot3Image;
|
||||
|
||||
var allCocktails = ItemManager.Instance.CocktailDataSo.GetData();
|
||||
foreach (var element in allCocktails.Values)
|
||||
{
|
||||
if (element.Idx.Equals("Cocktail000")) continue; //쓰레기는 메뉴얼에 표시하지 않기
|
||||
|
||||
var cocktail = Instantiate(_ManualCocktailsPrefabs, transform.Find("CocktailButtons"));
|
||||
cocktail.name = element.Idx;
|
||||
cocktail.transform.Find("Image").GetComponent<Image>().sprite = element.Sprite;
|
||||
|
||||
var createCocktailMenu = new CocktailsBtn(element ,cocktail ,element.Idx,element.Name);
|
||||
|
||||
foreach (var element2 in element.GetValidIngredients()) //들어가는 리큐르, 가니쉬 종류
|
||||
{
|
||||
if (element2.Idx.Equals("LiquidA")) {createCocktailMenu.LiquidA = element2.Amount; createCocktailMenu.Sibling -= 1; };
|
||||
if (element2.Idx.Equals("LiquidB")) {createCocktailMenu.LiquidB = element2.Amount; createCocktailMenu.Sibling -= 2; };
|
||||
if (element2.Idx.Equals("LiquidC")) {createCocktailMenu.LiquidC = element2.Amount; createCocktailMenu.Sibling -= 4; };
|
||||
if (element2.Idx.Equals("LiquidD")) {createCocktailMenu.LiquidD = element2.Amount; createCocktailMenu.Sibling -= 8; };
|
||||
if (element2.Idx.Equals("LiquidE")) {createCocktailMenu.LiquidE = element2.Amount; createCocktailMenu.Sibling -= 16; };
|
||||
if (element2.Idx.Equals("Garnish1")) {createCocktailMenu.Garnish1 = element2.Amount; createCocktailMenu.Sibling -= 32; };
|
||||
if (element2.Idx.Equals("Garnish2")) {createCocktailMenu.Garnish2 = element2.Amount; createCocktailMenu.Sibling -= 64; };
|
||||
}
|
||||
|
||||
_cocktailsBtn.Add(element.Idx,createCocktailMenu);
|
||||
}
|
||||
|
||||
var sortedCocktails = _cocktailsBtn.OrderByDescending(element => element.Value.Sibling);
|
||||
|
||||
int index = 0;
|
||||
foreach (var element in sortedCocktails)
|
||||
{
|
||||
element.Value.CockTailButton.transform.SetSiblingIndex(index);
|
||||
index++;
|
||||
}
|
||||
|
||||
Update_Cocktails();
|
||||
SelectedItem(_cocktailsBtn["Cocktail001"].CockTailButton.GetComponent<Button>());
|
||||
|
||||
}
|
||||
|
||||
private void Update_Cocktails()
|
||||
{
|
||||
int playerLv = TycoonManager.Instance.TycoonStatus.CurrentLevel;
|
||||
|
||||
bool check = false;
|
||||
|
||||
var keys = _cocktailsBtn.Keys.ToList();
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
var element = _cocktailsBtn[key];
|
||||
check = false;
|
||||
|
||||
foreach (var element2 in element.Cocktail.GetValidIngredients())
|
||||
{
|
||||
if (element2.Idx.Equals("LiquidA")) {};
|
||||
if (element2.Idx.Equals("LiquidB") && playerLv < 5) { check = true; break; }
|
||||
if (element2.Idx.Equals("LiquidC") && playerLv < 10) { check = true; break; }
|
||||
if (element2.Idx.Equals("LiquidD") && playerLv < 15) { check = true; break; }
|
||||
if (element2.Idx.Equals("LiquidE") && playerLv < 20) { check = true; break; }
|
||||
if (element2.Idx.Equals("Garnish1") && playerLv < 25) { check = true; break; }
|
||||
if (element2.Idx.Equals("Garnish2") && playerLv < 30) { check = true; break; }
|
||||
}
|
||||
|
||||
if (!check)
|
||||
{
|
||||
element.CockTailButton.transform.Find("Image").GetComponent<Image>().material = null;
|
||||
element.Enable = true;
|
||||
|
||||
_cocktailsBtn[key] = element;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SelectedItem(Button clickedButton)
|
||||
{
|
||||
Debug.Log(clickedButton.transform.GetSiblingIndex());
|
||||
|
||||
if (_cocktailsBtn[clickedButton.name].Enable) //활성화 된 음료만 클릭이 되도록 한다.
|
||||
{
|
||||
_cocktailImage.sprite = clickedButton.transform.Find("Image").GetComponent<Image>().sprite;
|
||||
|
||||
bool slot1 = false;
|
||||
bool slot2 = false;
|
||||
bool slot3 = false;
|
||||
|
||||
GameObject slot()
|
||||
{
|
||||
if (!slot1)
|
||||
{
|
||||
slot1 = true;
|
||||
return _ingredientSlot1;
|
||||
}
|
||||
|
||||
if (!slot2)
|
||||
{
|
||||
slot2 = true;
|
||||
return _ingredientSlot2;
|
||||
}
|
||||
|
||||
if (!slot3)
|
||||
{
|
||||
slot3 = true;
|
||||
return _ingredientSlot3;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
//가니쉬 배치를 처음으로...
|
||||
if (_cocktailsBtn[clickedButton.name].Garnish1 != 0)
|
||||
{
|
||||
_ingredientSlot3.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "Garnish1";
|
||||
_ingredientSlot3.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].Garnish1}%";
|
||||
_ingredientSlot3.transform.Find("IngredientImage").GetComponent<Image>().sprite = Garnish1_Sprite;
|
||||
slot3 = true;
|
||||
}
|
||||
else if (_cocktailsBtn[clickedButton.name].Garnish2 != 0)
|
||||
{
|
||||
_ingredientSlot3.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "Garnish2";
|
||||
_ingredientSlot3.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].Garnish2}%";
|
||||
_ingredientSlot3.transform.Find("IngredientImage").GetComponent<Image>().sprite = Garnish2_Sprite;
|
||||
slot3 = true;
|
||||
}
|
||||
|
||||
if (_cocktailsBtn[clickedButton.name].LiquidA != 0)
|
||||
{
|
||||
var ingredient = slot();
|
||||
ingredient.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "LiquidA";
|
||||
ingredient.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].LiquidA}%";
|
||||
ingredient.transform.Find("IngredientImage").GetComponent<Image>().sprite = LiquidA_Sprite;
|
||||
}
|
||||
|
||||
if (_cocktailsBtn[clickedButton.name].LiquidB != 0)
|
||||
{
|
||||
var ingredient = slot();
|
||||
ingredient.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "LiquidB";
|
||||
ingredient.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].LiquidB}%";
|
||||
ingredient.transform.Find("IngredientImage").GetComponent<Image>().sprite = LiquidB_Sprite;
|
||||
}
|
||||
|
||||
if (_cocktailsBtn[clickedButton.name].LiquidC != 0)
|
||||
{
|
||||
var ingredient = slot();
|
||||
ingredient.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "LiquidC";
|
||||
ingredient.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].LiquidC}%";
|
||||
ingredient.transform.Find("IngredientImage").GetComponent<Image>().sprite = LiquidC_Sprite;
|
||||
}
|
||||
|
||||
if (_cocktailsBtn[clickedButton.name].LiquidD != 0)
|
||||
{
|
||||
var ingredient = slot();
|
||||
ingredient.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "LiquidD";
|
||||
ingredient.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].LiquidD}%";
|
||||
ingredient.transform.Find("IngredientImage").GetComponent<Image>().sprite = LiquidD_Sprite;
|
||||
}
|
||||
|
||||
if (_cocktailsBtn[clickedButton.name].LiquidE != 0)
|
||||
{
|
||||
var ingredient = slot();
|
||||
ingredient.transform.Find("IngredientType").GetComponent<TextMeshProUGUI>().text = "LiquidE";
|
||||
ingredient.transform.Find("IngredientPersent").GetComponent<TextMeshProUGUI>().text =
|
||||
$"{_cocktailsBtn[clickedButton.name].LiquidE}%";
|
||||
ingredient.transform.Find("IngredientImage").GetComponent<Image>().sprite = LiquidE_Sprite;
|
||||
}
|
||||
|
||||
if (!slot1)
|
||||
{
|
||||
_ingredientSlot1.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
_ingredientSlot1.SetActive(true);
|
||||
}
|
||||
|
||||
if (!slot2)
|
||||
{
|
||||
_ingredientSlot2.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
_ingredientSlot2.SetActive(true);
|
||||
}
|
||||
|
||||
if (!slot3)
|
||||
{
|
||||
_ingredientSlot3.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
_ingredientSlot3.SetActive(true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void UpdateManualBook(LevelData levelData)
|
||||
{
|
||||
Update_Cocktails();
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Ui/Tycoon/ManualBook.cs.meta
Normal file
2
Assets/02.Scripts/Ui/Tycoon/ManualBook.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8060041d8c8fb244cb07544f18cfb017
|
21
Assets/02.Scripts/Ui/Tycoon/ManualCocktailButton.cs
Normal file
21
Assets/02.Scripts/Ui/Tycoon/ManualCocktailButton.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class ManualCocktailButton : MonoBehaviour
|
||||
{
|
||||
|
||||
public ManualBook manual; // 다른 스크립트가 붙은 오브젝트를 참조 (에디터에서 설정 가능)
|
||||
private Button button;
|
||||
|
||||
void Start()
|
||||
{
|
||||
button = GetComponent<Button>();
|
||||
button.onClick.AddListener(() => OnButtonClicked());
|
||||
}
|
||||
|
||||
// 눌린 버튼을 매개변수로 받는 메서드
|
||||
public void OnButtonClicked()
|
||||
{
|
||||
manual.SelectedItem(this.GetComponent<Button>());
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Ui/Tycoon/ManualCocktailButton.cs.meta
Normal file
2
Assets/02.Scripts/Ui/Tycoon/ManualCocktailButton.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b470f74ac4a54bb4fae06d22ecef1c0e
|
@ -55,7 +55,6 @@ namespace BlueWater.Uis
|
||||
|
||||
VisualFeedbackManager.Instance.SetBaseTimeScale(0f);
|
||||
|
||||
|
||||
// 기존 카드가 있으면 삭제
|
||||
if (_currentCard01 != null)
|
||||
{
|
||||
|
135
Assets/04.Materials/Grayscale.mat
Normal file
135
Assets/04.Materials/Grayscale.mat
Normal file
@ -0,0 +1,135 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Grayscale
|
||||
m_Shader: {fileID: 4800000, guid: c7d22fc772f669c4ea04352edfbc829b, 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
|
||||
- _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
|
||||
- _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}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &6838801980096758212
|
||||
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
|
8
Assets/04.Materials/Grayscale.mat.meta
Normal file
8
Assets/04.Materials/Grayscale.mat.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a05912c0f6e620488206ca5147e771e
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
212
Assets/05.Prefabs/Uis/Tycoons/ManualCocktailButton.prefab
Normal file
212
Assets/05.Prefabs/Uis/Tycoons/ManualCocktailButton.prefab
Normal file
@ -0,0 +1,212 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &181779769155476833
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7646053445687989879}
|
||||
- component: {fileID: 555777395799226202}
|
||||
- component: {fileID: 4734109970123610176}
|
||||
- component: {fileID: 5439083395804682389}
|
||||
- component: {fileID: 6667137138327223632}
|
||||
m_Layer: 5
|
||||
m_Name: ManualCocktailButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7646053445687989879
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 181779769155476833}
|
||||
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: 423343075028179217}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &555777395799226202
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 181779769155476833}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4734109970123610176
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 181779769155476833}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: f80aa7accb1736a41b24c1113c38cbf8, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &5439083395804682389
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 181779769155476833}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 4734109970123610176}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &6667137138327223632
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 181779769155476833}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b470f74ac4a54bb4fae06d22ecef1c0e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
manual: {fileID: 0}
|
||||
--- !u!1 &4085502877294975030
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 423343075028179217}
|
||||
- component: {fileID: 705404688310186420}
|
||||
- component: {fileID: 1754191685957469056}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &423343075028179217
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4085502877294975030}
|
||||
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: []
|
||||
m_Father: {fileID: 7646053445687989879}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 110, y: 110}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &705404688310186420
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4085502877294975030}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1754191685957469056
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4085502877294975030}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 2100000, guid: 3a05912c0f6e620488206ca5147e771e, type: 2}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 0cf23778fd0b2994c9d608fbbf185468, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 52e209f6535e22848b973ed5de9cbc18
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,928 +0,0 @@
|
||||
{
|
||||
"m_SGVersion": 3,
|
||||
"m_Type": "UnityEditor.ShaderGraph.GraphData",
|
||||
"m_ObjectId": "0c543114197c4a749e568a2c690fa5e2",
|
||||
"m_Properties": [
|
||||
{
|
||||
"m_Id": "b414e28881954dfba624121d6f32a56f"
|
||||
}
|
||||
],
|
||||
"m_Keywords": [],
|
||||
"m_Dropdowns": [],
|
||||
"m_CategoryData": [
|
||||
{
|
||||
"m_Id": "e5fb7de4c83442d08ac8889418d81df3"
|
||||
}
|
||||
],
|
||||
"m_Nodes": [
|
||||
{
|
||||
"m_Id": "e691dee6f1124c8a94cfaf21167b6a8f"
|
||||
},
|
||||
{
|
||||
"m_Id": "7abdfc1a29c7483ea553eb232f56e5df"
|
||||
},
|
||||
{
|
||||
"m_Id": "95de9a53de5d443185ad5ab582e8073e"
|
||||
},
|
||||
{
|
||||
"m_Id": "bc1c4910bc2945719a4471471644cadb"
|
||||
},
|
||||
{
|
||||
"m_Id": "3e59a57ae2f2430b90f61779567f0eaf"
|
||||
},
|
||||
{
|
||||
"m_Id": "5f98f650f34347ba9924309640af1fa1"
|
||||
},
|
||||
{
|
||||
"m_Id": "9b9d20c147684325830360dfec1edbb2"
|
||||
}
|
||||
],
|
||||
"m_GroupDatas": [],
|
||||
"m_StickyNoteDatas": [],
|
||||
"m_Edges": [
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "3e59a57ae2f2430b90f61779567f0eaf"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "e691dee6f1124c8a94cfaf21167b6a8f"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "5f98f650f34347ba9924309640af1fa1"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "3e59a57ae2f2430b90f61779567f0eaf"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "95de9a53de5d443185ad5ab582e8073e"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "bc1c4910bc2945719a4471471644cadb"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "9b9d20c147684325830360dfec1edbb2"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "bc1c4910bc2945719a4471471644cadb"
|
||||
},
|
||||
"m_SlotId": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "bc1c4910bc2945719a4471471644cadb"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "3e59a57ae2f2430b90f61779567f0eaf"
|
||||
},
|
||||
"m_SlotId": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"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": "e691dee6f1124c8a94cfaf21167b6a8f"
|
||||
},
|
||||
{
|
||||
"m_Id": "7abdfc1a29c7483ea553eb232f56e5df"
|
||||
}
|
||||
]
|
||||
},
|
||||
"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": "f34aaffdbf3b45cc816b9aa3b6b5a2fb"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "022de4a3056348a6b93d543a97659f10",
|
||||
"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.ScreenPositionMaterialSlot",
|
||||
"m_ObjectId": "1e032218938b49938490947ea3c87e4a",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "UV",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "UV",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
},
|
||||
"m_Labels": [],
|
||||
"m_ScreenSpaceType": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalFullscreenSubTarget",
|
||||
"m_ObjectId": "202a2e123a9643f2ad5900c4237cd467"
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "279105f02d5c450b9ba1c481e4c93e93",
|
||||
"m_Id": 1,
|
||||
"m_DisplayName": "X",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "X",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.2125999927520752,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.ColorRGBAMaterialSlot",
|
||||
"m_ObjectId": "341db1be378d4843a275452455aca8f7",
|
||||
"m_Id": 2,
|
||||
"m_DisplayName": "Output",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Output",
|
||||
"m_StageCapability": 2,
|
||||
"m_Value": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 1.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
},
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
|
||||
"m_ObjectId": "3e59a57ae2f2430b90f61779567f0eaf",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Multiply",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -293.00006103515627,
|
||||
"y": 247.00001525878907,
|
||||
"width": 208.00001525878907,
|
||||
"height": 302.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "e0409fb3600d40ccb8afd44719495778"
|
||||
},
|
||||
{
|
||||
"m_Id": "ec827d75678e4b0f977fe0dafb92d6ca"
|
||||
},
|
||||
{
|
||||
"m_Id": "470b1c76a4d948718505607af0c192cf"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"multiplication",
|
||||
"times",
|
||||
"x"
|
||||
],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
|
||||
"m_ObjectId": "470b1c76a4d948718505607af0c192cf",
|
||||
"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": "4e82d1350b5840a1a3592777aa9c063e",
|
||||
"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.PropertyNode",
|
||||
"m_ObjectId": "5f98f650f34347ba9924309640af1fa1",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -293.00006103515627,
|
||||
"y": 213.00001525878907,
|
||||
"width": 120.00004577636719,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "877a47185d024170a673e5e94ed657b1"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "b414e28881954dfba624121d6f32a56f"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.Rendering.Fullscreen.ShaderGraph.FullscreenData",
|
||||
"m_ObjectId": "6b0bc4a1e1834b37b23efdaad5203dcc",
|
||||
"m_Version": 0,
|
||||
"m_fullscreenMode": 0,
|
||||
"m_BlendMode": 0,
|
||||
"m_SrcColorBlendMode": 0,
|
||||
"m_DstColorBlendMode": 1,
|
||||
"m_ColorBlendOperation": 0,
|
||||
"m_SrcAlphaBlendMode": 0,
|
||||
"m_DstAlphaBlendMode": 1,
|
||||
"m_AlphaBlendOperation": 0,
|
||||
"m_EnableStencil": false,
|
||||
"m_StencilReference": 0,
|
||||
"m_StencilReadMask": 255,
|
||||
"m_StencilWriteMask": 255,
|
||||
"m_StencilCompareFunction": 8,
|
||||
"m_StencilPassOperation": 0,
|
||||
"m_StencilFailOperation": 0,
|
||||
"m_StencilDepthFailOperation": 0,
|
||||
"m_DepthWrite": false,
|
||||
"m_depthWriteMode": 0,
|
||||
"m_AllowMaterialOverride": false,
|
||||
"m_DepthTestMode": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
|
||||
"m_ObjectId": "76b97013a73a4f55bf58a7b262ea0e22",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "Base Color",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "BaseColor",
|
||||
"m_StageCapability": 2,
|
||||
"m_Value": {
|
||||
"x": 0.5,
|
||||
"y": 0.5,
|
||||
"z": 0.5
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"m_Labels": [],
|
||||
"m_ColorMode": 0,
|
||||
"m_DefaultColor": {
|
||||
"r": 0.5,
|
||||
"g": 0.5,
|
||||
"b": 0.5,
|
||||
"a": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
|
||||
"m_ObjectId": "7abdfc1a29c7483ea553eb232f56e5df",
|
||||
"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": "a8e198c891d04dabaf70e3da1ea13b04"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "877a47185d024170a673e5e94ed657b1",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "Intensity",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.Rendering.Universal.UniversalSampleBufferNode",
|
||||
"m_ObjectId": "95de9a53de5d443185ad5ab582e8073e",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "URP Sample Buffer",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -914.0001220703125,
|
||||
"y": 107.0,
|
||||
"width": 208.0,
|
||||
"height": 313.0000305175781
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "1e032218938b49938490947ea3c87e4a"
|
||||
},
|
||||
{
|
||||
"m_Id": "341db1be378d4843a275452455aca8f7"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"normal",
|
||||
"motion vector",
|
||||
"blit"
|
||||
],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_BufferType": 2
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3Node",
|
||||
"m_ObjectId": "9b9d20c147684325830360dfec1edbb2",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Vector 3",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -798.0000610351563,
|
||||
"y": 482.0,
|
||||
"width": 128.0,
|
||||
"height": 125.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "279105f02d5c450b9ba1c481e4c93e93"
|
||||
},
|
||||
{
|
||||
"m_Id": "fed6b789a3694760b9f12dab7fa298a3"
|
||||
},
|
||||
{
|
||||
"m_Id": "ec80bf1c9e4c41daa3064bb1ce8467e4"
|
||||
},
|
||||
{
|
||||
"m_Id": "022de4a3056348a6b93d543a97659f10"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"3",
|
||||
"v3",
|
||||
"vec3",
|
||||
"float3"
|
||||
],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Value": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "a8e198c891d04dabaf70e3da1ea13b04",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "Alpha",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Alpha",
|
||||
"m_StageCapability": 2,
|
||||
"m_Value": 1.0,
|
||||
"m_DefaultValue": 1.0,
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
|
||||
"m_ObjectId": "b414e28881954dfba624121d6f32a56f",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "f41e8b2c-05ec-455a-9260-b21ee84531ed"
|
||||
},
|
||||
"m_Name": "Intensity",
|
||||
"m_DefaultRefNameVersion": 1,
|
||||
"m_RefNameGeneratedByDisplayName": "Intensity",
|
||||
"m_DefaultReferenceName": "_Intensity",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": true,
|
||||
"m_UseCustomSlotLabel": false,
|
||||
"m_CustomSlotLabel": "",
|
||||
"m_DismissedVersion": 0,
|
||||
"m_Precision": 0,
|
||||
"overrideHLSLDeclaration": false,
|
||||
"hlslDeclarationOverride": 0,
|
||||
"m_Hidden": false,
|
||||
"m_Value": 1.0,
|
||||
"m_FloatType": 0,
|
||||
"m_RangeValues": {
|
||||
"x": 0.0,
|
||||
"y": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DotProductNode",
|
||||
"m_ObjectId": "bc1c4910bc2945719a4471471644cadb",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Dot Product",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -564.0000610351563,
|
||||
"y": 305.0000305175781,
|
||||
"width": 208.00003051757813,
|
||||
"height": 301.9999694824219
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "c6a588ed58414e0b98fe85b270bcef5d"
|
||||
},
|
||||
{
|
||||
"m_Id": "4e82d1350b5840a1a3592777aa9c063e"
|
||||
},
|
||||
{
|
||||
"m_Id": "cebbb9e79097430ba6f1331927572efd"
|
||||
}
|
||||
],
|
||||
"synonyms": [
|
||||
"scalar product"
|
||||
],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
|
||||
"m_ObjectId": "c6a588ed58414e0b98fe85b270bcef5d",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "A",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "A",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 0.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "cebbb9e79097430ba6f1331927572efd",
|
||||
"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.DynamicValueMaterialSlot",
|
||||
"m_ObjectId": "e0409fb3600d40ccb8afd44719495778",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "A",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "A",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"e00": 0.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 0.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 0.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 0.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"e00": 1.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 1.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 1.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
|
||||
"m_ObjectId": "e5fb7de4c83442d08ac8889418d81df3",
|
||||
"m_Name": "",
|
||||
"m_ChildObjectList": [
|
||||
{
|
||||
"m_Id": "b414e28881954dfba624121d6f32a56f"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
|
||||
"m_ObjectId": "e691dee6f1124c8a94cfaf21167b6a8f",
|
||||
"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": "76b97013a73a4f55bf58a7b262ea0e22"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_DismissedVersion": 0,
|
||||
"m_PreviewMode": 0,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "ec80bf1c9e4c41daa3064bb1ce8467e4",
|
||||
"m_Id": 3,
|
||||
"m_DisplayName": "Z",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Z",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0722000002861023,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": [
|
||||
"Z"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
|
||||
"m_ObjectId": "ec827d75678e4b0f977fe0dafb92d6ca",
|
||||
"m_Id": 1,
|
||||
"m_DisplayName": "B",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "B",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": {
|
||||
"e00": 2.0,
|
||||
"e01": 2.0,
|
||||
"e02": 2.0,
|
||||
"e03": 2.0,
|
||||
"e10": 2.0,
|
||||
"e11": 2.0,
|
||||
"e12": 2.0,
|
||||
"e13": 2.0,
|
||||
"e20": 2.0,
|
||||
"e21": 2.0,
|
||||
"e22": 2.0,
|
||||
"e23": 2.0,
|
||||
"e30": 2.0,
|
||||
"e31": 2.0,
|
||||
"e32": 2.0,
|
||||
"e33": 2.0
|
||||
},
|
||||
"m_DefaultValue": {
|
||||
"e00": 1.0,
|
||||
"e01": 0.0,
|
||||
"e02": 0.0,
|
||||
"e03": 0.0,
|
||||
"e10": 0.0,
|
||||
"e11": 1.0,
|
||||
"e12": 0.0,
|
||||
"e13": 0.0,
|
||||
"e20": 0.0,
|
||||
"e21": 0.0,
|
||||
"e22": 1.0,
|
||||
"e23": 0.0,
|
||||
"e30": 0.0,
|
||||
"e31": 0.0,
|
||||
"e32": 0.0,
|
||||
"e33": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
|
||||
"m_ObjectId": "f34aaffdbf3b45cc816b9aa3b6b5a2fb",
|
||||
"m_Datas": [
|
||||
{
|
||||
"m_Id": "6b0bc4a1e1834b37b23efdaad5203dcc"
|
||||
}
|
||||
],
|
||||
"m_ActiveSubTarget": {
|
||||
"m_Id": "202a2e123a9643f2ad5900c4237cd467"
|
||||
},
|
||||
"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": "fed6b789a3694760b9f12dab7fa298a3",
|
||||
"m_Id": 2,
|
||||
"m_DisplayName": "Y",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Y",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.7152000069618225,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": [
|
||||
"Y"
|
||||
]
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d78a69be90ba2943972ae067bf105f9
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
|
52
Assets/09.Shaders/Greyscale.shader
Normal file
52
Assets/09.Shaders/Greyscale.shader
Normal file
@ -0,0 +1,52 @@
|
||||
Shader "Unlit/Greyscale"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex("Texture", 2D) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType" = "Transparent" "Queue" = "Transparent" }
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
ZWrite Off
|
||||
Cull Off
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata {
|
||||
float4 vertex : POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f {
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
|
||||
v2f vert(appdata v) {
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : SV_Target
|
||||
{
|
||||
fixed4 col = tex2D(_MainTex, i.uv);
|
||||
float grey = dot(col.rgb, float3(0.299, 0.587, 0.114));
|
||||
return fixed4(grey, grey, grey, col.a);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
9
Assets/09.Shaders/Greyscale.shader.meta
Normal file
9
Assets/09.Shaders/Greyscale.shader.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7d22fc772f669c4ea04352edfbc829b
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user