diff --git a/Src/Core/Applation/BITApp.cs b/Src/Core/Applation/BITApp.cs index 9f8d4ac..59b148e 100644 --- a/Src/Core/Applation/BITApp.cs +++ b/Src/Core/Applation/BITApp.cs @@ -240,6 +240,7 @@ namespace BITKit [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern bool SwitchToThisWindow(IntPtr hWnd, bool fAltTab); public static string AppName { get; private set; } = nameof(BITApp); + public static UniTaskCompletionSource WalkUntilInitialize { get; set; } = new(); private static CancellationTokenSource CancellationTokenSource = new(); public static CancellationToken CancellationToken => CancellationTokenSource.Token; public static InitializationState State; diff --git a/Src/Core/ECS/EntitiesService.cs b/Src/Core/ECS/EntitiesService.cs index 59f7ce5..1325d65 100644 --- a/Src/Core/ECS/EntitiesService.cs +++ b/Src/Core/ECS/EntitiesService.cs @@ -13,28 +13,49 @@ namespace BITKit.Entities public class EntitiesService:IEntitiesService,IDisposable { private readonly ILogger _logger; - + private readonly IFixedTicker _ticker; private static int _count; - public EntitiesService() - { - _count++; - } - - public EntitiesService(ILogger logger) + private static readonly ConcurrentQueue OnAddQueue = new(); + private static ConcurrentDictionary> TypeCaches = new(); + public EntitiesService(ILogger logger, IFixedTicker ticker) { + if (_count > 0) + { + throw new MulticastNotSupportedException(); + } _count++; _logger = logger; + _ticker = ticker; + + _ticker.Add(OnTick); } + + private void OnTick(float obj) + { + while (OnAddQueue.TryDequeue(out var entity)) + { + OnAdd?.Invoke(entity); + + foreach (var serviceDescriptor in entity.ServiceCollection) + { + var typeHash = serviceDescriptor.ServiceType.GetHashCode(); + var hashSet = TypeCaches.GetOrCreate(typeHash); + hashSet.Add(entity.Id); + } + } + } + + private static readonly ConcurrentDictionary Entities = new(); public event Action OnAdd; public event Action OnRemove; - IEntity[] IEntitiesService.Entities => Entities.Values.ToArray(); + IReadOnlyDictionary IEntitiesService.Entities => Entities; public bool Register(IEntity entity) { if (!Entities.TryAdd(entity.Id, entity)) return false; - OnAdd?.Invoke(entity); + OnAddQueue.Enqueue(entity); return true; } @@ -42,8 +63,17 @@ namespace BITKit.Entities { if (!Entities.TryRemove(entity.Id, out _)) return false; OnRemove?.Invoke(entity); + + foreach (var serviceDescriptor in entity.ServiceCollection) + { + var typeHash = serviceDescriptor.ServiceType.GetHashCode(); + var hashSet = TypeCaches.GetOrCreate(typeHash); + hashSet.Remove(entity.Id); + } + return true; } + public CancellationToken CancellationToken => _cancellationTokenSource.Token; private readonly CancellationTokenSource _cancellationTokenSource = new(); public IEntity Get(int id) @@ -262,6 +292,8 @@ namespace BITKit.Entities _logger.LogInformation($"已释放,还剩{_count}个实例"); _cancellationTokenSource?.Dispose(); + + _ticker.Remove(OnTick); } } } diff --git a/Src/Core/ECS/Entity.cs b/Src/Core/ECS/Entity.cs index 4a68590..4ea0f8b 100644 --- a/Src/Core/ECS/Entity.cs +++ b/Src/Core/ECS/Entity.cs @@ -8,24 +8,24 @@ namespace BITKit.Entities { public class Entity : IEntity, IDisposable { - public Entity() - { - ServiceCollection.AddSingleton(this); - } - public void WaitForInitializationComplete() - { - throw new NotImplementedException(); - } public int Id { get; set; } = Guid.NewGuid().GetHashCode(); - public CancellationToken CancellationToken => _cancellationTokenSource.Token; - private readonly CancellationTokenSource _cancellationTokenSource = new(); + public CancellationToken CancellationToken { get; set; } public IServiceProvider ServiceProvider => _serviceProvider ??= ServiceCollection.BuildServiceProvider(); private ServiceProvider _serviceProvider; - public IServiceCollection ServiceCollection { get; } = new ServiceCollection(); + public IServiceCollection ServiceCollection + { + get + { + if (_serviceCollection is not null) return _serviceCollection; + _serviceCollection = new ServiceCollection(); + _serviceCollection.AddSingleton(this); + return _serviceCollection; + } + } + + private IServiceCollection _serviceCollection; - public object[] GetServices() => ServiceCollection.ToArray() - .Select(x => _serviceProvider.GetService(x.ServiceType)).ToArray(); public void Inject(object obj) { foreach (var fieldInfo in obj.GetType().GetFields(ReflectionHelper.Flags)) @@ -39,7 +39,6 @@ namespace BITKit.Entities public void Dispose() { - _cancellationTokenSource.Cancel(); _serviceProvider.Dispose(); } } diff --git a/Src/Core/ECS/EntityComponentSystem.cs b/Src/Core/ECS/EntityComponentSystem.cs index 83bf419..81c0344 100644 --- a/Src/Core/ECS/EntityComponentSystem.cs +++ b/Src/Core/ECS/EntityComponentSystem.cs @@ -1,5 +1,6 @@ using System.Threading; using System; +using System.Collections.Generic; using System.ComponentModel.Design; using Microsoft.Extensions.DependencyInjection; #if NET5_0_OR_GREATER @@ -16,7 +17,6 @@ namespace BITKit.Entities CancellationToken CancellationToken { get; } IServiceProvider ServiceProvider { get; } IServiceCollection ServiceCollection { get; } - object[] GetServices(); void Inject(object obj); } /// @@ -35,7 +35,7 @@ namespace BITKit.Entities /// /// 所有Entity /// - IEntity[] Entities { get; } + IReadOnlyDictionary Entities { get; } /// /// 注册Entity /// diff --git a/Src/Core/ECS/UnityEntity.cs b/Src/Core/ECS/UnityEntity.cs new file mode 100644 index 0000000..e959b66 --- /dev/null +++ b/Src/Core/ECS/UnityEntity.cs @@ -0,0 +1,106 @@ +#if UNITY_5_3_OR_NEWER +using System; +using System.Collections; +using System.Collections.Generic; +using System.Threading; +using Microsoft.Extensions.DependencyInjection; +using UnityEngine; +using Object = UnityEngine.Object; + +namespace BITKit.Entities +{ + [DisallowMultipleComponent] + [DefaultExecutionOrder(-1)] + public class UnityEntity : MonoBehaviour,IEntity + { + private IEntitiesService _entitiesService; + private IEntity _entity; + + private void Start() + { + _entitiesService = BITApp.ServiceProvider.GetRequiredService(); + + if (_entitiesService.Entities.ContainsKey(gameObject.GetInstanceID())) return; + + var entity = new Entity() + { + Id = gameObject.GetInstanceID(), + CancellationToken = destroyCancellationToken + }; + + var idComponent = new IdComponent() + { + Id = entity.Id, + Name = gameObject.name, + }; + + entity.ServiceCollection.AddSingleton(idComponent); + + foreach (var component in GetComponents()) + { + var type = component.GetType(); + + foreach (var x in type.GetInterfaces()) + { + entity.ServiceCollection.AddSingleton(x, component); + } + + while (type is not null) + { + var baseType = type.BaseType; + try + { + switch (baseType) + { + case null: + case not null when baseType == typeof(object): + case not null when baseType == typeof(Object): + case not null when baseType == typeof(MonoBehaviour): + case not null when baseType == typeof(Behaviour): + case not null when baseType == typeof(Component): + case not null when baseType == typeof(Component): + throw new OperationCanceledException(); + } + } + catch (OperationCanceledException) + { + break; + } + + entity.ServiceCollection.AddSingleton(baseType, component); + type = type.BaseType; + } + } + + + entity.ServiceCollection.AddSingleton(gameObject); + entity.ServiceCollection.AddSingleton(transform); + + destroyCancellationToken.Register(Dispose); + + _entity = entity; + + _entitiesService.Register(entity); + } + + private void Dispose() + { + _entitiesService?.UnRegister(_entity); + } + + public int Id => _entity.Id; + + public CancellationToken CancellationToken => _entity.CancellationToken; + + public IServiceProvider ServiceProvider => _entity.ServiceProvider; + + public IServiceCollection ServiceCollection => _entity.ServiceCollection; + + public void Inject(object obj) + { + _entity.Inject(obj); + } + } + +} +#endif \ No newline at end of file diff --git a/Src/UnityPluginsSupport/TranslucentImage/TranslucentService.cs.meta b/Src/Core/ECS/UnityEntity.cs.meta similarity index 83% rename from Src/UnityPluginsSupport/TranslucentImage/TranslucentService.cs.meta rename to Src/Core/ECS/UnityEntity.cs.meta index 6da8b33..cd40422 100644 --- a/Src/UnityPluginsSupport/TranslucentImage/TranslucentService.cs.meta +++ b/Src/Core/ECS/UnityEntity.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 14ba5b1e81092234d944bec5c7063bc1 +guid: 230e015069b45484f9c85d1aba1e901c MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Src/Core/Item/ItemContainer.cs b/Src/Core/Item/ItemContainer.cs index 4fb7b03..c711eb8 100644 --- a/Src/Core/Item/ItemContainer.cs +++ b/Src/Core/Item/ItemContainer.cs @@ -15,6 +15,9 @@ namespace BITKit /// public interface IRuntimeItemContainer:IBinarySerialize { + public bool AllowAdd { get; set; } + public bool AllowRemove { get; set; } + public ValidHandle IsBusy { get; } /// /// 物品容器的唯一Id @@ -96,6 +99,8 @@ namespace BITKit throw new NotImplementedException(); } + public bool AllowAdd { get; set; } + public bool AllowRemove { get; set; } public ValidHandle IsBusy { get; } = new(); public int Id { get; set; } public IRuntimeItem[] GetItems()=>Items.Values.ToArray(); diff --git a/Src/Core/Pool/IPoolService.cs b/Src/Core/Pool/IPoolService.cs index bd07ec4..80d05c5 100644 --- a/Src/Core/Pool/IPoolService.cs +++ b/Src/Core/Pool/IPoolService.cs @@ -9,13 +9,16 @@ namespace BITKit.Pool /// public interface IPoolService { + public int DefaultCapacity { get; set; } + /// /// 生成对象 /// /// 可寻址路径 + /// 直接提供的预制体 /// 类型 /// - UniTask Spawn(string path) where T : class; + UniTask Spawn(string path,object prefab=null) where T : class; /// /// 回收对象 /// diff --git a/Src/Core/StateMachine/AsyncStateMachine.cs b/Src/Core/StateMachine/AsyncStateMachine.cs index 69c3bba..fd09db4 100644 --- a/Src/Core/StateMachine/AsyncStateMachine.cs +++ b/Src/Core/StateMachine/AsyncStateMachine.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Threading; +using System.Threading.Tasks; using Cysharp.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; @@ -24,7 +25,6 @@ namespace BITKit.StateMachine public bool Enabled { get; set; } = true; public T CurrentState { get;private set; } - public T NextOrCurrentState => _nextTargetState.IfNotAllow(CurrentState); public event Action OnStateChanging; public event Func OnStateChangeAsync; public event Action OnStateChanged; @@ -35,7 +35,13 @@ namespace BITKit.StateMachine public readonly ValidHandle IsBusy=new(); private readonly CancellationTokenSource _cancellationTokenSource=new(); private readonly Dictionary _dictionary = new(); - private readonly Optional _nextTargetState = new(); + + private readonly HashSet _isRegistered = new(); + + private CancellationTokenSource _transitionCts; + + private T _entryCompletedState; + public async void Initialize() { await IsBusy; @@ -43,33 +49,27 @@ namespace BITKit.StateMachine using var _ = IsBusy.GetHandle(); foreach (var (_,value) in StateDictionary) { - await value.InitializeAsync(); - value.Initialize(); + if (_isRegistered.Add(value.Identifier)) + { + await value.InitializeAsync(); + value.Initialize(); + } } } public async void UpdateState(float deltaTime) { - if (CurrentState is null) return; + if (_entryCompletedState is null) return; using var _ = IsBusy.GetHandle(); - CurrentState.OnStateUpdate(deltaTime); - await CurrentState.OnStateUpdateAsync(deltaTime); + _entryCompletedState.OnStateUpdate(deltaTime); + await _entryCompletedState.OnStateUpdateAsync(deltaTime); } - - public async void DisposeState() + public void DisposeState() { - await IsBusy; - if (_cancellationTokenSource.IsCancellationRequested) return; - if (CurrentState is null) return; - using var _ = IsBusy.GetHandle(); - CurrentState.Enabled = false; - await CurrentState.OnStateExitAsync(CurrentState, null); - CurrentState.OnStateExit(CurrentState, null); - CurrentState = null; + TransitionState(null); } - public T TransitionState() where TState : T { T nextState; @@ -96,50 +96,60 @@ namespace BITKit.StateMachine nextState.Identifier = nextState.GetHashCode(); } } + if (Equals(nextState, CurrentState)) return; - if(_nextTargetState.Allow && Equals(_nextTargetState.Value,nextState))return; - if (_nextTargetState.Allow) - { - _nextTargetState.Value = nextState; - return; - } - _nextTargetState.SetValueThenAllow(nextState); - await IsBusy; - if(CurrentState==nextState)return; - if(_cancellationTokenSource.IsCancellationRequested)return; - using var _ = IsBusy.GetHandle(); - - OnStateChanging?.Invoke(CurrentState,nextState); - await OnStateChangeAsync.UniTaskFunc(CurrentState,nextState); - - if (nextState is not null && _dictionary.TryAdd(nextState.Identifier, nextState)) - { - await nextState.InitializeAsync(); - if(_cancellationTokenSource.IsCancellationRequested)return; - nextState.Initialize(); - } - if (CurrentState is not null) - { - CurrentState.Enabled = false; - await CurrentState.OnStateExitAsync(CurrentState, nextState); - if(_cancellationTokenSource.IsCancellationRequested)return; - CurrentState.OnStateExit(CurrentState,nextState); - } - - if (_nextTargetState.Allow && _nextTargetState.Value != nextState) - { - return; - } - var tempState = CurrentState; - CurrentState = _nextTargetState.Value; - _nextTargetState.Clear(); - nextState.Enabled = true; - await nextState.OnStateEntryAsync(tempState); - if(_cancellationTokenSource.IsCancellationRequested)return; - nextState.OnStateEntry(tempState); - OnStateChanged?.Invoke(tempState,nextState); + + CurrentState = nextState; + + _transitionCts?.Cancel(); + _transitionCts = new CancellationTokenSource(); + + var ct = _transitionCts.Token; + + await IsBusy; + using var _ = IsBusy.GetHandle(); + if(ct.IsCancellationRequested||_cancellationTokenSource.IsCancellationRequested)return; + + OnStateChanging?.Invoke(tempState,nextState); + + if (tempState is not null) + { + if (_entryCompletedState == tempState) + { + _entryCompletedState = null; + } + + tempState.Enabled = false; + await tempState.OnStateExitAsync(tempState, nextState); + tempState.OnStateExit(tempState,nextState); + if(_cancellationTokenSource.IsCancellationRequested)return; + } + + if(ct.IsCancellationRequested)return; + + await OnStateChangeAsync.UniTaskFunc(CurrentState,nextState); + + if(ct.IsCancellationRequested)return; + + if (nextState is not null) + { + if (_isRegistered.Add(nextState.Identifier)) + { + await RegisterAsync(nextState); + if(ct.IsCancellationRequested || _cancellationTokenSource.IsCancellationRequested)return; + } + + nextState.Enabled = true; + await nextState.OnStateEntryAsync(CurrentState); + nextState.OnStateEntry(CurrentState); + if(ct.IsCancellationRequested || _cancellationTokenSource.IsCancellationRequested)return; + + _entryCompletedState = nextState; + } + + OnStateChanged?.Invoke(tempState, nextState); } public T TransitionState(T nextState) @@ -148,27 +158,49 @@ namespace BITKit.StateMachine return nextState; } + private async UniTask RegisterAsync(T newState) + { + StateDictionary.TryAdd(newState.GetType(),newState); + + _dictionary.TryAdd(newState.Identifier, newState); + + + newState.Initialize(); + await newState.InitializeAsync(); + } + + public async void Register(T newState) + { + await IsBusy; + using var _ = IsBusy.GetHandle(); + await RegisterAsync(newState); + } public async void UnRegister(T newState) { if (newState is null) return; if (Dictionary.ContainsKey(newState.Identifier) is false) return; _dictionary.Remove(newState.Identifier); + await IsBusy; + using var _ = IsBusy.GetHandle(); + if (Equals(CurrentState, newState)) { await CurrentState.OnStateExitAsync(CurrentState, null); CurrentState.OnStateExit(CurrentState, null); - if (CurrentState is IAsyncDisposable asyncDisposable) - { - await asyncDisposable.DisposeAsync(); - } - if (CurrentState is IDisposable disposable) - { - disposable.Dispose(); - } + CurrentState = null; } + if (newState is IAsyncDisposable asyncDisposable) + { + await asyncDisposable.DisposeAsync(); + } + if (newState is IDisposable disposable) + { + disposable.Dispose(); + } + OnStateUnRegistered?.Invoke(newState); } public void Dispose() diff --git a/Src/Core/Tag/ITag.cs b/Src/Core/Tag/ITag.cs index 9aca77b..259d836 100644 --- a/Src/Core/Tag/ITag.cs +++ b/Src/Core/Tag/ITag.cs @@ -1,8 +1,10 @@ +using System.Collections.Generic; + namespace BITKit { public interface ITag { int Hash { get; } - string[] GetTags(); + IReadOnlyCollection Tags { get; } } } \ No newline at end of file diff --git a/Src/Core/Ticker/ITicker.cs b/Src/Core/Ticker/ITicker.cs index aeb78e1..25ea000 100644 --- a/Src/Core/Ticker/ITicker.cs +++ b/Src/Core/Ticker/ITicker.cs @@ -41,7 +41,7 @@ namespace BITKit /// /// 异步循环 /// - public interface IAsyncTicker + public interface IAsyncTicker:IDisposable { ulong TickCount { get; } int TickRate { get; set; } @@ -183,6 +183,7 @@ namespace BITKit public void Dispose() { + OnTickAsync = null; _isDisposed = true; _timer.Stop(); _timer.Dispose(); diff --git a/Src/Core/Tween/BITween.cs b/Src/Core/Tween/BITween.cs index 268e70b..ce9c997 100644 --- a/Src/Core/Tween/BITween.cs +++ b/Src/Core/Tween/BITween.cs @@ -35,26 +35,18 @@ namespace BITKit.Tween return new TweenSequence(); } - public static async UniTask MoveToForward( - Action setter, - float from, - float to, - float duration = 1, - CancellationToken cancellationToken = default - ) + public static async UniTask Lerp(Action setter,T from,T to,float duration, Func lerp,CancellationToken cancellationToken = default) { var t = 0f; - var delta = 1 / duration; + var delta = 1f / duration; setter(from); //BIT4Log.Log($"已创建Tween,from:[{from}]to:[{to}]duration:[{duration}]delta:[{delta}]"); while (t < 1 && cancellationToken.IsCancellationRequested is false) { t = math.clamp(t + delta*BITApp.Time.DeltaTime, 0, 1); - var next = math.lerp(from, to, t); - //BIT4Log.Log($"当前进度:[{t}]next:[{next}]"); + var next = lerp(from, to, t); #if UNITY_5_3_OR_NEWER await UniTask.NextFrame(cancellationToken); - await UniTask.SwitchToMainThread(cancellationToken); #else await UniTask.Yield(); #endif diff --git a/Src/Core/UX/IUXDialogue.cs b/Src/Core/UX/IUXDialogue.cs index 5145e38..1323284 100644 --- a/Src/Core/UX/IUXDialogue.cs +++ b/Src/Core/UX/IUXDialogue.cs @@ -7,5 +7,7 @@ namespace BITKit.UX public interface IUXDialogue { void Show(string content,string title = "Alert",Action confirmAction=null,Action onChoose=null); + + } } diff --git a/Src/Core/Utility/References.cs b/Src/Core/Utility/References.cs index d9b3d7e..e0f4032 100644 --- a/Src/Core/Utility/References.cs +++ b/Src/Core/Utility/References.cs @@ -42,13 +42,9 @@ namespace BITKit public static implicit operator T(References self) => self.Get(); } - [System.Serializable] - public record Reference : References + [Serializable] + public struct Reference : IReference { - public Reference() - { - } - public Reference(string value) { this.value = value; @@ -57,8 +53,7 @@ namespace BITKit [UnityEngine.TextArea] #endif public string value; - public override string Get() => value; - public override string ToString() => value; + public string Get() => value; } [System.Serializable] diff --git a/Src/Core/Utility/ValidHandle.cs b/Src/Core/Utility/ValidHandle.cs index be4f52c..6b702f8 100644 --- a/Src/Core/Utility/ValidHandle.cs +++ b/Src/Core/Utility/ValidHandle.cs @@ -27,7 +27,7 @@ namespace BITKit public class MyHandle:IDisposable { private readonly ValidHandle _validHandle; - private bool _isDisable = false; + private readonly bool _isDisable; public MyHandle(ValidHandle validHandle,bool isDisable = false) { _validHandle = validHandle; @@ -61,106 +61,76 @@ namespace BITKit public override string ToString() { - return $"Allow:{enableHandle}\nElements:{string.Join("\n",objs)}\nDisableElements:{string.Join("\n",disableObjs)}"; + return $"Allow:{_enableHandle}\nElements:{string.Join("\n",_objs)}\nDisableElements:{string.Join("\n",_disableObjs)}"; } public ValidHandle() {} public ValidHandle(Action boolDelegate) { AddListener(boolDelegate); - EventOnEnableChanged?.Invoke(enableHandle); + _eventOnEnableChanged?.Invoke(_enableHandle); } public static implicit operator bool(ValidHandle validHandle) { - return !validHandle._isDisposed && validHandle.enableHandle; + return !validHandle._isDisposed && validHandle._enableHandle; } public bool Allow => this; - private bool enableHandle; + private bool _enableHandle; /// /// ⚠️Dont operate this field directly /// - public readonly List objs = new List(); + private readonly HashSet _objs = new(); + /// /// ⚠️Dont operate this field directly /// - public readonly List disableObjs = new List(); - private bool tempEnable; - private Action EventOnEnableChanged; + private readonly HashSet _disableObjs = new(); + private bool _tempEnable; + private Action _eventOnEnableChanged; private readonly ConcurrentQueue _completionSources = new(); private bool _isDisposed; public void AddElement(object obj) { - if (objs.Contains(obj)) - { - - } - else - { - objs.Add(obj); - } + _objs.Add(obj); CheckEnable(); } private void CheckEnable() { - tempEnable = objs.Count > 0 && disableObjs.Count == 0; - if (tempEnable != enableHandle) + _tempEnable = _objs.Count > 0 && _disableObjs.Count == 0; + if (_tempEnable == _enableHandle) return; + _enableHandle = _tempEnable; + _eventOnEnableChanged?.Invoke(_enableHandle); + if (_tempEnable) return; + if (_completionSources.TryDequeue(out var cs)) { - enableHandle = tempEnable; - if (EventOnEnableChanged is not null) - { - EventOnEnableChanged.Invoke(enableHandle); - } - if (tempEnable) return; - if (_completionSources.TryDequeue(out var cs)) - { - cs.TrySetResult(); - } + cs.TrySetResult(); } } public void RemoveElement(object obj) { - if (objs.Contains(obj)) + if (_objs.Contains(obj)) { - objs.Remove(obj); + _objs.Remove(obj); } - else - { - } CheckEnable(); } - public int lenght => objs.Count; - public string[] GetElements() - { - List elementNames = new List(); - for (int i = 0; i < objs.Count; i++) - { - elementNames.Add(objs[i].ToString()); - } - return elementNames.ToArray(); - } - public bool Contains(object obj) => objs.Contains(obj); + public int Lenght => _objs.Count; + public bool Contains(object obj) => _objs.Contains(obj); public void AddDisableElements(object obj) { - if (disableObjs.Contains(obj)) - { - - } - else - { - disableObjs.Add(obj); - } + _disableObjs.Add(obj); CheckEnable(); } public void RemoveDisableElements(object obj) { - if (disableObjs.Contains(obj)) + if (_disableObjs.Contains(obj)) { - disableObjs.Remove(obj); + _disableObjs.Remove(obj); } else { @@ -191,22 +161,22 @@ namespace BITKit } public void Invoke() { - var enable = disableObjs.Count == 0 && objs.Count > 0; - EventOnEnableChanged?.Invoke(enable); + var enable = _disableObjs.Count == 0 && _objs.Count > 0; + _eventOnEnableChanged?.Invoke(enable); } public void Invoke(bool value) { - EventOnEnableChanged?.Invoke(value); + _eventOnEnableChanged?.Invoke(value); } public void AddListener(Action action) { - EventOnEnableChanged+= action; + _eventOnEnableChanged+= action; } public void RemoveListener(Action action) { - if(EventOnEnableChanged is not null && action is not null) + if(_eventOnEnableChanged is not null && action is not null) { - EventOnEnableChanged -= action; + _eventOnEnableChanged -= action; } } public UniTask.Awaiter GetAwaiter() @@ -221,17 +191,17 @@ namespace BITKit } public void Clear() { - objs.Clear(); - disableObjs.Clear(); + _objs.Clear(); + _disableObjs.Clear(); Invoke(); } public void Dispose() { _isDisposed = true; - objs.Clear(); - disableObjs.Clear(); - EventOnEnableChanged = null; + _objs.Clear(); + _disableObjs.Clear(); + _eventOnEnableChanged = null; } } diff --git a/Src/Core/WorldNode/IWorldNode.cs b/Src/Core/WorldNode/IWorldNode.cs index 3551a01..a818684 100644 --- a/Src/Core/WorldNode/IWorldNode.cs +++ b/Src/Core/WorldNode/IWorldNode.cs @@ -8,12 +8,6 @@ namespace BITKit.WorldNode /// public interface IWorldNode { - public int Id { get; set; } - public object WorldObject { get; set; } - - public void Initialize() - { - - } + } } diff --git a/Src/Core/WorldNode/IWorldNodeService.cs b/Src/Core/WorldNode/IWorldNodeService.cs deleted file mode 100644 index 6781446..0000000 --- a/Src/Core/WorldNode/IWorldNodeService.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; - -namespace BITKit.WorldNode -{ - /// - /// 世界节点服务,所有动态世界节点通过此接口注册 - /// - public interface IWorldNodeService - { - public IReadOnlyDictionary> WorldNodes { get; } - public void RegisterNode(IWorldNode node); - public event Action OnNodeRegistered; - } - /// - /// 世界节点默认实现 - /// - [Serializable] - public class WorldNodeService : IWorldNodeService,IDisposable - { - public static event Action OnNodeRegistered; - IReadOnlyDictionary> IWorldNodeService.WorldNodes => WorldNodes; - private static readonly ConcurrentDictionary> WorldNodes = new(); - public void RegisterNode(IWorldNode node) - { - OnNodeRegistered?.Invoke(node); - WorldNodes.GetOrCreate(node.Id).Add(node); - } - event Action IWorldNodeService.OnNodeRegistered - { - add=>OnNodeRegistered+=value; - remove=>OnNodeRegistered-=value; - } - public void Dispose() - { - WorldNodes.Clear(); - } - } -} diff --git a/Src/Core/WorldNode/UnityNode.cs b/Src/Core/WorldNode/UnityNode.cs index 76a5c63..5a2bd29 100644 --- a/Src/Core/WorldNode/UnityNode.cs +++ b/Src/Core/WorldNode/UnityNode.cs @@ -2,37 +2,30 @@ using System; using System.Collections; using System.Collections.Generic; +using BITKit.Entities; +using Microsoft.Extensions.DependencyInjection; using UnityEngine; namespace BITKit.WorldNode { - public sealed class UnityNode : MonoBehaviour,IWorldNode + [RequireComponent(typeof(UnityEntity))] + public sealed class UnityNode : MonoBehaviour { - [SerializeReference, SubclassSelector] private IWorldNodeService worldNodeService = new WorldNodeService(); [SerializeReference, SubclassSelector] private IWorldNode worldNode; - public int Id { get; set; } - public IWorldNode WorldNode => worldNode; - public object WorldObject - { - get => gameObject; - set=>throw new InvalidOperationException("Cannot set WorldObject"); - } private void Start() { - if (worldNode is null) + if(worldNode is null)return; + + var entity = GetComponent(); + var type = worldNode.GetType(); + GetComponent().ServiceCollection.AddSingleton(type,worldNode); + foreach (var interfaceType in type.GetInterfaces()) { - Debug.LogWarning("WorldNode is null"); - return; + entity.ServiceCollection.AddSingleton(interfaceType, worldNode); } - Id = gameObject.GetInstanceID(); - worldNode.Id = Id; - worldNode.WorldObject = gameObject; - worldNode.Initialize(); - worldNodeService.RegisterNode(worldNode); - Destroy(this); } } } diff --git a/Src/Core/WorldNode/WorldInfoNode.cs b/Src/Core/WorldNode/WorldInfoNode.cs new file mode 100644 index 0000000..54de8d4 --- /dev/null +++ b/Src/Core/WorldNode/WorldInfoNode.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +#if UNITY_5_3_OR_NEWER +using UnityEngine; +#endif +namespace BITKit.WorldNode +{ + [Serializable] + public class WorldInfoNode : IWorldNode + { +#if UNITY_5_3_OR_NEWER + [SerializeReference, SubclassSelector] + + private IReference name; + [SerializeReference, SubclassSelector] + private IReference description; + + public string Name + { + get => name?.Value; + set => name = new Reference(value); + } + + public string Description + { + get => description?.Value; + set=>description = new Reference(value); + } +#endif + } +} \ No newline at end of file diff --git a/Src/Core/WorldNode/IWorldNodeService.cs.meta b/Src/Core/WorldNode/WorldInfoNode.cs.meta similarity index 83% rename from Src/Core/WorldNode/IWorldNodeService.cs.meta rename to Src/Core/WorldNode/WorldInfoNode.cs.meta index 1e35b7f..f013805 100644 --- a/Src/Core/WorldNode/IWorldNodeService.cs.meta +++ b/Src/Core/WorldNode/WorldInfoNode.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ca82e09109a03de47b638f35b49b59e5 +guid: 5e1cbe087263f1342abbc3c6fb5c4068 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Src/Core/WorldNode/WorldInfoNodeService.cs b/Src/Core/WorldNode/WorldInfoNodeService.cs deleted file mode 100644 index 15c5582..0000000 --- a/Src/Core/WorldNode/WorldInfoNodeService.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -#if UNITY_5_3_OR_NEWER -using UnityEngine; -#endif -namespace BITKit.WorldNode -{ - [Serializable] - public struct WorldInfoNode : IWorldNode - { - // ReSharper disable once InconsistentNaming - #if UNITY_5_3_OR_NEWER - [SerializeReference,SubclassSelector] - #endif - private IReference name; - // ReSharper disable once InconsistentNaming -#if UNITY_5_3_OR_NEWER - [SerializeReference,SubclassSelector] -#endif - private IReference description; -#if UNITY_5_3_OR_NEWER - public void Initialize() - { - Name = name?.Value; - Description = description?.Value; - } -#endif - public int Id { get; set; } - public object WorldObject { get; set; } - public string Name { get; set; } - public string Description { get; set; } - } - - public sealed class WorldInfoNodeService : IDisposable - { - public IReadOnlyDictionary WorldInfoNodes => InfoNodes; - private readonly IWorldNodeService _worldNodeService; - private static readonly ConcurrentDictionary InfoNodes = new(); - - public WorldInfoNodeService(IWorldNodeService worldNodeService) - { - _worldNodeService = worldNodeService; - - _worldNodeService.OnNodeRegistered += OnNodeRegistered; - } - - private void OnNodeRegistered(IWorldNode obj) - { - if (obj is not WorldInfoNode infoNode) return; - InfoNodes.TryAdd(obj.Id, infoNode); - } - - public void Dispose() - { - InfoNodes.Clear(); - } - } -} diff --git a/Src/Core/WorldNode/WorldInfoNpcStartNode.cs b/Src/Core/WorldNode/WorldInfoNpcStartNode.cs index fe1ba4f..1093a7b 100644 --- a/Src/Core/WorldNode/WorldInfoNpcStartNode.cs +++ b/Src/Core/WorldNode/WorldInfoNpcStartNode.cs @@ -5,13 +5,8 @@ using System.Collections.Generic; namespace BITKit.WorldNode { [Serializable] - public struct WorldInfoNpcStartNode:IWorldNode + public class WorldInfoNpcStartNode:IWorldNode { public string Address; - public int Id { get; set; } - public object WorldObject { get; set; } - public void Initialize() - { - } } } \ No newline at end of file diff --git a/Src/Core/WorldNode/WorldInfoPlayerStartNode.cs b/Src/Core/WorldNode/WorldInfoPlayerStartNode.cs index f5a5117..579c8de 100644 --- a/Src/Core/WorldNode/WorldInfoPlayerStartNode.cs +++ b/Src/Core/WorldNode/WorldInfoPlayerStartNode.cs @@ -5,14 +5,8 @@ using System.Collections.Generic; namespace BITKit.WorldNode { [Serializable] - public struct WorldInfoPlayerStart:IWorldNode + public class WorldInfoPlayerStart:IWorldNode { - public static WorldInfoPlayerStart Current { get; set; } - public int Id { get; set; } - public object WorldObject { get; set; } - public void Initialize() - { - Current = this; - } + } } diff --git a/Src/Core/WorldNode/WorldPortalNode.cs b/Src/Core/WorldNode/WorldPortalNode.cs index f137662..1395b4d 100644 --- a/Src/Core/WorldNode/WorldPortalNode.cs +++ b/Src/Core/WorldNode/WorldPortalNode.cs @@ -19,8 +19,6 @@ namespace BITKit.WorldNode public IReference MapName; public float3 Position; public float3 EulerAngle; - public int Id { get; set; } - public object WorldObject { get; set; } } } diff --git a/Src/Unity/Art/Fonts/SDF/Roboto-Regular SDF.asset b/Src/Unity/Art/Fonts/SDF/Roboto-Regular SDF.asset index 1f21b53..fc57561 100644 --- a/Src/Unity/Art/Fonts/SDF/Roboto-Regular SDF.asset +++ b/Src/Unity/Art/Fonts/SDF/Roboto-Regular SDF.asset @@ -6101,7 +6101,7 @@ MonoBehaviour: italicTypeface: {fileID: 0} - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} - - regularTypeface: {fileID: 11400000, guid: 7b6a2cbff5c66dc42a81b604c826c04d, type: 2} + - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} diff --git a/Src/Unity/Art/Fonts/SDF/SourceHanMono-Regular SDF.asset b/Src/Unity/Art/Fonts/SDF/SourceHanMono-Regular SDF.asset index b9ea835..35bcb40 100644 --- a/Src/Unity/Art/Fonts/SDF/SourceHanMono-Regular SDF.asset +++ b/Src/Unity/Art/Fonts/SDF/SourceHanMono-Regular SDF.asset @@ -101838,15 +101838,15 @@ MonoBehaviour: italicTypeface: {fileID: 0} - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} - - regularTypeface: {fileID: 11400000, guid: 7b6a2cbff5c66dc42a81b604c826c04d, type: 2} + - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} - regularTypeface: {fileID: 11400000, guid: 7b6a2cbff5c66dc42a81b604c826c04d, type: 2} italicTypeface: {fileID: 0} - - regularTypeface: {fileID: 11400000} + - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} - - regularTypeface: {fileID: 11400000} + - regularTypeface: {fileID: 0} italicTypeface: {fileID: 0} m_RegularStyleWeight: 0 m_RegularStyleSpacing: 0 diff --git a/Src/Unity/Art/Fonts/SourceHanMonoSC-Bold.otf b/Src/Unity/Art/Fonts/SourceHanMonoSC-Bold.otf new file mode 100644 index 0000000..cf576e5 Binary files /dev/null and b/Src/Unity/Art/Fonts/SourceHanMonoSC-Bold.otf differ diff --git a/Src/Unity/Art/Fonts/SourceHanMonoSC-Bold.otf.meta b/Src/Unity/Art/Fonts/SourceHanMonoSC-Bold.otf.meta new file mode 100644 index 0000000..b0ae018 --- /dev/null +++ b/Src/Unity/Art/Fonts/SourceHanMonoSC-Bold.otf.meta @@ -0,0 +1,21 @@ +fileFormatVersion: 2 +guid: 8b7684d3e4f46a246a45689991580374 +TrueTypeFontImporter: + externalObjects: {} + serializedVersion: 4 + fontSize: 16 + forceTextureCase: -2 + characterSpacing: 0 + characterPadding: 1 + includeFontData: 1 + fontNames: + - Source Han Mono SC + fallbackFontReferences: [] + customCharacters: + fontRenderingMode: 0 + ascentCalculationMode: 1 + useLegacyBoundsCalculation: 0 + shouldRoundAdvanceValue: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Src/Unity/Scripts/Assets/ScriptableEntitiesService.cs b/Src/Unity/Scripts/Assets/ScriptableEntitiesService.cs index 02c2118..4839162 100644 --- a/Src/Unity/Scripts/Assets/ScriptableEntitiesService.cs +++ b/Src/Unity/Scripts/Assets/ScriptableEntitiesService.cs @@ -34,21 +34,47 @@ namespace BITKit.IO var scriptableObject = objs[index]; var entity = new Entity(); - var idComponent = new IdComponent(); + var idComponent = new IdComponent() + { + Name = scriptableObject.name + }; entity.ServiceCollection.AddSingleton(idComponent); var type = scriptableObject.GetType(); + var typeName = type.Name; + entity.ServiceCollection.AddSingleton(type, scriptableObject); + + foreach (var x in type.GetInterfaces()) + { + entity.ServiceCollection.AddSingleton(x, scriptableObject); + } + + while (type is not null) + { + if (type.BaseType is null) break; + entity.ServiceCollection.AddSingleton(type.BaseType, scriptableObject); + type = type.BaseType; + typeName += $":{type.Name}"; + } + + _entitiesService.Register(entity); - logger?.LogInformation($"已加载:{scriptableObject.name}:{type.Name},剩余:{index + 1}/{objs.Count}"); + logger?.LogInformation($"已加载:{scriptableObject.name}:{typeName},剩余:{index + 1}/{objs.Count}"); _registeredEntities.Add(entity); + + continue; } logger?.LogInformation("加载完成"); + + return; + + } public void Dispose() diff --git a/Src/Unity/Scripts/BITAppForUnity.cs b/Src/Unity/Scripts/BITAppForUnity.cs index bba49a7..18f768e 100644 --- a/Src/Unity/Scripts/BITAppForUnity.cs +++ b/Src/Unity/Scripts/BITAppForUnity.cs @@ -135,7 +135,9 @@ namespace BITKit [RuntimeInitializeOnLoadMethod] private static void Reload() { - + BITApp.WalkUntilInitialize = new(); + + IsPlaying = true; //启动BITApp BITApp.SynchronizationContext = SynchronizationContext.Current; diff --git a/Src/UnityPluginsSupport/TranslucentImage.meta b/Src/Unity/Scripts/Impact.meta similarity index 77% rename from Src/UnityPluginsSupport/TranslucentImage.meta rename to Src/Unity/Scripts/Impact.meta index db41832..35b1e08 100644 --- a/Src/UnityPluginsSupport/TranslucentImage.meta +++ b/Src/Unity/Scripts/Impact.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1705803e58f488146b0c364b69f275ff +guid: ee77d81b8f27d6a44923a2a6901a66e0 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Src/UnityPluginsSupport/TranslucentImage/BITKit.Extensions.TranslucentImage.asmdef b/Src/Unity/Scripts/Impact/Net.BITKit.Impact.Unity.asmdef similarity index 61% rename from Src/UnityPluginsSupport/TranslucentImage/BITKit.Extensions.TranslucentImage.asmdef rename to Src/Unity/Scripts/Impact/Net.BITKit.Impact.Unity.asmdef index f2a57da..0a4c4e4 100644 --- a/Src/UnityPluginsSupport/TranslucentImage/BITKit.Extensions.TranslucentImage.asmdef +++ b/Src/Unity/Scripts/Impact/Net.BITKit.Impact.Unity.asmdef @@ -1,10 +1,11 @@ { - "name": "BITKit.Extensions.TranslucentImage", + "name": "Net.BITKit.Impact.Unity", "rootNamespace": "", "references": [ "GUID:14fe60d984bf9f84eac55c6ea033a8f4", - "GUID:6ef4ed8ff60a7aa4bb60a8030e6f4008", - "GUID:ff218ee40fe2b8648ab3234d56415557" + "GUID:89bd0da52dc3cc94daadea6252c6ad1b", + "GUID:d525ad6bd40672747bde77962f1c401e", + "GUID:49b49c76ee64f6b41bf28ef951cb0e50" ], "includePlatforms": [], "excludePlatforms": [], @@ -12,9 +13,7 @@ "overrideReferences": false, "precompiledReferences": [], "autoReferenced": true, - "defineConstraints": [ - "LeTai_TranslucentImage" - ], + "defineConstraints": [], "versionDefines": [], "noEngineReferences": false } \ No newline at end of file diff --git a/Src/UnityPluginsSupport/TranslucentImage/BITKit.Extensions.TranslucentImage.asmdef.meta b/Src/Unity/Scripts/Impact/Net.BITKit.Impact.Unity.asmdef.meta similarity index 76% rename from Src/UnityPluginsSupport/TranslucentImage/BITKit.Extensions.TranslucentImage.asmdef.meta rename to Src/Unity/Scripts/Impact/Net.BITKit.Impact.Unity.asmdef.meta index a5721f5..55e23b0 100644 --- a/Src/UnityPluginsSupport/TranslucentImage/BITKit.Extensions.TranslucentImage.asmdef.meta +++ b/Src/Unity/Scripts/Impact/Net.BITKit.Impact.Unity.asmdef.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f4dea7f9c2d5c3d4abb7467736ee56df +guid: 24866f14213d2124aa20be037476b521 AssemblyDefinitionImporter: externalObjects: {} userData: diff --git a/Src/Unity/Scripts/Impact/ScriptableImpact.cs b/Src/Unity/Scripts/Impact/ScriptableImpact.cs new file mode 100644 index 0000000..629ad68 --- /dev/null +++ b/Src/Unity/Scripts/Impact/ScriptableImpact.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Security.Policy; +using AYellowpaper.SerializedCollections; +using BITKit; +using UnityEngine; + +namespace Net.BITKit.Impact +{ + public class ScriptableImpact : ScriptableObject,ITag + { + [SerializeReference, SubclassSelector] private IReference[] tags; + [SerializeField] private int priority; + + [SerializeField] private Transform[] prefabs; + [SerializeField] private AudioClip[] audioClips; + + public int Hash { get; set; } + public IReadOnlyCollection Tags => tags.Select(x=>x.Get()).ToArray(); + + public Transform Prefab => prefabs.Random(); + public AudioClip AudioClip => audioClips.Random(); + public int Priority => priority; + } + +} diff --git a/Src/UnityPluginsSupport/TranslucentImage/TranslucentVisualElement.cs.meta b/Src/Unity/Scripts/Impact/ScriptableImpact.cs.meta similarity index 83% rename from Src/UnityPluginsSupport/TranslucentImage/TranslucentVisualElement.cs.meta rename to Src/Unity/Scripts/Impact/ScriptableImpact.cs.meta index 2fe9570..1b63bdb 100644 --- a/Src/UnityPluginsSupport/TranslucentImage/TranslucentVisualElement.cs.meta +++ b/Src/Unity/Scripts/Impact/ScriptableImpact.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 45ff73d2202441b44a5453c22ebf0dab +guid: ac8fd6229773587428b5dca77471e986 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Src/Unity/Scripts/InputSystem/InputSystemExtensions.cs b/Src/Unity/Scripts/InputSystem/InputSystemExtensions.cs index d0790cc..cea107c 100644 --- a/Src/Unity/Scripts/InputSystem/InputSystemExtensions.cs +++ b/Src/Unity/Scripts/InputSystem/InputSystemExtensions.cs @@ -4,6 +4,7 @@ using UnityEngine; using UnityEngine.InputSystem; using System; using System.Linq; +using UnityEngine.InputSystem.Controls; namespace BITKit { @@ -11,7 +12,7 @@ namespace BITKit { public static bool JustPressed(this InputAction.CallbackContext self) { - return self.interaction is null && self.started; + return self is { started:true, control: ButtonControl { wasPressedThisFrame: true , isPressed:true} }; } public static InputAction RegisterCallback(this InputAction self, Action action) { diff --git a/Src/Unity/Scripts/LoggerForUnity.cs b/Src/Unity/Scripts/LoggerForUnity.cs index cd56af4..3a3f5ef 100644 --- a/Src/Unity/Scripts/LoggerForUnity.cs +++ b/Src/Unity/Scripts/LoggerForUnity.cs @@ -7,37 +7,6 @@ using ILogger = Microsoft.Extensions.Logging.ILogger; namespace BITKit { - public abstract class UnityLogger:ILogger - { - [HideInCallstack] - public void Log(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func formatter) - { - switch (logLevel) - { - case LogLevel.Critical: - case LogLevel.Error: - if (exception is not null) - { - Debug.LogException(exception); - } - else - { - Debug.LogError($"{CurrentScope}:{state.ToString()}"); - } - break; - default: - Debug.Log($"{CurrentScope}:{state.ToString()}"); - break; - } - } - public bool IsEnabled(LogLevel logLevel) => true; - private string CurrentScope { get; set; } - public IDisposable BeginScope(TState state) where TState : notnull - { - CurrentScope = typeof(TState).Name; - return null; - } - } public sealed class UnityLogger:ILogger { [HideInCallstack] @@ -53,11 +22,11 @@ namespace BITKit } else { - Debug.LogError($"{typeof(T).Name}:{state.ToString()}"); + Debug.LogError($"{typeof(T).CSharpName()}:{state.ToString()}"); } break; default: - Debug.Log($"{typeof(T).Name}:{state.ToString()}"); + Debug.Log($"{typeof(T).CSharpName()}:{state.ToString()}"); break; } } diff --git a/Src/Unity/Scripts/Physics/GetClosestPointFromMesh.cs b/Src/Unity/Scripts/Physics/GetClosestPointFromMesh.cs index 76d5c70..71c33a2 100644 --- a/Src/Unity/Scripts/Physics/GetClosestPointFromMesh.cs +++ b/Src/Unity/Scripts/Physics/GetClosestPointFromMesh.cs @@ -27,22 +27,31 @@ namespace BITKit.Physics var vertices = _mesh.vertices; - if (vertices.Length > 2048) return false; + if (vertices.Length > 256) return false; var minPos = new Vector3(64, 64, 64); + var minDistance = 64f; for (var index = 0; index < _mesh.triangles.Length; index+=3) { var x = vertices[_mesh.triangles[index]]; + + if (Vector3.Distance(x, _position) > minDistance) + { + continue; + } + var y = vertices[_mesh.triangles[index + 1]]; var z = vertices[_mesh.triangles[index + 2]]; var pos = GeometryUtils.GetPosInTriangle(x, y, z, _position); - if (Vector3.Distance(pos, _position) < Vector3.Distance(minPos, _position)) - { - minPos = pos; - } + var distance = Vector3.Distance(pos, _position); + + if (!(distance < minDistance)) continue; + + minPos = pos; + minDistance = distance; } position = minPos; diff --git a/Src/Unity/Scripts/Pool/UnityPoolService.cs b/Src/Unity/Scripts/Pool/UnityPoolService.cs index 737080f..dfbbfc7 100644 --- a/Src/Unity/Scripts/Pool/UnityPoolService.cs +++ b/Src/Unity/Scripts/Pool/UnityPoolService.cs @@ -42,7 +42,9 @@ namespace BITKit.Pool ReadyPool.Clear(); } - public async UniTask Spawn(string path) where T : class + public int DefaultCapacity { get; set; } = 8; + + public async UniTask Spawn(string path,object prefab) where T : class { if (Pool.ContainsKey(path)) { @@ -55,7 +57,7 @@ namespace BITKit.Pool return obj as T; } - if (usingList.Count>0) + if (usingList.Count>=DefaultCapacity) { obj = usingList[0]; usingList.RemoveAt(0); @@ -81,13 +83,33 @@ namespace BITKit.Pool #if UNITY_5_3_OR_NEWER if (typeof(Object).IsAssignableFrom(typeof(T))) { - var asset =await ModService.LoadAsset(path); + var asset =prefab as T ?? await ModService.LoadAsset(path); if (asset is Object o) { var instance = Object.Instantiate(o); list.Add(instance); UsingPool.GetOrCreate(path).Add(instance); ReadyPool.GetOrCreate(path); + + if (instance is GameObject gameObject) + { + gameObject.GetCancellationTokenOnDestroy().Register(DisposeGo); + + void DisposeGo() + { + Pool.GetOrCreate(path).TryRemove(gameObject); + UsingPool.GetOrCreate(path).TryRemove(gameObject); + var queue = ReadyPool.GetOrCreate(path); + var removeObjectList = new List(queue); + removeObjectList.TryRemove(gameObject); + queue.Clear(); + foreach (var x in removeObjectList) + { + queue.Enqueue(x); + } + } + } + return instance as T; } } diff --git a/Src/Unity/Scripts/Scenes/UnityAutoDestroyOnStart.cs b/Src/Unity/Scripts/Scenes/UnityAutoDestroyOnStart.cs new file mode 100644 index 0000000..e1a5677 --- /dev/null +++ b/Src/Unity/Scripts/Scenes/UnityAutoDestroyOnStart.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class UnityAutoDestroyOnStart : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + Destroy(gameObject); + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Src/Core/WorldNode/WorldInfoNodeService.cs.meta b/Src/Unity/Scripts/Scenes/UnityAutoDestroyOnStart.cs.meta similarity index 83% rename from Src/Core/WorldNode/WorldInfoNodeService.cs.meta rename to Src/Unity/Scripts/Scenes/UnityAutoDestroyOnStart.cs.meta index be414ec..8377216 100644 --- a/Src/Core/WorldNode/WorldInfoNodeService.cs.meta +++ b/Src/Unity/Scripts/Scenes/UnityAutoDestroyOnStart.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 132a27b99db1e664692937ec23f40676 +guid: 802bbaa627560f547ba5c71f6f7b4a0c MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Src/Unity/Scripts/Tag/Tag.cs b/Src/Unity/Scripts/Tag/Tag.cs index 7454715..a443122 100644 --- a/Src/Unity/Scripts/Tag/Tag.cs +++ b/Src/Unity/Scripts/Tag/Tag.cs @@ -8,19 +8,10 @@ namespace BITKit { public class Tag : MonoBehaviour,ITag { - [Header(Constant.Header.Settings)] - [Tooltip("It's will be deprecated in the future, use reference instead.")] - [SerializeField] private string[] tags; - [Tooltip("Disable when tags is not empty")] [SerializeReference,SubclassSelector] private IReference[] reference; - public int Hash => _id is 0 ? _id = MathE.GetHash(GetTags()) : _id; + public int Hash => _id is 0 ? _id = MathE.GetHash(Tags) : _id; private int _id; - public string[] GetTags() => CacheTags ??= reference?.Length > 0 ? reference.Select(x => x.Value).ToArray() : tags; - private string[] CacheTags; - public void SetTags(IReference[] newReference) - { - reference = newReference; - CacheTags = null; - } + public IReadOnlyCollection Tags=> _cacheTags ??= reference.Select(x => x.Value).ToArray(); + private string[] _cacheTags; } } \ No newline at end of file diff --git a/Src/Unity/Scripts/Tick/IntervalTickService.cs b/Src/Unity/Scripts/Tick/IntervalTickService.cs index 894bcf6..0c66933 100644 --- a/Src/Unity/Scripts/Tick/IntervalTickService.cs +++ b/Src/Unity/Scripts/Tick/IntervalTickService.cs @@ -14,6 +14,7 @@ namespace BITKit [Serializable] public class IntervalTick:ITicker { + [SerializeField] private float interval; public ulong TickCount=>IntervalTickService.GetTickCount(interval); diff --git a/Src/Unity/Scripts/UX/RadialMenu/UXRadialMenu.cs b/Src/Unity/Scripts/UX/RadialMenu/UXRadialMenu.cs index 6da86ea..2a07d3d 100644 --- a/Src/Unity/Scripts/UX/RadialMenu/UXRadialMenu.cs +++ b/Src/Unity/Scripts/UX/RadialMenu/UXRadialMenu.cs @@ -32,11 +32,6 @@ namespace BITKit.UX _container.Clear(); _template =await ModService.LoadAsset("ui_radial_menu-template"); - - RootVisualElement.RegisterCallback(x => - { - UXService.Return(); - }); } protected override void OnPanelEntry() { diff --git a/Src/Unity/Scripts/UX/Utils/UXUtils.cs b/Src/Unity/Scripts/UX/Utils/UXUtils.cs index b4d1d0e..8a3939b 100644 --- a/Src/Unity/Scripts/UX/Utils/UXUtils.cs +++ b/Src/Unity/Scripts/UX/Utils/UXUtils.cs @@ -74,7 +74,7 @@ namespace BITKit.UX foreach (var fieldInfo in self.GetType() - .GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) + .GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly) .Where(x => x.GetCustomAttribute() is not null) ) { diff --git a/Src/Unity/Scripts/Utility/Extensions.cs b/Src/Unity/Scripts/Utility/Extensions.cs index e187d99..c3905ed 100644 --- a/Src/Unity/Scripts/Utility/Extensions.cs +++ b/Src/Unity/Scripts/Utility/Extensions.cs @@ -461,6 +461,11 @@ namespace BITKit return true; } component = self.GetComponentInParent(true); + if (component is not null) + { + return true; + } + component = self.GetComponent(); return component is not null; } public static bool TryGetFirstOrDefault(this IEnumerable self, out T value) diff --git a/Src/Unity/Scripts/VFX.meta b/Src/Unity/Scripts/VFX.meta new file mode 100644 index 0000000..bb36e26 --- /dev/null +++ b/Src/Unity/Scripts/VFX.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fdd91b53bafc0804d8d8382169b67308 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Src/Unity/Scripts/VFX/Net.Project.B.VFX.Unity.asmdef b/Src/Unity/Scripts/VFX/Net.Project.B.VFX.Unity.asmdef new file mode 100644 index 0000000..18e65bc --- /dev/null +++ b/Src/Unity/Scripts/VFX/Net.Project.B.VFX.Unity.asmdef @@ -0,0 +1,19 @@ +{ + "name": "Net.Project.B.VFX.Unity", + "rootNamespace": "", + "references": [ + "GUID:d525ad6bd40672747bde77962f1c401e", + "GUID:49b49c76ee64f6b41bf28ef951cb0e50", + "GUID:14fe60d984bf9f84eac55c6ea033a8f4", + "GUID:24866f14213d2124aa20be037476b521" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Src/Unity/Scripts/VFX/Net.Project.B.VFX.Unity.asmdef.meta b/Src/Unity/Scripts/VFX/Net.Project.B.VFX.Unity.asmdef.meta new file mode 100644 index 0000000..29e13a0 --- /dev/null +++ b/Src/Unity/Scripts/VFX/Net.Project.B.VFX.Unity.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 21442fa5e0c49e3408652e96f6565891 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Src/Unity/Scripts/VFX/VFXService.cs b/Src/Unity/Scripts/VFX/VFXService.cs new file mode 100644 index 0000000..8a166b1 --- /dev/null +++ b/Src/Unity/Scripts/VFX/VFXService.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using BITKit; +using BITKit.Entities; +using Net.BITKit.Impact; +using UnityEngine; + +namespace Net.BITKit.VFX +{ + public class VFXService + { + private readonly IEntitiesService _entitiesService; + private readonly IReadOnlyCollection _scriptableImpacts; + + public VFXService(IEntitiesService entitiesService) + { + _entitiesService = entitiesService; + _scriptableImpacts = _entitiesService.QueryComponents(); + } + + public AudioClip GetAudioClip(IReadOnlyCollection tags) + { + var bestMatches = Search(tags); + + return bestMatches.AudioClip; + } + + public Transform GetPrefab(IReadOnlyCollection tags) + { + var bestMatches = Search(tags); + return bestMatches.Prefab; + } + + private ScriptableImpact Search(IReadOnlyCollection tags) + { + var maxPoint = 0; + var max = new HashSet(); + foreach (var impact in _scriptableImpacts) + { + var point = impact.Tags.Intersect(tags).Count(); + if (point > maxPoint) + { + maxPoint = point; + max.Clear(); + max.Add(impact); + }else if (point == maxPoint) + { + max.Add(impact); + } + } + + if (max.Count is 1) + { + return max.First(); + } + + return max.OrderByDescending(x => x.Priority).First(); + } + } +} + diff --git a/Src/Unity/Scripts/VFX/VFXService.cs.meta b/Src/Unity/Scripts/VFX/VFXService.cs.meta new file mode 100644 index 0000000..9804659 --- /dev/null +++ b/Src/Unity/Scripts/VFX/VFXService.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0bee817d1b196f842899232c3a28d504 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Src/Unity/Scripts/WorldChunk/ChunkObject.cs b/Src/Unity/Scripts/WorldChunk/ChunkObject.cs index 64b263d..38647c9 100644 --- a/Src/Unity/Scripts/WorldChunk/ChunkObject.cs +++ b/Src/Unity/Scripts/WorldChunk/ChunkObject.cs @@ -60,7 +60,7 @@ namespace BITKit.OpenWorld #if UNITY_EDITOR [BIT] #endif - private void CalculateBounds() + public void CalculateBounds() { if (TryGetComponent(out var _collider)) { diff --git a/Src/Unity/Scripts/WorldChunk/WorldChunkService.cs b/Src/Unity/Scripts/WorldChunk/WorldChunkService.cs index 8de57dd..ccfe11e 100644 --- a/Src/Unity/Scripts/WorldChunk/WorldChunkService.cs +++ b/Src/Unity/Scripts/WorldChunk/WorldChunkService.cs @@ -25,7 +25,6 @@ namespace BITKit.OpenWorld private readonly ConcurrentDictionary dictionary=new(); [SerializeReference, SubclassSelector] private ITicker ticker; - [SerializeReference, SubclassSelector] private ISceneService sceneService; [SerializeField, ReadOnly] private int count; [SerializeField, ReadOnly] private int tickTaskCount; [SerializeField] private bool drawBounds; @@ -42,24 +41,13 @@ namespace BITKit.OpenWorld protected virtual void Start() { - sceneService?.RegisterLoadTaskAsync(LoadTask); ticker.Add(OnTick); destroyCancellationToken.Register(Dispose); _quadtree = new QuadtreeRoot>(transform.position, size); _camera = Camera.main; } - private async UniTask LoadTask() - { - var frame=0; - while (count is 0 || frame++<32) - { - if (destroyCancellationToken.IsCancellationRequested) return; - await UniTask.NextFrame(); - } - } protected virtual void Dispose() { - sceneService?.UnRegisterLoadTaskAsync(LoadTask); ticker.Remove(OnTick); _registerQueue.Clear(); _unregisterQueue.Clear(); diff --git a/Src/Unity/Scripts/WorldChunk/WorldTerrainBehaviour.cs b/Src/Unity/Scripts/WorldChunk/WorldTerrainBehaviour.cs index 68085b2..2ad0239 100644 --- a/Src/Unity/Scripts/WorldChunk/WorldTerrainBehaviour.cs +++ b/Src/Unity/Scripts/WorldChunk/WorldTerrainBehaviour.cs @@ -14,6 +14,7 @@ namespace BITKit.OpenWorld { public class WorldTerrainBehaviour : MonoBehaviour,IWorldChunkObject { + public static UniTaskCompletionSource WaitUntilInitialized = new(); [SerializeReference, SubclassSelector] private IReference sceneName; [SerializeField] private Vector3 size; [SerializeField] private Vector3 position; @@ -26,7 +27,15 @@ namespace BITKit.OpenWorld var stopWatcher = new System.Diagnostics.Stopwatch(); stopWatcher.Start(); _sceneHandle = YooAssets.LoadSceneAsync(sceneName.Value,LoadSceneMode.Additive,priority:8); - await _sceneHandle; + try + { + await _sceneHandle.WithCancellation(destroyCancellationToken); + } + catch (OperationCanceledException) + { + + } + stopWatcher.Stop(); Debug.Log($"加载场景 {sceneName.Value} 耗时 {stopWatcher.ElapsedMilliseconds}ms"); } diff --git a/Src/Unity/Shader/ShaderGraph/Billboard.mat b/Src/Unity/Shader/ShaderGraph/Billboard.mat index 606a0c4..b5d12ed 100644 --- a/Src/Unity/Shader/ShaderGraph/Billboard.mat +++ b/Src/Unity/Shader/ShaderGraph/Billboard.mat @@ -21,10 +21,11 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Billboard - m_Shader: {fileID: -6465566751694194690, guid: fc56a447eb0944f4f9fc3b51a4913759, type: 3} + m_Shader: {fileID: 4800000, guid: 86ce7e600deb17e429b8be445bb652f7, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] + m_ValidKeywords: + - SHAKEUV_ON m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 @@ -37,6 +38,14 @@ Material: m_SavedProperties: serializedVersion: 3 m_TexEnvs: + - _A: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} - _BaseMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} @@ -45,6 +54,18 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + - _ColorRampTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ColorRampTexGradient: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ColorSwapTex: + 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} @@ -57,14 +78,30 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + - _DistortTex: + 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: + - _FadeBurnTex: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + - _FadeTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _GlowTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 10904, guid: 0000000000000000f000000000000000, type: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} - _MainTexture: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} @@ -73,14 +110,34 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + - _NormalMap: + 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} + - _OutlineDistortTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OutlineTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OverlayTex: + 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} + - _ShineMask: + 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} @@ -99,40 +156,216 @@ Material: m_Offset: {x: 0, y: 0} m_Ints: [] m_Floats: + - PixelSnap: 0 + - _Alpha: 1 - _AlphaClip: 0 + - _AlphaCutoffValue: 0.25 + - _AlphaOutlineBlend: 1 + - _AlphaOutlineGlow: 5 + - _AlphaOutlineMinAlpha: 0 + - _AlphaOutlinePower: 1 + - _AlphaRoundThreshold: 0.5 - _AlphaToMask: 0 + - _BillboardY: 0 - _Blend: 0 - _BlendModePreserveSpecular: 1 + - _BlurHD: 0 + - _BlurIntensity: 10 + - _Brightness: 0 - _BumpScale: 1 + - _ChromAberrAlpha: 0.4 + - _ChromAberrAmount: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _ClipUvDown: 0 + - _ClipUvLeft: 0 + - _ClipUvRight: 0 + - _ClipUvUp: 0 + - _ColorChangeLuminosity: 0 + - _ColorChangeTolerance: 0.25 + - _ColorChangeTolerance2: 0.25 + - _ColorChangeTolerance3: 0.25 + - _ColorRampBlend: 1 + - _ColorRampLuminosity: 0 + - _ColorRampOutline: 0 + - _ColorSwapBlend: 1 + - _ColorSwapBlueLuminosity: 0.5 + - _ColorSwapGreenLuminosity: 0.5 + - _ColorSwapRedLuminosity: 0.5 + - _Contrast: 1 - _Cull: 2 + - _CullingOption: 0 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 + - _DistortAmount: 0.5 + - _DistortTexXSpeed: 5 + - _DistortTexYSpeed: 5 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EditorDrawers: 6 + - _EnableExternalAlpha: 0 - _EnvironmentReflections: 1 + - _FadeAmount: -0.1 + - _FadeBurnGlow: 2 + - _FadeBurnTransition: 0.075 + - _FadeBurnWidth: 0.025 + - _FishEyeUvAmount: 0.35 + - _FlickerAlpha: 0 + - _FlickerFreq: 0.2 + - _FlickerPercent: 0.05 + - _GhostBlend: 1 + - _GhostColorBoost: 1 + - _GhostTransparency: 0 + - _GlitchAmount: 3 + - _GlitchSize: 1 - _GlossMapScale: 0 - _Glossiness: 0 - _GlossyReflections: 0 + - _Glow: 10 + - _GlowGlobal: 1 + - _GradBlend: 1 + - _GradBoostX: 1.2 + - _GradBoostY: 1.2 + - _GradIsRadial: 0 + - _GrassManualAnim: 1 + - _GrassManualToggle: 0 + - _GrassRadialBend: 0.1 + - _GrassSpeed: 2 + - _GrassWind: 20 + - _GreyscaleBlend: 1 + - _GreyscaleLuminosity: 0 + - _GreyscaleOutline: 0 + - _HandDrawnAmount: 10 + - _HandDrawnSpeed: 5 + - _HitEffectBlend: 1 + - _HitEffectGlow: 5 + - _HologramBlend: 1 + - _HologramMaxAlpha: 0.75 + - _HologramMinAlpha: 0.1 + - _HologramStripesAmount: 0.1 + - _HologramStripesSpeed: 4.5 + - _HologramUnmodAmount: 0 + - _HsvBright: 1 + - _HsvSaturation: 1 + - _HsvShift: 180 + - _InnerOutlineAlpha: 1 + - _InnerOutlineGlow: 4 + - _InnerOutlineThickness: 1 + - _MaxXUV: 1 + - _MaxYUV: 1 - _Metallic: 0 + - _MinXUV: 0 + - _MinYUV: 0 + - _MotionBlurAngle: 0.1 + - _MotionBlurDist: 1.25 + - _MyDstMode: 10 + - _MySrcMode: 5 + - _NegativeAmount: 1 + - _NormalStrength: 1 - _OcclusionStrength: 1 + - _OffsetUvX: 0 + - _OffsetUvY: 0 + - _OnlyInnerOutline: 0 + - _OnlyOutline: 0 + - _OutlineAlpha: 1 + - _OutlineDistortAmount: 0.5 + - _OutlineDistortTexXSpeed: 5 + - _OutlineDistortTexYSpeed: 5 + - _OutlineGlow: 1 + - _OutlinePixelWidth: 1 + - _OutlineTexXSpeed: 10 + - _OutlineTexYSpeed: 0 + - _OutlineWidth: 0.004 + - _OverlayBlend: 1 + - _OverlayGlow: 1 + - _OverlayTextureScrollXSpeed: 0.25 + - _OverlayTextureScrollYSpeed: 0.25 - _Parallax: 0.005 + - _PinchUvAmount: 0.35 + - _PixelateSize: 32 + - _PosterizeGamma: 0.75 + - _PosterizeNumColors: 8 + - _PosterizeOutline: 0 - _QueueControl: 0 - _QueueOffset: 0 + - _RadialClip: 45 + - _RadialClip2: 0 + - _RadialStartAngle: 90 + - _RandomSeed: 0 - _ReceiveShadows: 1 + - _RectSize: 1 + - _RotateUvAmount: 0 + - _RoundWaveSpeed: 2 + - _RoundWaveStrength: 0.7 + - _ShadowAlpha: 0.5 + - _ShadowX: 0.1 + - _ShadowY: -0.05 + - _ShakeUvSpeed: 1 + - _ShakeUvX: 0 + - _ShakeUvY: 5 + - _ShineGlow: 1 + - _ShineLocation: 0.5 + - _ShineRotate: 0 + - _ShineWidth: 0.1 - _Smoothness: 0.5 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _SrcBlendAlpha: 1 - _Surface: 0 + - _TextureScrollXSpeed: 1 + - _TextureScrollYSpeed: 0 + - _TwistUvAmount: 1 + - _TwistUvPosX: 0.5 + - _TwistUvPosY: 0.5 + - _TwistUvRadius: 0.75 + - _WarpScale: 0.5 + - _WarpSpeed: 8 + - _WarpStrength: 0.025 + - _WaveAmount: 7 + - _WaveSpeed: 10 + - _WaveStrength: 7.5 + - _WaveX: 0 + - _WaveY: 0.5 + - _WindQuality: 0 - _WorkflowMode: 1 + - _ZTestMode: 4 - _ZWrite: 1 + - _ZoomUvAmount: 0.5 m_Colors: + - _AlphaOutlineColor: {r: 1, g: 1, b: 1, a: 1} - _BaseColor: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _ColorChangeNewCol: {r: 1, g: 1, b: 0, a: 1} + - _ColorChangeNewCol2: {r: 1, g: 1, b: 0, a: 1} + - _ColorChangeNewCol3: {r: 1, g: 1, b: 0, a: 1} + - _ColorChangeTarget: {r: 1, g: 0, b: 0, a: 1} + - _ColorChangeTarget2: {r: 1, g: 0, b: 0, a: 1} + - _ColorChangeTarget3: {r: 1, g: 0, b: 0, a: 1} + - _ColorSwapBlue: {r: 1, g: 1, b: 1, a: 1} + - _ColorSwapGreen: {r: 1, g: 1, b: 1, a: 1} + - _ColorSwapRed: {r: 1, g: 1, b: 1, a: 1} + - _Distance_Fade: {r: 0, g: 4, b: 0, a: 0} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _FadeBurnColor: {r: 1, g: 1, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _GlowColor: {r: 1, g: 1, b: 1, a: 1} + - _GradBotLeftCol: {r: 0, g: 0, b: 1, a: 1} + - _GradBotRightCol: {r: 0, g: 1, b: 0, a: 1} + - _GradTopLeftCol: {r: 1, g: 0, b: 0, a: 1} + - _GradTopRightCol: {r: 1, g: 1, b: 0, a: 1} + - _GreyscaleTintColor: {r: 1, g: 1, b: 1, a: 1} + - _Height_Fade: {r: 0, g: 1, b: 0, a: 0} + - _HitEffectColor: {r: 1, g: 1, b: 1, a: 1} + - _HologramStripeColor: {r: 0, g: 1, b: 1, a: 1} + - _HueVariation: {r: 1, g: 0.5, b: 0, a: 0.1} + - _InnerOutlineColor: {r: 1, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 1, a: 1} + - _OverlayColor: {r: 1, g: 1, b: 1, a: 1} + - _RGBA: {r: 1, g: 1, b: 1, a: 0.8705882} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + - _ShadowColor: {r: 0, g: 0, b: 0, a: 1} + - _ShineColor: {r: 1, g: 1, b: 1, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} m_BuildTextureStacks: [] diff --git a/Src/Unity/Shader/ShaderGraph/Pixel/PixelShader.shadergraph b/Src/Unity/Shader/ShaderGraph/Pixel/PixelShader.shadergraph index 41211b7..2982e02 100644 --- a/Src/Unity/Shader/ShaderGraph/Pixel/PixelShader.shadergraph +++ b/Src/Unity/Shader/ShaderGraph/Pixel/PixelShader.shadergraph @@ -26,6 +26,12 @@ }, { "m_Id": "884c161239c045e1836f680c9b0633c1" + }, + { + "m_Id": "15e08626b5fc4c33aa3f8102b2e45f54" + }, + { + "m_Id": "8ec998760b6d49f698168a815d7cfcaf" } ], "m_Keywords": [], @@ -96,9 +102,6 @@ { "m_Id": "d92137df685d4ebebac6d94fd713d4a5" }, - { - "m_Id": "124e0ddd42ce460da92d90f1dd796581" - }, { "m_Id": "c612be7200e64de8b1292d79fbe26cd5" }, @@ -144,14 +147,47 @@ { "m_Id": "dc03862f394a4a6eb7481e969012fec1" }, - { - "m_Id": "b81504410233493788b68f3048cb83be" - }, { "m_Id": "f0e1753166cd415fb00319b8acb336a0" }, { - "m_Id": "9ae574b3065a465abe3efc46489a8d05" + "m_Id": "41d280dab819445aae1ab77bb0b11fc1" + }, + { + "m_Id": "3935ef2dae0e43918ab38d0a91f657bc" + }, + { + "m_Id": "2e53f4fd97d141e1b99da64ccf099072" + }, + { + "m_Id": "d2897afce0db4683871d984be726dd69" + }, + { + "m_Id": "b5907542c340417991dfc30b1284f89d" + }, + { + "m_Id": "8325d491e1eb4d4190a365e55f009840" + }, + { + "m_Id": "ff31c5ea745d4406b2f846b1ed02a114" + }, + { + "m_Id": "21208e9e3a3c4ab2aae348a1aecde46a" + }, + { + "m_Id": "1df8d8f36ea442d984b67556b5baef07" + }, + { + "m_Id": "a54ded48230b42a7b7e12627e8101090" + }, + { + "m_Id": "c57c87a0ee6c480ba2a85962beef0fb7" + }, + { + "m_Id": "afa0b8eb444b4fff8eea91d062894d5d" + }, + { + "m_Id": "24e3e9d9367848508652b1ee90b54b39" } ], "m_GroupDatas": [ @@ -178,7 +214,49 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "124e0ddd42ce460da92d90f1dd796581" + "m_Id": "14da553205e24a929fe0c464355da79b" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "072d46e7303a474e897ce3871e3786e6" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1df8d8f36ea442d984b67556b5baef07" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f0e1753166cd415fb00319b8acb336a0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "21208e9e3a3c4ab2aae348a1aecde46a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1df8d8f36ea442d984b67556b5baef07" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "24e3e9d9367848508652b1ee90b54b39" }, "m_SlotId": 0 }, @@ -192,17 +270,45 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "14da553205e24a929fe0c464355da79b" + "m_Id": "2e53f4fd97d141e1b99da64ccf099072" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3935ef2dae0e43918ab38d0a91f657bc" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3935ef2dae0e43918ab38d0a91f657bc" }, "m_SlotId": 2 }, "m_InputSlot": { "m_Node": { - "m_Id": "072d46e7303a474e897ce3871e3786e6" + "m_Id": "d2897afce0db4683871d984be726dd69" }, "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "41d280dab819445aae1ab77bb0b11fc1" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3935ef2dae0e43918ab38d0a91f657bc" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -287,6 +393,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8325d491e1eb4d4190a365e55f009840" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "41d280dab819445aae1ab77bb0b11fc1" + }, + "m_SlotId": 5 + } + }, { "m_OutputSlot": { "m_Node": { @@ -315,20 +435,6 @@ "m_SlotId": 3 } }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "9ae574b3065a465abe3efc46489a8d05" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "f0e1753166cd415fb00319b8acb336a0" - }, - "m_SlotId": 0 - } - }, { "m_OutputSlot": { "m_Node": { @@ -371,6 +477,20 @@ "m_SlotId": 2 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a54ded48230b42a7b7e12627e8101090" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1df8d8f36ea442d984b67556b5baef07" + }, + "m_SlotId": 2 + } + }, { "m_OutputSlot": { "m_Node": { @@ -402,13 +522,27 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "b81504410233493788b68f3048cb83be" + "m_Id": "afa0b8eb444b4fff8eea91d062894d5d" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "9ae574b3065a465abe3efc46489a8d05" + "m_Id": "f0e1753166cd415fb00319b8acb336a0" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b5907542c340417991dfc30b1284f89d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d2897afce0db4683871d984be726dd69" }, "m_SlotId": 1 } @@ -427,6 +561,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c57c87a0ee6c480ba2a85962beef0fb7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a54ded48230b42a7b7e12627e8101090" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -455,6 +603,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d2897afce0db4683871d984be726dd69" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1df8d8f36ea442d984b67556b5baef07" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -524,6 +686,20 @@ }, "m_SlotId": 0 } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ff31c5ea745d4406b2f846b1ed02a114" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "41d280dab819445aae1ab77bb0b11fc1" + }, + "m_SlotId": 1 + } } ], "m_VertexContext": { @@ -867,46 +1043,13 @@ "m_ChildObjectList": [ { "m_Id": "884c161239c045e1836f680c9b0633c1" + }, + { + "m_Id": "15e08626b5fc4c33aa3f8102b2e45f54" } ] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "124e0ddd42ce460da92d90f1dd796581", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -1982.0, - "y": 280.66668701171877, - "width": 116.666748046875, - "height": 36.0 - } - }, - "m_Slots": [ - { - "m_Id": "3a264e5c3bb14de18c77625219382330" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "2ccd359e05164fd3b5cbd81b2c6a39be" - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlendNode", @@ -971,6 +1114,77 @@ "m_BlendMode": 21 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "15c80bc3a00a4d1189010066719e980f", + "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.Internal.BooleanShaderProperty", + "m_ObjectId": "15e08626b5fc4c33aa3f8102b2e45f54", + "m_Guid": { + "m_GuidSerialized": "200bf88a-c69c-44d2-8a27-86cdee62e878" + }, + "m_Name": "IsWorldSpace", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "IsWorldSpace", + "m_DefaultReferenceName": "_IsWorldSpace", + "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": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1051,17 +1265,48 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "1cfb15da82c34d2689f777a91877b579", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_Type": "UnityEditor.ShaderGraph.BranchNode", + "m_ObjectId": "1df8d8f36ea442d984b67556b5baef07", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1017.3331909179688, + "y": -278.0, + "width": 209.33331298828126, + "height": 328.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "413ca08afea34fd1bcec80d560696636" + }, + { + "m_Id": "5d8a4f6b70a6402ea6fe524efbfeb088" + }, + { + "m_Id": "df4bdd0917544c1685b54067f2824429" + }, + { + "m_Id": "ef1a5e0ad31b457c8f5f3eb91f0b14a4" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } } { @@ -1113,6 +1358,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "21208e9e3a3c4ab2aae348a1aecde46a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1267.3333740234375, + "y": -216.6666717529297, + "width": 150.6666259765625, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "5a0ba719e9174bd8833e5e9ab5b0ff6c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "15e08626b5fc4c33aa3f8102b2e45f54" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1128,6 +1409,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "24e3e9d9367848508652b1ee90b54b39", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2014.666748046875, + "y": 353.3333435058594, + "width": 141.3333740234375, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "649cfa60199740a18cf1aa667762ae9c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8ec998760b6d49f698168a815d7cfcaf" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -1183,6 +1500,19 @@ ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "28ce3165b33044b9a5c266c79ee0245b", + "m_Id": 0, + "m_DisplayName": "MainTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -1235,6 +1565,97 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "2ddac3082949487b94cfbec54c8bee06", + "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.Vector1Node", + "m_ObjectId": "2e53f4fd97d141e1b99da64ccf099072", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Float", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1608.6668701171875, + "y": -976.6666870117188, + "width": 127.3333740234375, + "height": 78.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "38623d06bb574a4f813dfca90b9bf713" + }, + { + "m_Id": "4345691c01b94b2e9aaab88ae568e1f4" + } + ], + "synonyms": [ + "Vector 1", + "1", + "v1", + "vec1", + "scalar" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1281,19 +1702,6 @@ "m_Channel": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", - "m_ObjectId": "32ee21811b674d54b28cbbade400fa0a", - "m_Id": 0, - "m_DisplayName": "MainTexture", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -1379,6 +1787,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "38623d06bb574a4f813dfca90b9bf713", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1420,17 +1843,55 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "3a264e5c3bb14de18c77625219382330", + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "3935ef2dae0e43918ab38d0a91f657bc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1401.33349609375, + "y": -841.3333740234375, + "width": 209.3333740234375, + "height": 303.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "d6f5efb0d16c44979f820437faa25439" + }, + { + "m_Id": "15c80bc3a00a4d1189010066719e980f" + }, + { + "m_Id": "bea5d7f1b5fc441e9fde3a49a18ecdae" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "413ca08afea34fd1bcec80d560696636", "m_Id": 0, - "m_DisplayName": "Opacity", - "m_SlotType": 1, + "m_DisplayName": "Predicate", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Out", + "m_ShaderOutputName": "Predicate", "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_Value": false, + "m_DefaultValue": false } { @@ -1448,6 +1909,75 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TriplanarNode", + "m_ObjectId": "41d280dab819445aae1ab77bb0b11fc1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Triplanar", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1695.3336181640625, + "y": -672.666748046875, + "width": 209.33349609375, + "height": 436.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "c36b03fbba7940aaa061bcbdb4c649e9" + }, + { + "m_Id": "a69b9643b5694a6ea531e7bae8efe1cb" + }, + { + "m_Id": "c450751f10854ca5b6e38f4199bd85d3" + }, + { + "m_Id": "b2d7686a87c74f538d0eea2787f78d44" + }, + { + "m_Id": "95261424f4e745e8b93e71bda7c139d0" + }, + { + "m_Id": "bad57a0348e04fa59ee8649b0e5981e1" + }, + { + "m_Id": "af73ba56ddd64d8bace938a527d8c742" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_InputSpace": 4, + "m_NormalOutputSpace": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4345691c01b94b2e9aaab88ae568e1f4", + "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.Vector1MaterialSlot", @@ -1475,10 +2005,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -1586.0, - "y": 348.0, - "width": 117.3333740234375, - "height": 36.000030517578128 + "x": -148.6666717529297, + "y": 324.0000305175781, + "width": 117.33333587646485, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -1631,21 +2161,6 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "5258ea39bc0f45f588195967d9d69dc5", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", @@ -1816,6 +2331,20 @@ "m_BlendMode": 13 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "5a0ba719e9174bd8833e5e9ab5b0ff6c", + "m_Id": 0, + "m_DisplayName": "IsWorldSpace", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -1844,6 +2373,45 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5d8a4f6b70a6402ea6fe524efbfeb088", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5de5d0398f0843408f2d5ab6e7d4fbbd", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1892,28 +2460,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "5effc1f4f0e3492cb78c709a2b83389b", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -1977,6 +2523,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "649cfa60199740a18cf1aa667762ae9c", + "m_Id": 0, + "m_DisplayName": "PixelOpacity", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2063,6 +2624,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6ce2db9a2bdb40268b52a9915db2802d", + "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.DynamicVectorMaterialSlot", @@ -2124,19 +2700,6 @@ "m_BareResource": false } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "74663c78684142d4b86bac8cd1e46711", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2293,6 +2856,19 @@ "m_Channel": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "7f742aa59b6e4a7dac4ee4c15f8a0e05", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2351,6 +2927,49 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1Node", + "m_ObjectId": "8325d491e1eb4d4190a365e55f009840", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Float", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1901.3336181640625, + "y": -514.6666870117188, + "width": 127.3333740234375, + "height": 78.66659545898438 + } + }, + "m_Slots": [ + { + "m_Id": "942ff6b646514b2c8910ef60d9b6c373" + }, + { + "m_Id": "6ce2db9a2bdb40268b52a9915db2802d" + } + ], + "synonyms": [ + "Vector 1", + "1", + "v1", + "vec1", + "scalar" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4Node", @@ -2489,6 +3108,34 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "8ec998760b6d49f698168a815d7cfcaf", + "m_Guid": { + "m_GuidSerialized": "ff8d22eb-0768-4379-928b-9f306115c764" + }, + "m_Name": "PixelOpacity", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "PixelOpacity", + "m_DefaultReferenceName": "_PixelOpacity", + "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.Vector1MaterialSlot", @@ -2570,18 +3217,46 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "9244fa13363240d48821cbfc0f110f4c", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, + "m_ObjectId": "942ff6b646514b2c8910ef60d9b6c373", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 1.0, "m_DefaultValue": 0.0, "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "95261424f4e745e8b93e71bda7c139d0", + "m_Id": 4, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "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": [ + "X", + "Y", + "Z" + ], + "m_Space": 4 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -2680,66 +3355,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "9ae574b3065a465abe3efc46489a8d05", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -1202.0, - "y": -203.33334350585938, - "width": 209.33331298828126, - "height": 438.66668701171877 - } - }, - "m_Slots": [ - { - "m_Id": "b771bf2a52b544c4abf55a7e3ed33345" - }, - { - "m_Id": "f3a96f3b47b449a9a64d4f6bd14ef72c" - }, - { - "m_Id": "1cfb15da82c34d2689f777a91877b579" - }, - { - "m_Id": "9244fa13363240d48821cbfc0f110f4c" - }, - { - "m_Id": "5258ea39bc0f45f588195967d9d69dc5" - }, - { - "m_Id": "ca53df55f46f4fa892af2c7e490d78bf" - }, - { - "m_Id": "5effc1f4f0e3492cb78c709a2b83389b" - }, - { - "m_Id": "74663c78684142d4b86bac8cd1e46711" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 0, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalFromTextureNode", @@ -2952,6 +3567,97 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "a54ded48230b42a7b7e12627e8101090", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1325.9998779296875, + "y": -80.66668701171875, + "width": 209.333251953125, + "height": 438.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "b18dfc2ce8bd42b6a93c6d2f6c71c41c" + }, + { + "m_Id": "caa741d17c0e47729810617685852dda" + }, + { + "m_Id": "db3270d0ad954b4381e98f29d64f8c02" + }, + { + "m_Id": "d4799d16c9304df399050493b8f6ed1e" + }, + { + "m_Id": "5de5d0398f0843408f2d5ab6e7d4fbbd" + }, + { + "m_Id": "d3877565f58d4de48f60f401905c1249" + }, + { + "m_Id": "bf9b0ec68b784895aa5183ca02a0ddf3" + }, + { + "m_Id": "7f742aa59b6e4a7dac4ee4c15f8a0e05" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "a69b9643b5694a6ea531e7bae8efe1cb", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "a81bd58ecfd549a198850d45d649a1f5", + "m_Id": 0, + "m_DisplayName": "MainTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3018,9 +3724,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -1610.0, - "y": 382.0000305175781, - "width": 141.3333740234375, + "x": -172.66664123535157, + "y": 378.66668701171877, + "width": 141.33331298828126, "height": 36.000030517578128 } }, @@ -3103,6 +3809,112 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "af73ba56ddd64d8bace938a527d8c742", + "m_Id": 6, + "m_DisplayName": "Blend", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Blend", + "m_StageCapability": 3, + "m_Value": 50.0, + "m_DefaultValue": 1.0, + "m_Labels": [ + "X" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "afa0b8eb444b4fff8eea91d062894d5d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -824.6666259765625, + "y": 150.66665649414063, + "width": 116.6666259765625, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "d50e8aca9b074a049aed8a7ada83c961" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2ccd359e05164fd3b5cbd81b2c6a39be" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "b18dfc2ce8bd42b6a93c6d2f6c71c41c", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "b2d7686a87c74f538d0eea2787f78d44", + "m_Id": 3, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "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": [ + "X", + "Y", + "Z" + ], + "m_Space": 4 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -3127,6 +3939,123 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.ColorNode", + "m_ObjectId": "b5907542c340417991dfc30b1284f89d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Color", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1172.0001220703125, + "y": -774.666748046875, + "width": 209.33331298828126, + "height": 130.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "b5c71b8912964d5ab4d4204d797418d4" + } + ], + "synonyms": [ + "rgba" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Color": { + "color": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "mode": 0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "b5c71b8912964d5ab4d4204d797418d4", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "b6bd0ab8b5184bbfbce6b4bb3a27751f", + "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.Vector4MaterialSlot", @@ -3154,63 +4083,19 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "b771bf2a52b544c4abf55a7e3ed33345", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bad57a0348e04fa59ee8649b0e5981e1", + "m_Id": 5, + "m_DisplayName": "Tile", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "b81504410233493788b68f3048cb83be", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -1403.3333740234375, - "y": -128.6667022705078, - "width": 150.6666259765625, - "height": 36.00001525878906 - } - }, - "m_Slots": [ - { - "m_Id": "32ee21811b674d54b28cbbade400fa0a" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "884c161239c045e1836f680c9b0633c1" - } + "m_ShaderOutputName": "Tile", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [ + "X" + ] } { @@ -3259,6 +4144,76 @@ "m_DefaultType": 3 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "bea5d7f1b5fc441e9fde3a49a18ecdae", + "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.UVMaterialSlot", + "m_ObjectId": "bf9b0ec68b784895aa5183ca02a0ddf3", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -3416,6 +4371,31 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "c36b03fbba7940aaa061bcbdb4c649e9", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.RandomRangeNode", @@ -3458,6 +4438,19 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "c450751f10854ca5b6e38f4199bd85d3", + "m_Id": 2, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -3498,6 +4491,42 @@ "m_SupportVFX": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c57c87a0ee6c480ba2a85962beef0fb7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1431.013671875, + "y": -135.6995086669922, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "28ce3165b33044b9a5c266c79ee0245b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "884c161239c045e1836f680c9b0633c1" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -3551,20 +4580,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "ca53df55f46f4fa892af2c7e490d78bf", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "caa741d17c0e47729810617685852dda", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", - "m_Guid": "" - }, - "m_DefaultType": 0 + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -3756,6 +4782,63 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "d2897afce0db4683871d984be726dd69", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1017.3333740234375, + "y": -841.3333740234375, + "width": 209.33331298828126, + "height": 303.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "ff108c029c95489faa744c5a9777e34c" + }, + { + "m_Id": "2ddac3082949487b94cfbec54c8bee06" + }, + { + "m_Id": "b6bd0ab8b5184bbfbce6b4bb3a27751f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "d3877565f58d4de48f60f401905c1249", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", @@ -3836,6 +4919,36 @@ "m_MipSamplingMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d4799d16c9304df399050493b8f6ed1e", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d50e8aca9b074a049aed8a7ada83c961", + "m_Id": 0, + "m_DisplayName": "Opacity", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3851,6 +4964,54 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "d6f5efb0d16c44979f820437faa25439", + "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": 2, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", @@ -3925,6 +5086,21 @@ "m_BlendMode": 13 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "db3270d0ad954b4381e98f29d64f8c02", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3976,6 +5152,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "df4bdd0917544c1685b54067f2824429", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -4023,6 +5223,30 @@ "m_SerializedDescriptor": "SurfaceDescription.Smoothness" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ef1a5e0ad31b457c8f5f3eb91f0b14a4", + "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.CategoryData", @@ -4032,6 +5256,9 @@ { "m_Id": "cdb5d3d1591c47388465088026a69c04" }, + { + "m_Id": "8ec998760b6d49f698168a815d7cfcaf" + }, { "m_Id": "2ccd359e05164fd3b5cbd81b2c6a39be" }, @@ -4111,21 +5338,6 @@ "m_BlendMode": 13 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "f3a96f3b47b449a9a64d4f6bd14ef72c", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -4304,3 +5516,87 @@ "m_OutputChannel": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ff108c029c95489faa744c5a9777e34c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "ff31c5ea745d4406b2f846b1ed02a114", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1875.3333740234375, + "y": -672.6666870117188, + "width": 150.666748046875, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "a81bd58ecfd549a198850d45d649a1f5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "884c161239c045e1836f680c9b0633c1" + } +} + diff --git a/Src/Unity/Shader/ShaderGraph/billboard-shadow.shadergraph b/Src/Unity/Shader/ShaderGraph/billboard-shadow.shadergraph new file mode 100644 index 0000000..ef4c668 --- /dev/null +++ b/Src/Unity/Shader/ShaderGraph/billboard-shadow.shadergraph @@ -0,0 +1,5992 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "80cb4d329af2482aaa63ce452eaae22f", + "m_Properties": [ + { + "m_Id": "44767c635b914cffb5de015238bc5ba0" + }, + { + "m_Id": "7cb23ac8301a422da746e5fe9eb5c1b1" + }, + { + "m_Id": "06a1642da6224ab392beb361c17698ef" + }, + { + "m_Id": "698a2b1ba8a8428fb544deed5efb7bed" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "4297c401299a4f48a401d53ed3a76471" + } + ], + "m_Nodes": [ + { + "m_Id": "635f8317c1d6444c963b9d6e621b45b9" + }, + { + "m_Id": "6e737174c3bc48a893525e11d8b94eb6" + }, + { + "m_Id": "063559dd18bb40949fba96df86db5c17" + }, + { + "m_Id": "231b4bcce88249ea9294317ac9f620d1" + }, + { + "m_Id": "6671464ed4714f40b292c9ac6fbd4f82" + }, + { + "m_Id": "eadf116b84844413a114c6e873c42163" + }, + { + "m_Id": "3b96ef2544094380acb4ba959444e868" + }, + { + "m_Id": "126f3143b1bc49f1b68ab9f1bb44ff91" + }, + { + "m_Id": "93ef5e6afe2a4904abe9da2ba2800cf9" + }, + { + "m_Id": "6be37630bd554318b197a39bd0fea586" + }, + { + "m_Id": "ac3ab05fab7f4417acf0716668bddd09" + }, + { + "m_Id": "da7b86903ac84666b4b6074248e99571" + }, + { + "m_Id": "3b81d113f65a4d24908c9d16a710ad0e" + }, + { + "m_Id": "3bd79ac579f14924ba47ccb26c2c87a2" + }, + { + "m_Id": "774e8ba7325143118462c7afc3e87cc1" + }, + { + "m_Id": "8d658481c0bd428d923825b962bf650a" + }, + { + "m_Id": "47bbed7a73224a5b99d6ceaf97a519ce" + }, + { + "m_Id": "0967194e1a8946dabf8c6cffc68465dd" + }, + { + "m_Id": "dc204c6c919945d1b7819d9c23a886bf" + }, + { + "m_Id": "ec0c767a0c464e5dabd19646b4fd5f4f" + }, + { + "m_Id": "cd915c1ec09f44ee91e2a16b09a6c19c" + }, + { + "m_Id": "988ae0244059443fb9dda70f50db6312" + }, + { + "m_Id": "15a07e09016b48b6ac5ee7c1dd98e0ad" + }, + { + "m_Id": "dc2eb1b1f75a47feaa3feda8e9d9040d" + }, + { + "m_Id": "7018ccb9cd7c43f6b276c940f54ae10d" + }, + { + "m_Id": "32870ca110c142788fe415349dc21aec" + }, + { + "m_Id": "33bf52ca9adf422daf3482fecd7a5ab9" + }, + { + "m_Id": "fae75301d0604c23b4ef6f163617fe71" + }, + { + "m_Id": "8b4d5fd97f394e85b35f1134649c9044" + }, + { + "m_Id": "5701a54716694f4eac4b230a796ba55f" + }, + { + "m_Id": "40451a90329b431ea3fbf2041eeadc4c" + }, + { + "m_Id": "fa055be5a7e14850b07652f7cc8b8d85" + }, + { + "m_Id": "6078eae89be14936b8e6f6c339b5cf6b" + }, + { + "m_Id": "706caaf0b3a440209490ab69c353e429" + }, + { + "m_Id": "08e4638804e84f80ba0a9e858f4b7e27" + }, + { + "m_Id": "08fc72e49c7b4bdbad46d7f08f244563" + }, + { + "m_Id": "80251d531bf344599ec274728d20f6b6" + }, + { + "m_Id": "de3a6d6b963d48738af142df22a73644" + }, + { + "m_Id": "6caaa1e5f53a4eb39661d2ff5778253e" + }, + { + "m_Id": "1fff91c018eb48ecb120cf1005e56c39" + }, + { + "m_Id": "a882f7af25264051b5b499f546b64915" + }, + { + "m_Id": "4b620307928b4a568eb4d25e129098ab" + }, + { + "m_Id": "5584d94e0a584a6cb51ca717f651f165" + }, + { + "m_Id": "82b706119fd34fde8f2c4de2473e86a7" + }, + { + "m_Id": "11a4be5971734730a4d4282b63b495f9" + }, + { + "m_Id": "89cc23c8ab864b03a7ba270b102c2f64" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08e4638804e84f80ba0a9e858f4b7e27" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "08fc72e49c7b4bdbad46d7f08f244563" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08fc72e49c7b4bdbad46d7f08f244563" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5701a54716694f4eac4b230a796ba55f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08fc72e49c7b4bdbad46d7f08f244563" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5701a54716694f4eac4b230a796ba55f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0967194e1a8946dabf8c6cffc68465dd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "dc204c6c919945d1b7819d9c23a886bf" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "11a4be5971734730a4d4282b63b495f9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80251d531bf344599ec274728d20f6b6" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "126f3143b1bc49f1b68ab9f1bb44ff91" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "33bf52ca9adf422daf3482fecd7a5ab9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "126f3143b1bc49f1b68ab9f1bb44ff91" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "89cc23c8ab864b03a7ba270b102c2f64" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1fff91c018eb48ecb120cf1005e56c39" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "82b706119fd34fde8f2c4de2473e86a7" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "32870ca110c142788fe415349dc21aec" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fa055be5a7e14850b07652f7cc8b8d85" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "33bf52ca9adf422daf3482fecd7a5ab9" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "15a07e09016b48b6ac5ee7c1dd98e0ad" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3b81d113f65a4d24908c9d16a710ad0e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6be37630bd554318b197a39bd0fea586" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3b96ef2544094380acb4ba959444e868" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eadf116b84844413a114c6e873c42163" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3bd79ac579f14924ba47ccb26c2c87a2" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "774e8ba7325143118462c7afc3e87cc1" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "40451a90329b431ea3fbf2041eeadc4c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5701a54716694f4eac4b230a796ba55f" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4b620307928b4a568eb4d25e129098ab" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5584d94e0a584a6cb51ca717f651f165" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5584d94e0a584a6cb51ca717f651f165" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "93ef5e6afe2a4904abe9da2ba2800cf9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5701a54716694f4eac4b230a796ba55f" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fa055be5a7e14850b07652f7cc8b8d85" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6078eae89be14936b8e6f6c339b5cf6b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "706caaf0b3a440209490ab69c353e429" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6671464ed4714f40b292c9ac6fbd4f82" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6e737174c3bc48a893525e11d8b94eb6" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6be37630bd554318b197a39bd0fea586" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "126f3143b1bc49f1b68ab9f1bb44ff91" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6caaa1e5f53a4eb39661d2ff5778253e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5584d94e0a584a6cb51ca717f651f165" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7018ccb9cd7c43f6b276c940f54ae10d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "47bbed7a73224a5b99d6ceaf97a519ce" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "706caaf0b3a440209490ab69c353e429" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "32870ca110c142788fe415349dc21aec" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "706caaf0b3a440209490ab69c353e429" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "32870ca110c142788fe415349dc21aec" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "774e8ba7325143118462c7afc3e87cc1" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "126f3143b1bc49f1b68ab9f1bb44ff91" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "80251d531bf344599ec274728d20f6b6" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "de3a6d6b963d48738af142df22a73644" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "82b706119fd34fde8f2c4de2473e86a7" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4b620307928b4a568eb4d25e129098ab" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "89cc23c8ab864b03a7ba270b102c2f64" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "635f8317c1d6444c963b9d6e621b45b9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8b4d5fd97f394e85b35f1134649c9044" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fae75301d0604c23b4ef6f163617fe71" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8d658481c0bd428d923825b962bf650a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cd915c1ec09f44ee91e2a16b09a6c19c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "93ef5e6afe2a4904abe9da2ba2800cf9" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6be37630bd554318b197a39bd0fea586" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "93ef5e6afe2a4904abe9da2ba2800cf9" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8b4d5fd97f394e85b35f1134649c9044" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "93ef5e6afe2a4904abe9da2ba2800cf9" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac3ab05fab7f4417acf0716668bddd09" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "93ef5e6afe2a4904abe9da2ba2800cf9" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "774e8ba7325143118462c7afc3e87cc1" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "988ae0244059443fb9dda70f50db6312" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "231b4bcce88249ea9294317ac9f620d1" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a882f7af25264051b5b499f546b64915" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4b620307928b4a568eb4d25e129098ab" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ac3ab05fab7f4417acf0716668bddd09" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3b81d113f65a4d24908c9d16a710ad0e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ac3ab05fab7f4417acf0716668bddd09" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3bd79ac579f14924ba47ccb26c2c87a2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cd915c1ec09f44ee91e2a16b09a6c19c" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ec0c767a0c464e5dabd19646b4fd5f4f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "da7b86903ac84666b4b6074248e99571" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3b81d113f65a4d24908c9d16a710ad0e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "da7b86903ac84666b4b6074248e99571" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac3ab05fab7f4417acf0716668bddd09" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "da7b86903ac84666b4b6074248e99571" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3bd79ac579f14924ba47ccb26c2c87a2" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "dc204c6c919945d1b7819d9c23a886bf" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ec0c767a0c464e5dabd19646b4fd5f4f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "dc2eb1b1f75a47feaa3feda8e9d9040d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "32870ca110c142788fe415349dc21aec" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "de3a6d6b963d48738af142df22a73644" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6caaa1e5f53a4eb39661d2ff5778253e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "de3a6d6b963d48738af142df22a73644" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6caaa1e5f53a4eb39661d2ff5778253e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "eadf116b84844413a114c6e873c42163" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "da7b86903ac84666b4b6074248e99571" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ec0c767a0c464e5dabd19646b4fd5f4f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7018ccb9cd7c43f6b276c940f54ae10d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fa055be5a7e14850b07652f7cc8b8d85" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7018ccb9cd7c43f6b276c940f54ae10d" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": -0.000022172927856445313, + "y": -89.0000228881836 + }, + "m_Blocks": [ + { + "m_Id": "635f8317c1d6444c963b9d6e621b45b9" + }, + { + "m_Id": "6e737174c3bc48a893525e11d8b94eb6" + }, + { + "m_Id": "063559dd18bb40949fba96df86db5c17" + }, + { + "m_Id": "fae75301d0604c23b4ef6f163617fe71" + }, + { + "m_Id": "15a07e09016b48b6ac5ee7c1dd98e0ad" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0000699758529663086, + "y": 546.0000610351563 + }, + "m_Blocks": [ + { + "m_Id": "231b4bcce88249ea9294317ac9f620d1" + }, + { + "m_Id": "47bbed7a73224a5b99d6ceaf97a519ce" + } + ] + }, + "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": "c548ef7607014e0da7a8e20ba3e418e9" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "03133f631dd546a280a2e45e2f7bda48", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "03907266849b42b2bc08cb8238d8ba18", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0570d92f04d84d9193c0eea07b2185e1", + "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.BlockNode", + "m_ObjectId": "063559dd18bb40949fba96df86db5c17", + "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": "ef119d9737b248aab2997c014c8e18bc" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty", + "m_ObjectId": "06a1642da6224ab392beb361c17698ef", + "m_Guid": { + "m_GuidSerialized": "2ef1f79d-a94e-4b83-9934-d204b05aa160" + }, + "m_Name": "Distance Fade", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Distance Fade", + "m_DefaultReferenceName": "_Distance_Fade", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "x": 0.0, + "y": 4.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "07df6ce8b993481cb0ca91a43d17738e", + "m_Id": 1, + "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": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "081930db40d3417eaa49d6e6df667383" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "08e4638804e84f80ba0a9e858f4b7e27", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1038.9998779296875, + "y": 693.9999389648438, + "width": 140.0, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "732806a8b45c45fcba57904f559837ff" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "698a2b1ba8a8428fb544deed5efb7bed" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "08fc72e49c7b4bdbad46d7f08f244563", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -898.9998779296875, + "y": 654.0, + "width": 119.0, + "height": 148.99993896484376 + } + }, + "m_Slots": [ + { + "m_Id": "fd47a1e538df4c4491b2ce07485bcf00" + }, + { + "m_Id": "4793a3840085431f87e7d7aedb146c10" + }, + { + "m_Id": "6633aa07b7dc443fb155ee8d5e80492b" + }, + { + "m_Id": "9673f765b0f64baf810ab85890c22635" + }, + { + "m_Id": "337b3857d06a42d48c12ebf6e42c78db" + } + ], + "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.PropertyNode", + "m_ObjectId": "0967194e1a8946dabf8c6cffc68465dd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -831.9999389648438, + "y": 484.0, + "width": 92.00006103515625, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "cf782022071141d1b05e603f255fff6b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "7cb23ac8301a422da746e5fe9eb5c1b1" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "09be64f6dd3444c6bf3f6ea8fb1926a6", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "107d10761ab34fe8b467be680cc5863c", + "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.MainLightDirectionNode", + "m_ObjectId": "11a4be5971734730a4d4282b63b495f9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Main Light Direction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2392.0, + "y": -30.999990463256837, + "width": 160.0, + "height": 76.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "d89489a27cba41daa1d5e8b8f4d5b75e" + } + ], + "synonyms": [ + "sun" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "126f3143b1bc49f1b68ab9f1bb44ff91", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -499.9999084472656, + "y": -340.9999694824219, + "width": 127.99984741210938, + "height": 124.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "4b6cc8b4bce541dd8260ec8c409e6d5d" + }, + { + "m_Id": "556cb97d495741429d6740a7b1fd059a" + }, + { + "m_Id": "d97bcd58cd2046eaab87c49fd36cb584" + }, + { + "m_Id": "dae1c9f847e84ab9806b809b1660d4d3" + } + ], + "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.Vector3MaterialSlot", + "m_ObjectId": "145a516e853b44c391e82927d6220de4", + "m_Id": 3, + "m_DisplayName": "World Bounds Max", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "World Bounds Max", + "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": "152d11e27af2422fb52f4b04c4acd970", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "15a07e09016b48b6ac5ee7c1dd98e0ad", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.CustomInterpolator", + "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": "7bc17d73d16a436a87ed74e11ea0c028" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.vertex_distance#1" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "19f9866136354c82b5e07cee1b2b85bc", + "m_Id": 4, + "m_DisplayName": "Bounds Size", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Bounds Size", + "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": "1a00c1d06fa54dc3a33b59b8bcfddd94", + "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.Vector1MaterialSlot", + "m_ObjectId": "1c53a6f9576041b898c24f9677665107", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1d1574040e4a49e7ad93c47497d11eec", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1e1045d764a8476eab66988548c5eda5", + "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": "1ef81f75768844b185e3d06ed2bc014e", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.PositionNode", + "m_ObjectId": "1fff91c018eb48ecb120cf1005e56c39", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2265.0, + "y": -422.0, + "width": 206.0, + "height": 131.0 + } + }, + "m_Slots": [ + { + "m_Id": "d1678b59cd3644aca5cae3a693e0b2a4" + } + ], + "synonyms": [ + "location" + ], + "m_Precision": 1, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 0, + "m_PositionSource": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2049fb7d4fa84ba4873eb22fe4dbd084", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "206b20d6fd024834ae4ad4a932cb1a4e", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "2103e9d9bbc9444da5df4ec271b8bcca", + "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": "2140f56108e143658db451c330631407", + "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": "222a7e496d1f4032820f0308f56c521f", + "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": "23101290a670483e9d2f1155254d01f0", + "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.BlockNode", + "m_ObjectId": "231b4bcce88249ea9294317ac9f620d1", + "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": "597474c07860476ebfc4d50be1b31f22" + } + ], + "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": "293176f8331e4bffbc7675779f8581ec", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "2a8d7a90e1e9416b8371f0ddb09ff467", + "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.UVMaterialSlot", + "m_ObjectId": "2abfa4e42d6342f0b60052359b042c2c", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2cf1981d538343659c1d347bd162b181", + "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.Vector4MaterialSlot", + "m_ObjectId": "2fb0910870954601abf8956172a3231b", + "m_Id": 0, + "m_DisplayName": "RGBA", + "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.Vector3MaterialSlot", + "m_ObjectId": "31c9943b2c0544b692c3e15bcaaaf059", + "m_Id": 0, + "m_DisplayName": "Direction", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Direction", + "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.SmoothstepNode", + "m_ObjectId": "32870ca110c142788fe415349dc21aec", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -683.9998779296875, + "y": 897.0, + "width": 152.0, + "height": 142.0 + } + }, + "m_Slots": [ + { + "m_Id": "ddc409db8a07454d8ac7f1afac19d0d0" + }, + { + "m_Id": "9a3dd703553144138a39f86b45a6d08a" + }, + { + "m_Id": "4302abb13ce9415589bdc2220f67fea5" + }, + { + "m_Id": "23101290a670483e9d2f1155254d01f0" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "337b3857d06a42d48c12ebf6e42c78db", + "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": "3387a5ae2ecd4394a9718e77788707d8", + "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.LengthNode", + "m_ObjectId": "33bf52ca9adf422daf3482fecd7a5ab9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Length", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -283.00006103515627, + "y": 106.00000762939453, + "width": 129.99996948242188, + "height": 93.9999771118164 + } + }, + "m_Slots": [ + { + "m_Id": "936964ae19d44cab819deda3d7ab151a" + }, + { + "m_Id": "07df6ce8b993481cb0ca91a43d17738e" + } + ], + "synonyms": [ + "measure" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "343942e3b432426abf70e7a51e8dac82", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "34672cf12f8643b0aae9a5c5c072107e", + "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.MultiplyNode", + "m_ObjectId": "3b81d113f65a4d24908c9d16a710ad0e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -926.9999389648438, + "y": -477.0, + "width": 125.99993896484375, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "9dd838652ea2440396b1233d12f38896" + }, + { + "m_Id": "7d8db60b68f941529d5c288bb92cbe63" + }, + { + "m_Id": "2a8d7a90e1e9416b8371f0ddb09ff467" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MainLightDirectionNode", + "m_ObjectId": "3b96ef2544094380acb4ba959444e868", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Main Light Direction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1912.0, + "y": -551.0, + "width": 160.0, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "31c9943b2c0544b692c3e15bcaaaf059" + } + ], + "synonyms": [ + "sun" + ], + "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": "3b975bd4b114445a821ca3d0c748ef5a", + "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": "3bd79ac579f14924ba47ccb26c2c87a2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -911.9999389648438, + "y": -88.99999237060547, + "width": 125.99993896484375, + "height": 118.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "70eff7795bce43ad9c30aa43461b5d99" + }, + { + "m_Id": "8a0b6af317214ad481faa84fb4b0b5a7" + }, + { + "m_Id": "6c3f493a2dec4a9f881f202ff72a72bd" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3ec85537b3fd4738a0ccfec17bed66e2", + "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": "3ffa03a0e8c4483d851427a050be73a7", + "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.CustomInterpolatorNode", + "m_ObjectId": "40451a90329b431ea3fbf2041eeadc4c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "vertex_height (Custom Interpolator)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -988.9999389648438, + "y": 802.9999389648438, + "width": 249.00006103515626, + "height": 94.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "5635a14069d243f89923924eeb57e37d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "customBlockNodeName": "vertex_height", + "serializedType": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "41d130bb7be04b51b6e9d5f88d7b0988", + "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.5, + "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": "4210fb3087e6477aba5d9ceb095c9b5c", + "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.CategoryData", + "m_ObjectId": "4297c401299a4f48a401d53ed3a76471", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "44767c635b914cffb5de015238bc5ba0" + }, + { + "m_Id": "7cb23ac8301a422da746e5fe9eb5c1b1" + }, + { + "m_Id": "698a2b1ba8a8428fb544deed5efb7bed" + }, + { + "m_Id": "06a1642da6224ab392beb361c17698ef" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4302abb13ce9415589bdc2220f67fea5", + "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": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "44767c635b914cffb5de015238bc5ba0", + "m_Guid": { + "m_GuidSerialized": "dc9e953e-f36b-4709-a1fa-ab966c4992c9" + }, + "m_Name": "RGBA", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "RGBA", + "m_DefaultReferenceName": "_RGBA", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.12264150381088257, + "g": 0.08966714143753052, + "b": 0.17000000178813935, + "a": 0.8705882430076599 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4587f90fa3e546a7af170342801bb5ac", + "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.Vector1MaterialSlot", + "m_ObjectId": "4793a3840085431f87e7d7aedb146c10", + "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.BlockNode", + "m_ObjectId": "47bbed7a73224a5b99d6ceaf97a519ce", + "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": "03907266849b42b2bc08cb8238d8ba18" + } + ], + "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.MultiplyNode", + "m_ObjectId": "4b620307928b4a568eb4d25e129098ab", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1868.0001220703125, + "y": -308.0, + "width": 130.0, + "height": 118.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "c82a0c69973541bba0c9ff35007a4d3d" + }, + { + "m_Id": "1ef81f75768844b185e3d06ed2bc014e" + }, + { + "m_Id": "61be3fe99ade44e2bb308e3758988ee1" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4b6cc8b4bce541dd8260ec8c409e6d5d", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "4bbffc4e11624a288e79eb0ac78115b2", + "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.Vector3MaterialSlot", + "m_ObjectId": "4c1a316ef25e4155a8c3a298da505835", + "m_Id": 2, + "m_DisplayName": "World Bounds Min", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "World Bounds Min", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "4f3e93664d3245edbc830f67e432c52f", + "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.Vector1MaterialSlot", + "m_ObjectId": "556cb97d495741429d6740a7b1fd059a", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RotateAboutAxisNode", + "m_ObjectId": "5584d94e0a584a6cb51ca717f651f165", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Rotate About Axis", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1703.0001220703125, + "y": -208.0, + "width": 164.0, + "height": 177.00001525878907 + } + }, + "m_Slots": [ + { + "m_Id": "93d148ffbdcf4fee8066cb0927d448f0" + }, + { + "m_Id": "7ef78bdb469843729a1d72fa578c3ba1" + }, + { + "m_Id": "c8262549c7ec455b90766aa93ec1be0c" + }, + { + "m_Id": "a34edc9a1ed7424b889b44d94c8d057a" + } + ], + "synonyms": [ + "pivot" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Unit": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5635a14069d243f89923924eeb57e37d", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "56963330e3364afb9e7aecf8b4f16238", + "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.SmoothstepNode", + "m_ObjectId": "5701a54716694f4eac4b230a796ba55f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Smoothstep", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -683.9998779296875, + "y": 755.0, + "width": 152.0, + "height": 142.0 + } + }, + "m_Slots": [ + { + "m_Id": "4210fb3087e6477aba5d9ceb095c9b5c" + }, + { + "m_Id": "1a00c1d06fa54dc3a33b59b8bcfddd94" + }, + { + "m_Id": "c3b6afc3db784341aaafff967c8d18eb" + }, + { + "m_Id": "4587f90fa3e546a7af170342801bb5ac" + } + ], + "synonyms": [ + "curve" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "597474c07860476ebfc4d50be1b31f22", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.12264150381088257, + "y": 0.12264150381088257, + "z": 0.12264150381088257 + }, + "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": "5d9d71dca554440a80a0257b99b399fd", + "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": "6078eae89be14936b8e6f6c339b5cf6b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1050.9998779296875, + "y": 936.0, + "width": 152.0, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "8bbecf7a6f2744bf9682bb034fba3a63" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "06a1642da6224ab392beb361c17698ef" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "61be3fe99ade44e2bb308e3758988ee1", + "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.BlockNode", + "m_ObjectId": "635f8317c1d6444c963b9d6e621b45b9", + "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": "deab0ef59ea843108483c8287cdc51d0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "6550e55bdb6d4303a85e8424b2b2f19d", + "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": "6633aa07b7dc443fb155ee8d5e80492b", + "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.Vector3Node", + "m_ObjectId": "6671464ed4714f40b292c9ac6fbd4f82", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -280.9999694824219, + "y": -88.99996948242188, + "width": 127.99995422363281, + "height": 125.0 + } + }, + "m_Slots": [ + { + "m_Id": "1e1045d764a8476eab66988548c5eda5" + }, + { + "m_Id": "293176f8331e4bffbc7675779f8581ec" + }, + { + "m_Id": "fc208c38d104410a9788a37c0da8f1d1" + }, + { + "m_Id": "a477296c0aa94287a2c3a73be8f25a58" + } + ], + "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": "68f089d5980c4126a54c0879eb85a2bd", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "690a6dc66aca4212bc040ed3150c57d2", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty", + "m_ObjectId": "698a2b1ba8a8428fb544deed5efb7bed", + "m_Guid": { + "m_GuidSerialized": "c84e1ea9-2d1c-42c6-8e81-5c059f835638" + }, + "m_Name": "Height Fade", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Height Fade", + "m_DefaultReferenceName": "_Height_Fade", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "x": 0.0, + "y": 1.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6b03e2bc952e45b6a292eccedde41306", + "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.SubtractNode", + "m_ObjectId": "6be37630bd554318b197a39bd0fea586", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -771.9999389648438, + "y": -594.9999389648438, + "width": 125.99993896484375, + "height": 117.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "4bbffc4e11624a288e79eb0ac78115b2" + }, + { + "m_Id": "5d9d71dca554440a80a0257b99b399fd" + }, + { + "m_Id": "a57439c7942a41d8951806c2776f1f23" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "6c3f493a2dec4a9f881f202ff72a72bd", + "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.Arctangent2Node", + "m_ObjectId": "6caaa1e5f53a4eb39661d2ff5778253e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Arctangent2", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1868.0001220703125, + "y": -30.999990463256837, + "width": 126.0, + "height": 117.99999237060547 + } + }, + "m_Slots": [ + { + "m_Id": "3387a5ae2ecd4394a9718e77788707d8" + }, + { + "m_Id": "3ec85537b3fd4738a0ccfec17bed66e2" + }, + { + "m_Id": "2140f56108e143658db451c330631407" + } + ], + "synonyms": [ + "atan2" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6e737174c3bc48a893525e11d8b94eb6", + "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": "9121028c3d77477eaaf73fb4f086e2fa" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "7018ccb9cd7c43f6b276c940f54ae10d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -278.99993896484377, + "y": 617.0000610351563, + "width": 125.99996948242188, + "height": 117.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "ab8c7d1484cd4cf9aa910f3d488d1e7d" + }, + { + "m_Id": "a69a76e73b494bf3b1bca50d498496c5" + }, + { + "m_Id": "0570d92f04d84d9193c0eea07b2185e1" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "706caaf0b3a440209490ab69c353e429", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -898.9998779296875, + "y": 897.0, + "width": 119.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "b976f460ac0242f78d0171f4fe7e75ff" + }, + { + "m_Id": "f80adc2698b7478fad4139d81285a5a6" + }, + { + "m_Id": "1d1574040e4a49e7ad93c47497d11eec" + }, + { + "m_Id": "c0363121e5474735a56c33ad4702ccdd" + }, + { + "m_Id": "206b20d6fd024834ae4ad4a932cb1a4e" + } + ], + "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.DynamicValueMaterialSlot", + "m_ObjectId": "70eff7795bce43ad9c30aa43461b5d99", + "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": "727dad8b3fa247d49b9f590b07a255b3", + "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.Vector2MaterialSlot", + "m_ObjectId": "732806a8b45c45fcba57904f559837ff", + "m_Id": 0, + "m_DisplayName": "Height Fade", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "774e8ba7325143118462c7afc3e87cc1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -708.9999389648438, + "y": -176.9999542236328, + "width": 125.99993896484375, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "222a7e496d1f4032820f0308f56c521f" + }, + { + "m_Id": "3b975bd4b114445a821ca3d0c748ef5a" + }, + { + "m_Id": "af2faf7c59864ad8a269ee465ad5822f" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "7b6e337606d54e9597591e4b424b4914", + "m_Id": 0, + "m_DisplayName": "RGBA", + "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": "7bc17d73d16a436a87ed74e11ea0c028", + "m_Id": 0, + "m_DisplayName": "vertex_distance", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "vertex_distance", + "m_StageCapability": 1, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "7cb23ac8301a422da746e5fe9eb5c1b1", + "m_Guid": { + "m_GuidSerialized": "9c26ec55-04ee-430b-9b2e-bba1efdd39f9" + }, + "m_Name": "MainTexture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MainTexture", + "m_DefaultReferenceName": "_MainTexture", + "m_OverrideReferenceName": "_MainTex", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":10904,\"guid\":\"0000000000000000f000000000000000\",\"type\":0}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7d8db60b68f941529d5c288bb92cbe63", + "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.Vector3MaterialSlot", + "m_ObjectId": "7ef78bdb469843729a1d72fa578c3ba1", + "m_Id": 1, + "m_DisplayName": "Axis", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Axis", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 1.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.ShaderGraph.TransformNode", + "m_ObjectId": "80251d531bf344599ec274728d20f6b6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Transform", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2232.0, + "y": -30.999990463256837, + "width": 212.9998779296875, + "height": 157.00001525878907 + } + }, + "m_Slots": [ + { + "m_Id": "c5df9463a1ed4e4d9632e7794570f86a" + }, + { + "m_Id": "dc5d5b08ea9a475fb2691214022b059c" + } + ], + "synonyms": [ + "world", + "tangent", + "object", + "view", + "screen", + "convert" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Conversion": { + "from": 2, + "to": 0 + }, + "m_ConversionType": 1, + "m_Normalize": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "82b706119fd34fde8f2c4de2473e86a7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2029.0, + "y": -349.9999694824219, + "width": 129.9998779296875, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "a679955e0c3c44bfa81519483509b132" + }, + { + "m_Id": "41d130bb7be04b51b6e9d5f88d7b0988" + }, + { + "m_Id": "cab128fd5b52461d9e6549ce059881a7" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "82daa76b91164106b7793e82749b8114", + "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.AddNode", + "m_ObjectId": "89cc23c8ab864b03a7ba270b102c2f64", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -168.99998474121095, + "y": -341.0, + "width": 129.99998474121095, + "height": 118.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "cde2d80324fa49c6b483d27ba952acb7" + }, + { + "m_Id": "925edb5076a14fd8b9365cfe244a9f73" + }, + { + "m_Id": "727dad8b3fa247d49b9f590b07a255b3" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8a0b6af317214ad481faa84fb4b0b5a7", + "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.RedirectNodeData", + "m_ObjectId": "8b4d5fd97f394e85b35f1134649c9044", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1333.0001220703125, + "y": 82.0, + "width": 56.0, + "height": 24.00000762939453 + } + }, + "m_Slots": [ + { + "m_Id": "3ffa03a0e8c4483d851427a050be73a7" + }, + { + "m_Id": "ce549c482c5147ffba45da5a80c0d986" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "8bbecf7a6f2744bf9682bb034fba3a63", + "m_Id": 0, + "m_DisplayName": "Distance Fade", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "8d658481c0bd428d923825b962bf650a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -768.9999389648438, + "y": 407.0, + "width": 107.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "7b6e337606d54e9597591e4b424b4914" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "44767c635b914cffb5de015238bc5ba0" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "8db7c1679cdb467d814b7535cfaad5fa", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8e80a9faf28e4901b74d79c931310178", + "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": "8f551b14bb4f4d85b6ff2a33d041c266", + "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.Vector3MaterialSlot", + "m_ObjectId": "8fca12b882be4d63aea78ee361536ca3", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "9121028c3d77477eaaf73fb4f086e2fa", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "925edb5076a14fd8b9365cfe244a9f73", + "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.05000000074505806, + "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": "936964ae19d44cab819deda3d7ab151a", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "93d148ffbdcf4fee8066cb0927d448f0", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "93ef5e6afe2a4904abe9da2ba2800cf9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1539.0, + "y": -207.99998474121095, + "width": 120.0, + "height": 149.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "6550e55bdb6d4303a85e8424b2b2f19d" + }, + { + "m_Id": "1c53a6f9576041b898c24f9677665107" + }, + { + "m_Id": "6b03e2bc952e45b6a292eccedde41306" + }, + { + "m_Id": "f16564a26cbd4c95a4508fbddac9f38d" + }, + { + "m_Id": "d22d746e42ef4964834c7803d0ab8508" + } + ], + "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.Vector3MaterialSlot", + "m_ObjectId": "9457f3ee407d4b02a9450f5f8e3a9146", + "m_Id": 1, + "m_DisplayName": "Scale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Scale", + "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": "9673f765b0f64baf810ab85890c22635", + "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.Vector4MaterialSlot", + "m_ObjectId": "973c14b80626491fa195d44c37f0c7f2", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "988ae0244059443fb9dda70f50db6312", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -261.0000305175781, + "y": 545.0, + "width": 107.00003051757813, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "2fb0910870954601abf8956172a3231b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "44767c635b914cffb5de015238bc5ba0" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9a3dd703553144138a39f86b45a6d08a", + "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", + "m_ObjectId": "9b3ff88d33ff4bef9568206a043ac520", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "9dd838652ea2440396b1233d12f38896", + "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": "a34edc9a1ed7424b889b44d94c8d057a", + "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 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "a477296c0aa94287a2c3a73be8f25a58", + "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": "a57439c7942a41d8951806c2776f1f23", + "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": "a679955e0c3c44bfa81519483509b132", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "a69a76e73b494bf3b1bca50d498496c5", + "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.Vector1MaterialSlot", + "m_ObjectId": "a7981451cb844dad8d73cf04dd60f368", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ObjectNode", + "m_ObjectId": "a882f7af25264051b5b499f546b64915", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Object", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2052.0, + "y": -231.99996948242188, + "width": 152.9998779296875, + "height": 172.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "ff3df549150e40b4962bd822dd870981" + }, + { + "m_Id": "9457f3ee407d4b02a9450f5f8e3a9146" + }, + { + "m_Id": "4c1a316ef25e4155a8c3a298da505835" + }, + { + "m_Id": "145a516e853b44c391e82927d6220de4" + }, + { + "m_Id": "19f9866136354c82b5e07cee1b2b85bc" + } + ], + "synonyms": [ + "position", + "scale", + "bounds", + "size" + ], + "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": "ab8c7d1484cd4cf9aa910f3d488d1e7d", + "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.DivideNode", + "m_ObjectId": "ac3ab05fab7f4417acf0716668bddd09", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1105.0, + "y": -308.0, + "width": 126.00006103515625, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "9b3ff88d33ff4bef9568206a043ac520" + }, + { + "m_Id": "8f551b14bb4f4d85b6ff2a33d041c266" + }, + { + "m_Id": "82daa76b91164106b7793e82749b8114" + } + ], + "synonyms": [ + "division", + "divided by" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "af2faf7c59864ad8a269ee465ad5822f", + "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": "af68bbc7140b48f29330fb4d4a49d4c4", + "m_Id": 0, + "m_DisplayName": "vertex_height", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "vertex_height", + "m_StageCapability": 1, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "b0c07c03843c49668a71f8f35370a73e", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b5be68655c19450888a343121bf2a63c", + "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": "b976f460ac0242f78d0171f4fe7e75ff", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "bdd1b461be0745aa8c4478e2ec5456a5", + "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.Vector1MaterialSlot", + "m_ObjectId": "c0363121e5474735a56c33ad4702ccdd", + "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": "c0acd404571649efb6ddbe0fac6d74c0", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c3b6afc3db784341aaafff967c8d18eb", + "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.Vector1MaterialSlot", + "m_ObjectId": "c50430366ecd4204b832b437159d19ad", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "c548ef7607014e0da7a8e20ba3e418e9", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "081930db40d3417eaa49d6e6df667383" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 2, + "m_AlphaMode": 3, + "m_RenderFace": 0, + "m_AlphaClip": false, + "m_CastShadows": false, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "c5df9463a1ed4e4d9632e7794570f86a", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c8262549c7ec455b90766aa93ec1be0c", + "m_Id": 2, + "m_DisplayName": "Rotation", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Rotation", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "c82a0c69973541bba0c9ff35007a4d3d", + "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": "cab128fd5b52461d9e6549ce059881a7", + "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.SplitNode", + "m_ObjectId": "cd915c1ec09f44ee91e2a16b09a6c19c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -619.9998779296875, + "y": 407.0, + "width": 119.0, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "56963330e3364afb9e7aecf8b4f16238" + }, + { + "m_Id": "690a6dc66aca4212bc040ed3150c57d2" + }, + { + "m_Id": "343942e3b432426abf70e7a51e8dac82" + }, + { + "m_Id": "fbc398a4bf6742eb8a32dd6fac189cfd" + }, + { + "m_Id": "2cf1981d538343659c1d347bd162b181" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cde2d80324fa49c6b483d27ba952acb7", + "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": "ce549c482c5147ffba45da5a80c0d986", + "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.Texture2DMaterialSlot", + "m_ObjectId": "cf782022071141d1b05e603f255fff6b", + "m_Id": 0, + "m_DisplayName": "MainTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d033920ae64e4bd7a95f857fa96520f0", + "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.Vector3MaterialSlot", + "m_ObjectId": "d1678b59cd3644aca5cae3a693e0b2a4", + "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.Vector1MaterialSlot", + "m_ObjectId": "d22d746e42ef4964834c7803d0ab8508", + "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.Vector3MaterialSlot", + "m_ObjectId": "d89489a27cba41daa1d5e8b8f4d5b75e", + "m_Id": 0, + "m_DisplayName": "Direction", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Direction", + "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": "d97bcd58cd2046eaab87c49fd36cb584", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "da7b86903ac84666b4b6074248e99571", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1538.9998779296875, + "y": -551.0, + "width": 119.9998779296875, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "8e80a9faf28e4901b74d79c931310178" + }, + { + "m_Id": "68f089d5980c4126a54c0879eb85a2bd" + }, + { + "m_Id": "d033920ae64e4bd7a95f857fa96520f0" + }, + { + "m_Id": "34672cf12f8643b0aae9a5c5c072107e" + }, + { + "m_Id": "107d10761ab34fe8b467be680cc5863c" + } + ], + "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.Vector3MaterialSlot", + "m_ObjectId": "dae1c9f847e84ab9806b809b1660d4d3", + "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.Vector1MaterialSlot", + "m_ObjectId": "dae31d7a6a46414bbf115484e622af8b", + "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.SampleTexture2DNode", + "m_ObjectId": "dc204c6c919945d1b7819d9c23a886bf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -683.9998779296875, + "y": 484.0, + "width": 183.0, + "height": 251.0 + } + }, + "m_Slots": [ + { + "m_Id": "973c14b80626491fa195d44c37f0c7f2" + }, + { + "m_Id": "152d11e27af2422fb52f4b04c4acd970" + }, + { + "m_Id": "c50430366ecd4204b832b437159d19ad" + }, + { + "m_Id": "a7981451cb844dad8d73cf04dd60f368" + }, + { + "m_Id": "e63af71c434b40c1b79f0ed9358a798c" + }, + { + "m_Id": "03133f631dd546a280a2e45e2f7bda48" + }, + { + "m_Id": "2abfa4e42d6342f0b60052359b042c2c" + }, + { + "m_Id": "b0c07c03843c49668a71f8f35370a73e" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CustomInterpolatorNode", + "m_ObjectId": "dc2eb1b1f75a47feaa3feda8e9d9040d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "vertex_distance (Custom Interpolator)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1000.9998779296875, + "y": 1046.0, + "width": 261.0, + "height": 94.0 + } + }, + "m_Slots": [ + { + "m_Id": "2049fb7d4fa84ba4873eb22fe4dbd084" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "customBlockNodeName": "vertex_distance", + "serializedType": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "dc5d5b08ea9a475fb2691214022b059c", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ddc409db8a07454d8ac7f1afac19d0d0", + "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.SplitNode", + "m_ObjectId": "de3a6d6b963d48738af142df22a73644", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2019.0001220703125, + "y": -30.999990463256837, + "width": 120.0, + "height": 149.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "fb714ff94bcc40b1b756ba5c71d09269" + }, + { + "m_Id": "09be64f6dd3444c6bf3f6ea8fb1926a6" + }, + { + "m_Id": "b5be68655c19450888a343121bf2a63c" + }, + { + "m_Id": "c0acd404571649efb6ddbe0fac6d74c0" + }, + { + "m_Id": "dae31d7a6a46414bbf115484e622af8b" + } + ], + "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.PositionMaterialSlot", + "m_ObjectId": "deab0ef59ea843108483c8287cdc51d0", + "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.Vector1MaterialSlot", + "m_ObjectId": "e63af71c434b40c1b79f0ed9358a798c", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.ShaderGraph.TransformNode", + "m_ObjectId": "eadf116b84844413a114c6e873c42163", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Transform", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1752.0, + "y": -551.0, + "width": 213.0001220703125, + "height": 157.0 + } + }, + "m_Slots": [ + { + "m_Id": "8db7c1679cdb467d814b7535cfaad5fa" + }, + { + "m_Id": "8fca12b882be4d63aea78ee361536ca3" + } + ], + "synonyms": [ + "world", + "tangent", + "object", + "view", + "screen", + "convert" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Conversion": { + "from": 2, + "to": 0 + }, + "m_ConversionType": 1, + "m_Normalize": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "ec0c767a0c464e5dabd19646b4fd5f4f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -459.9999694824219, + "y": 459.0, + "width": 126.00006103515625, + "height": 117.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "fe77eea938e4408f9976d69764875ac7" + }, + { + "m_Id": "4f3e93664d3245edbc830f67e432c52f" + }, + { + "m_Id": "2103e9d9bbc9444da5df4ec271b8bcca" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "ef119d9737b248aab2997c014c8e18bc", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f16564a26cbd4c95a4508fbddac9f38d", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "f476708b5ca346cdb5a7b0b8fbe84ed4", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "f8077e1b873c41afb7a7f232a7ea2790", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f80adc2698b7478fad4139d81285a5a6", + "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.MultiplyNode", + "m_ObjectId": "fa055be5a7e14850b07652f7cc8b8d85", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -459.9999694824219, + "y": 812.9999389648438, + "width": 126.00006103515625, + "height": 118.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "f476708b5ca346cdb5a7b0b8fbe84ed4" + }, + { + "m_Id": "bdd1b461be0745aa8c4478e2ec5456a5" + }, + { + "m_Id": "f8077e1b873c41afb7a7f232a7ea2790" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "fae75301d0604c23b4ef6f163617fe71", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.CustomInterpolator", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 33.99996566772461, + "y": 71.00003051757813, + "width": 200.00001525878907, + "height": 40.99999237060547 + } + }, + "m_Slots": [ + { + "m_Id": "af68bbc7140b48f29330fb4d4a49d4c4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.vertex_height#1" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "fb714ff94bcc40b1b756ba5c71d09269", + "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": "fbc398a4bf6742eb8a32dd6fac189cfd", + "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": "fc208c38d104410a9788a37c0da8f1d1", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "fd47a1e538df4c4491b2ce07485bcf00", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "fe77eea938e4408f9976d69764875ac7", + "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": "ff3df549150e40b4962bd822dd870981", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "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": [] +} + diff --git a/Src/Unity/Shader/ShaderGraph/billboard-shadow.shadergraph.meta b/Src/Unity/Shader/ShaderGraph/billboard-shadow.shadergraph.meta new file mode 100644 index 0000000..2d6012d --- /dev/null +++ b/Src/Unity/Shader/ShaderGraph/billboard-shadow.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: ff3d183ed9fe89044b0695522de0cf66 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Src/UnityEditor/SceneGizmoReference.cs b/Src/UnityEditor/SceneGizmoReference.cs index c78fb3c..1c3a556 100644 --- a/Src/UnityEditor/SceneGizmoReference.cs +++ b/Src/UnityEditor/SceneGizmoReference.cs @@ -20,12 +20,11 @@ namespace BITKit.Scene if (draw is false || AllowGizmos is false) return; var position = transform.position; Gizmos.color = color; - Gizmos.DrawWireSphere(position, size); if (bounds.Allow) { var rotation = transform.rotation; - Gizmos.DrawWireCube(position+rotation*bounds.Value/2, rotation*bounds.Value); + Gizmos.DrawCube(position, rotation*bounds.Value); } } } diff --git a/Src/UnityEditor/ScriptableObjectGroupEditor.cs b/Src/UnityEditor/ScriptableObjectGroupEditor.cs index 4a37b7a..9094f57 100644 --- a/Src/UnityEditor/ScriptableObjectGroupEditor.cs +++ b/Src/UnityEditor/ScriptableObjectGroupEditor.cs @@ -22,6 +22,7 @@ namespace BITKit.GameEditor protected ListView listView { get; private set; } protected VisualElement container { get; private set; } protected VisualElement _actionContainer { get; private set; } + protected TextField _newNameField { get; private set; } private Button _createButton; protected virtual void OnEnable() @@ -94,11 +95,37 @@ namespace BITKit.GameEditor { var newNameContainer = scroll.Create(); newNameContainer.style.flexDirection = FlexDirection.Row; - var newNameField = newNameContainer.Create(); + var newNameField =_newNameField = newNameContainer.Create(); newNameField.style.flexGrow = 1; var confirmButton = newNameContainer.Create