Commit 2ad9dfc0 authored by SherryChaos's avatar SherryChaos

ShaderReplacer for dumped shaders

parent c6c7d9da
...@@ -8,7 +8,7 @@ Material: ...@@ -8,7 +8,7 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: NormalStyle3D m_Name: NormalStyle3D
m_Shader: {fileID: 4800000, guid: 281fc2ad740f3c044a444ff08a10d55b, type: 3} m_Shader: {fileID: 0}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: [] m_ValidKeywords: []
...@@ -16,7 +16,7 @@ Material: ...@@ -16,7 +16,7 @@ Material:
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap: {}
disabledShaderPasses: disabledShaderPasses:
- MOTIONVECTORS - MOTIONVECTORS
......
...@@ -8,7 +8,7 @@ Material: ...@@ -8,7 +8,7 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: RoyalStyle3D m_Name: RoyalStyle3D
m_Shader: {fileID: 4800000, guid: 27b79ee02cb2507438f330137782cf42, type: 3} m_Shader: {fileID: 0}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: [] m_ValidKeywords: []
...@@ -16,7 +16,7 @@ Material: ...@@ -16,7 +16,7 @@ Material:
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap: {}
disabledShaderPasses: disabledShaderPasses:
- MOTIONVECTORS - MOTIONVECTORS
......
...@@ -69,7 +69,7 @@ Material: ...@@ -69,7 +69,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: fbfdb4ac60fa02f4b9b2947b30e5dbb8, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MonsterNameTex: - _MonsterNameTex:
......
...@@ -8,7 +8,7 @@ Material: ...@@ -8,7 +8,7 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: ShineStyle3D m_Name: ShineStyle3D
m_Shader: {fileID: 4800000, guid: 140edad17441bd44c82ff6c61534cb45, type: 3} m_Shader: {fileID: 0}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: [] m_ValidKeywords: []
...@@ -16,7 +16,7 @@ Material: ...@@ -16,7 +16,7 @@ Material:
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap: {}
disabledShaderPasses: disabledShaderPasses:
- MOTIONVECTORS - MOTIONVECTORS
......
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UIBlur00
m_Shader: {fileID: 4800000, guid: fc3613d4d9d46604d8db311c951af12a, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords:
- ETC1_EXTERNAL_ALPHA
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 2800000, guid: 7b9b634379d3ea84f94fbebfaf600ded, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Effect: 10
- _QueueControl: 0
- _QueueOffset: 0
- _ReverseHolizontal: 0
- _ReverseVertical: 0
m_Colors:
- _BlendColor: {r: 1, g: 1, b: 1, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 0
fileFormatVersion: 2
guid: cc557a6b7b6b0a8438a1075a1d7ad04b
timeCreated: 1755118473
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
...@@ -364,6 +364,7 @@ Transform: ...@@ -364,6 +364,7 @@ Transform:
m_Children: m_Children:
- {fileID: 4601649044695865} - {fileID: 4601649044695865}
- {fileID: 4368623022245937} - {fileID: 4368623022245937}
- {fileID: 4929054916520820535}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: -0, z: -0} m_LocalEulerAnglesHint: {x: 0, y: -0, z: -0}
--- !u!114 &114296520819236874 --- !u!114 &114296520819236874
...@@ -410,7 +411,7 @@ PlayableDirector: ...@@ -410,7 +411,7 @@ PlayableDirector:
serializedVersion: 3 serializedVersion: 3
m_PlayableAsset: {fileID: 11400000, guid: 08cc1a2b04c49294d8903e75968aba0d, type: 2} m_PlayableAsset: {fileID: 11400000, guid: 08cc1a2b04c49294d8903e75968aba0d, type: 2}
m_InitialState: 1 m_InitialState: 1
m_WrapMode: 0 m_WrapMode: 2
m_DirectorUpdateMode: 1 m_DirectorUpdateMode: 1
m_InitialTime: 0 m_InitialTime: 0
m_SceneBindings: m_SceneBindings:
...@@ -456,6 +457,10 @@ PlayableDirector: ...@@ -456,6 +457,10 @@ PlayableDirector:
value: {fileID: 95245983747686734} value: {fileID: 95245983747686734}
- key: {fileID: 554891528586394973, guid: 08cc1a2b04c49294d8903e75968aba0d, type: 2} - key: {fileID: 554891528586394973, guid: 08cc1a2b04c49294d8903e75968aba0d, type: 2}
value: {fileID: 95038109551309262} value: {fileID: 95038109551309262}
- key: {fileID: -7380041521569946435, guid: 08cc1a2b04c49294d8903e75968aba0d, type: 2}
value: {fileID: 4235752624949825275}
- key: {fileID: 6601477132980675946, guid: 08cc1a2b04c49294d8903e75968aba0d, type: 2}
value: {fileID: 6442137507693054750}
m_ExposedReferences: m_ExposedReferences:
m_References: [] m_References: []
--- !u!1 &1202426485949053 --- !u!1 &1202426485949053
...@@ -1203,3 +1208,148 @@ Animator: ...@@ -1203,3 +1208,148 @@ Animator:
m_AllowConstantClipSamplingOptimization: 1 m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0 m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0 m_WriteDefaultValuesOnDisable: 0
--- !u!1 &6442137507693054750
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4929054916520820535}
- component: {fileID: 3464442992129809068}
- component: {fileID: 4235752624949825275}
- component: {fileID: 1725172047529892606}
- component: {fileID: 1830691950934191022}
m_Layer: 0
m_Name: Blur
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!4 &4929054916520820535
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6442137507693054750}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4681880195466358}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &3464442992129809068
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6442137507693054750}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: cc557a6b7b6b0a8438a1075a1d7ad04b, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: -3
m_Sprite: {fileID: 21300000, guid: 7b9b634379d3ea84f94fbebfaf600ded, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 9.6, y: 5.4}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!95 &4235752624949825275
Animator:
serializedVersion: 7
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6442137507693054750}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 0}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_AnimatePhysics: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!114 &1725172047529892606
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6442137507693054750}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3fb71daa6b393da0efd2dad20def340b, type: 3}
m_Name:
m_EditorClassIdentifier:
applyOnUpdate: 0
fitMode: 5
offsetScale: {x: 0, y: 0, z: 0}
_useDirectSizeSetting: 0
_directSizeSetting: {x: 0, y: 0}
_changePosition: 1
_isUseFixedDepth: 0
_fixedDepth: 10
--- !u!114 &1830691950934191022
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6442137507693054750}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4fb6cc0895c2d824a85ac559d3bbdb53, type: 3}
m_Name:
m_EditorClassIdentifier:
shaderName: Shader Graphs_UIBlur_box_with_t
...@@ -960,7 +960,7 @@ PlayableDirector: ...@@ -960,7 +960,7 @@ PlayableDirector:
serializedVersion: 3 serializedVersion: 3
m_PlayableAsset: {fileID: 11400000, guid: b98c2d152c296bb46b6f12c317157247, type: 2} m_PlayableAsset: {fileID: 11400000, guid: b98c2d152c296bb46b6f12c317157247, type: 2}
m_InitialState: 1 m_InitialState: 1
m_WrapMode: 0 m_WrapMode: 2
m_DirectorUpdateMode: 1 m_DirectorUpdateMode: 1
m_InitialTime: 0 m_InitialTime: 0
m_SceneBindings: m_SceneBindings:
......
...@@ -21222,7 +21222,7 @@ MonoBehaviour: ...@@ -21222,7 +21222,7 @@ MonoBehaviour:
m_faceColor: m_faceColor:
serializedVersion: 2 serializedVersion: 2
rgba: 4294967295 rgba: 4294967295
m_fontSize: 28.35 m_fontSize: 26.2
m_fontSizeBase: 30 m_fontSizeBase: 30
m_fontWeight: 400 m_fontWeight: 400
m_enableAutoSizing: 1 m_enableAutoSizing: 1
...@@ -86079,7 +86079,7 @@ RectTransform: ...@@ -86079,7 +86079,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_SizeDelta: {x: 0, y: 500} m_SizeDelta: {x: 0, y: 500}
m_Pivot: {x: 0.5, y: 1} m_Pivot: {x: 0.5, y: 1}
--- !u!114 &8957022839683353519 --- !u!114 &8957022839683353519
...@@ -89355,8 +89355,8 @@ MonoBehaviour: ...@@ -89355,8 +89355,8 @@ MonoBehaviour:
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_Sprite: {fileID: 21300000, guid: 9fef19921dba8c546945c682f316bf9f, type: 3} m_Sprite: {fileID: 21300000, guid: 90c6e35ef4304f289c279037152a03b7, type: 3}
m_Type: 1 m_Type: 0
m_PreserveAspect: 0 m_PreserveAspect: 0
m_FillCenter: 1 m_FillCenter: 1
m_FillMethod: 4 m_FillMethod: 4
...@@ -6350,7 +6350,7 @@ RectTransform: ...@@ -6350,7 +6350,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 60, y: 59.999878} m_AnchoredPosition: {x: 60, y: 59.99994}
m_SizeDelta: {x: 60, y: 60} m_SizeDelta: {x: 60, y: 60}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1484763997 --- !u!114 &1484763997
......
...@@ -53,7 +53,6 @@ namespace MDPro3 ...@@ -53,7 +53,6 @@ namespace MDPro3
while(!matLoad.IsCompleted) while(!matLoad.IsCompleted)
yield return null; yield return null;
var mat = matLoad.Result; var mat = matLoad.Result;
mat.renderQueue = 3000;
var task = CardImageLoader.LoadCardAsync(code, false); var task = CardImageLoader.LoadCardAsync(code, false);
while(!task.IsCompleted) while(!task.IsCompleted)
......
...@@ -287,13 +287,13 @@ namespace MDPro3 ...@@ -287,13 +287,13 @@ namespace MDPro3
yield return matetial; yield return matetial;
} }
public static IEnumerator<Shader> LoadShaderAsync(string name) public static IEnumerator<Shader> LoadShaderAsync(string path)
{ {
var abr = AssetBundle.LoadFromFileAsync(Path.Combine(Program.root, "MasterDuel/Shader/" + name)); var abr = AssetBundle.LoadFromFileAsync(Path.Combine(Program.root, path));
while (!abr.isDone) while (!abr.isDone)
yield return null; yield return null;
var ab = abr.assetBundle; var ab = abr.assetBundle;
var shader = ab.LoadAsset<Shader>(name); var shader = ab.LoadAsset<Shader>(Path.GetFileNameWithoutExtension(path));
ab.Unload(false); ab.Unload(false);
yield return shader; yield return shader;
} }
......
using System.Collections;
using UnityEngine;
namespace MDPro3
{
[RequireComponent(typeof(Renderer))]
public class ShaderReplacer : MonoBehaviour
{
[SerializeField] private string shaderName;
private bool replaced;
private Renderer _renderer;
private Coroutine coroutine;
private void OnEnable()
{
ReplaceShader();
}
private void OnDisable()
{
if(coroutine != null)
StopCoroutine(coroutine);
coroutine = null;
}
private void ReplaceShader()
{
if(_renderer == null)
_renderer = GetComponent<Renderer>();
if(_renderer == null || string.IsNullOrEmpty(shaderName) || replaced)
return;
coroutine = StartCoroutine(ReplaceShaderAsync());
}
private IEnumerator ReplaceShaderAsync()
{
_renderer.enabled = false;
var load = MaterialLoader.LoadShaderByNameAsync(shaderName);
while (load.MoveNext())
yield return null;
_renderer.material.shader = load.Current;
_renderer.enabled = true;
replaced = true;
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 4fb6cc0895c2d824a85ac559d3bbdb53
\ No newline at end of file
...@@ -123,7 +123,7 @@ namespace MDPro3 ...@@ -123,7 +123,7 @@ namespace MDPro3
if (renderer == null) if (renderer == null)
yield break; yield break;
var matLoad = MaterialLoader.LoadCardMaterialAsync(code); var matLoad = MaterialLoader.LoadCardMaterialAsync(code, true);
while (!matLoad.IsCompleted) while (!matLoad.IsCompleted)
yield return null; yield return null;
var mat = matLoad.Result; var mat = matLoad.Result;
...@@ -142,7 +142,7 @@ namespace MDPro3 ...@@ -142,7 +142,7 @@ namespace MDPro3
while (!task.IsCompleted) while (!task.IsCompleted)
yield return null; yield return null;
var matLoad = MaterialLoader.LoadCardMaterialAsync(code); var matLoad = MaterialLoader.LoadCardMaterialAsync(code, true);
while (!matLoad.IsCompleted) while (!matLoad.IsCompleted)
yield return null; yield return null;
var mat = matLoad.Result; var mat = matLoad.Result;
......
...@@ -617,7 +617,7 @@ namespace MDPro3 ...@@ -617,7 +617,7 @@ namespace MDPro3
if (!post) if (!post)
{ {
var matLoad = MaterialLoader.LoadCardMaterialAsync(code); var matLoad = MaterialLoader.LoadCardMaterialAsync(code, true);
while (!matLoad.IsCompleted) while (!matLoad.IsCompleted)
yield return null; yield return null;
face.material = matLoad.Result; face.material = matLoad.Result;
......
...@@ -1694,6 +1694,8 @@ namespace MDPro3.Servant ...@@ -1694,6 +1694,8 @@ namespace MDPro3.Servant
} }
} }
#endregion #endregion
#region PracticalizeTools #region PracticalizeTools
...@@ -2492,10 +2494,11 @@ namespace MDPro3.Servant ...@@ -2492,10 +2494,11 @@ namespace MDPro3.Servant
mono.action = () => mono.action = () =>
{ {
PrintDuelLog(endingReason); PrintDuelLog(endingReason);
Destroy(duelText);
if (condition != Condition.Replay) if (condition != Condition.Replay)
{ {
GetUI<OcgCoreUI>().ShowSaveReplay(); GetUI<OcgCoreUI>().ShowSaveReplay();
Destroy(mono.gameObject);
} }
}; };
if (result == DuelResult.Win) if (result == DuelResult.Win)
...@@ -7303,7 +7306,7 @@ namespace MDPro3.Servant ...@@ -7303,7 +7306,7 @@ namespace MDPro3.Servant
{ {
var code = topCard.GetData().Id; var code = topCard.GetData().Id;
var matLoad = MaterialLoader.LoadCardMaterialAsync(code); var matLoad = MaterialLoader.LoadCardMaterialAsync(code, true);
while (!matLoad.IsCompleted) while (!matLoad.IsCompleted)
yield return null; yield return null;
targetMat = matLoad.Result; targetMat = matLoad.Result;
......
using UnityEngine;
public class ShaderImporter : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
fileFormatVersion: 2
guid: 902d44e2384b7aa4caba0ac6313c610b
\ No newline at end of file
...@@ -6,5 +6,5 @@ ShaderImporter: ...@@ -6,5 +6,5 @@ ShaderImporter:
nonModifiableTextures: nonModifiableTextures:
- _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: f3d3a6083e3b7b747ad9732db0af0a6c, type: 3} - _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: f3d3a6083e3b7b747ad9732db0af0a6c, type: 3}
userData: userData:
assetBundleName: shader graphs_normalstyle3d assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -6,5 +6,5 @@ ShaderImporter: ...@@ -6,5 +6,5 @@ ShaderImporter:
nonModifiableTextures: nonModifiableTextures:
- _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3} - _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3}
userData: userData:
assetBundleName: shader graphs_normalstyleui assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -6,5 +6,5 @@ ShaderImporter: ...@@ -6,5 +6,5 @@ ShaderImporter:
nonModifiableTextures: nonModifiableTextures:
- _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3} - _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3}
userData: userData:
assetBundleName: shader graphs_royalstyle3d assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -6,5 +6,5 @@ ShaderImporter: ...@@ -6,5 +6,5 @@ ShaderImporter:
nonModifiableTextures: nonModifiableTextures:
- _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3} - _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3}
userData: userData:
assetBundleName: shader graphs_royalstyleui assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -6,5 +6,5 @@ ShaderImporter: ...@@ -6,5 +6,5 @@ ShaderImporter:
nonModifiableTextures: nonModifiableTextures:
- _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3} - _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3}
userData: userData:
assetBundleName: shader graphs_shinestyle3d assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -6,5 +6,5 @@ ShaderImporter: ...@@ -6,5 +6,5 @@ ShaderImporter:
nonModifiableTextures: nonModifiableTextures:
- _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3} - _Texture2DAsset_90c6e35ef4304f289c279037152a03b7_Out_0_Texture2D: {fileID: 2800000, guid: ec3fe872e2e518246b2c356340f265c3, type: 3}
userData: userData:
assetBundleName: shader graphs_shinestyleui assetBundleName:
assetBundleVariant: assetBundleVariant:
Shader "Shader Graphs/UIBlur_box_with_t" {
Properties {
Effect ("Effect", Range(0, 20)) = 8
[NoScaleOffset] _MainTex ("MainTex", 2D) = "white" {}
_BlendColor ("BlendColor", Vector) = (1,1,1,0)
[ToggleUI] _ReverseVertical ("ReverseVertical", Float) = 0
[ToggleUI] _ReverseHolizontal ("ReverseHolizontal", Float) = 0
[HideInInspector] _QueueOffset ("_QueueOffset", Float) = 0
[HideInInspector] _QueueControl ("_QueueControl", Float) = -1
[HideInInspector] [NoScaleOffset] unity_Lightmaps ("unity_Lightmaps", 2DArray) = "" {}
[HideInInspector] [NoScaleOffset] unity_LightmapsInd ("unity_LightmapsInd", 2DArray) = "" {}
[HideInInspector] [NoScaleOffset] unity_ShadowMasks ("unity_ShadowMasks", 2DArray) = "" {}
}
//DummyShaderTextExporter
SubShader{
Tags { "RenderType"="Opaque" }
LOD 200
Pass
{
HLSLPROGRAM
#pragma vertex vert
#pragma fragment frag
float4x4 unity_ObjectToWorld;
float4x4 unity_MatrixVP;
float4 _MainTex_ST;
struct Vertex_Stage_Input
{
float4 pos : POSITION;
float2 uv : TEXCOORD0;
};
struct Vertex_Stage_Output
{
float2 uv : TEXCOORD0;
float4 pos : SV_POSITION;
};
Vertex_Stage_Output vert(Vertex_Stage_Input input)
{
Vertex_Stage_Output output;
output.uv = (input.uv.xy * _MainTex_ST.xy) + _MainTex_ST.zw;
output.pos = mul(unity_MatrixVP, mul(unity_ObjectToWorld, input.pos));
return output;
}
Texture2D<float4> _MainTex;
SamplerState sampler_MainTex;
struct Fragment_Stage_Input
{
float2 uv : TEXCOORD0;
};
float4 frag(Fragment_Stage_Input input) : SV_TARGET
{
return _MainTex.Sample(sampler_MainTex, input.uv.xy);
}
ENDHLSL
}
}
Fallback "Hidden/Shader Graph/FallbackError"
//CustomEditor "UnityEditor.ShaderGraph.GenericShaderGraphMaterialGUI"
}
\ No newline at end of file
fileFormatVersion: 2
guid: fc3613d4d9d46604d8db311c951af12a
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName: shader graphs_uiblur_box_with_t
assetBundleVariant:
fileFormatVersion: 2 fileFormatVersion: 2
guid: 90c6e35ef4304f289c279037152a03b7 guid: 90c6e35ef4304f289c279037152a03b7
timeCreated: 1755117404
licenseType: Free
TextureImporter: TextureImporter:
serializedVersion: 13
internalIDToNameTable: [] internalIDToNameTable: []
externalObjects: {} externalObjects: {}
serializedVersion: 13
mipmaps: mipmaps:
mipMapMode: 0 mipMapMode: 0
enableMipMap: 0 enableMipMap: 0
...@@ -39,8 +37,8 @@ TextureImporter: ...@@ -39,8 +37,8 @@ TextureImporter:
filterMode: 1 filterMode: 1
aniso: 1 aniso: 1
mipBias: 0 mipBias: 0
wrapU: 0 wrapU: 1
wrapV: 0 wrapV: 1
wrapW: 0 wrapW: 0
nPOTScale: 0 nPOTScale: 0
lightmap: 0 lightmap: 0
...@@ -56,7 +54,7 @@ TextureImporter: ...@@ -56,7 +54,7 @@ TextureImporter:
alphaUsage: 1 alphaUsage: 1
alphaIsTransparency: 1 alphaIsTransparency: 1
spriteTessellationDetail: -1 spriteTessellationDetail: -1
textureType: 0 textureType: 8
textureShape: 1 textureShape: 1
singleChannelComponent: 0 singleChannelComponent: 0
flipbookRows: 0 flipbookRows: 0
...@@ -82,46 +80,64 @@ TextureImporter: ...@@ -82,46 +80,64 @@ TextureImporter:
ignorePlatformSupport: 0 ignorePlatformSupport: 0
androidETC2FallbackOverride: 0 androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0 forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 2
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 2
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: iOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 2
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet: spriteSheet:
serializedVersion: 2 serializedVersion: 2
sprites: [] sprites: []
outline: [] outline: []
customData: customData:
physicsShape: [] physicsShape: []
bones: [] bones: []
spriteID: spriteID: 5e97eb03825dee720800000000000000
internalID: 0 internalID: 0
vertices: [] vertices: []
indices: indices:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
spriteCustomMetadata: spriteCustomMetadata:
entries: [] entries: []
nameFileIdTable: {} nameFileIdTable: {}
mipmapLimitGroupName: mipmapLimitGroupName:
output:
textureImportInstructions:
compressedFormat: 0
uncompressedFormat: 0
desiredFormat: 0
usageMode: 0
colorSpace: 0
width: 0
height: 0
depth: 0
cubeIntermediateSize: 0
cubeMode: 0
cubeLayout: 0
compressionQuality: 0
vtOnly: 0
sourceTextureInformation:
width: 0
height: 0
doesTextureContainAlpha: 0
sourceWasHDR: 0
importInspectorWarnings:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment