summaryrefslogtreecommitdiff
path: root/Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_ObjectScaleNode.shader
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_ObjectScaleNode.shader')
-rw-r--r--Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_ObjectScaleNode.shader36
1 files changed, 0 insertions, 36 deletions
diff --git a/Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_ObjectScaleNode.shader b/Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_ObjectScaleNode.shader
deleted file mode 100644
index 445c6274..00000000
--- a/Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_ObjectScaleNode.shader
+++ /dev/null
@@ -1,36 +0,0 @@
-Shader "Hidden/ObjectScaleNode"
-{
- SubShader
- {
-
- Pass
- {
- CGPROGRAM
- #include "UnityCG.cginc"
- #pragma vertex vert_img
- #pragma fragment frag
-
- float4 frag(v2f_img i) : SV_Target
- {
- float3 objectScale = float3( length( unity_ObjectToWorld[ 0 ].xyz ), length( unity_ObjectToWorld[ 1 ].xyz ), length( unity_ObjectToWorld[ 2 ].xyz ) );
- return float4(objectScale, 1);
- }
- ENDCG
- }
-
- Pass
- {
- CGPROGRAM
- #include "UnityCG.cginc"
- #pragma vertex vert_img
- #pragma fragment frag
-
- float4 frag (v2f_img i) : SV_Target
- {
- float3 objectScale = 1.0 / float3(length (unity_WorldToObject[0].xyz), length (unity_WorldToObject[1].xyz), length (unity_WorldToObject[2].xyz));
- return float4(objectScale, 1);
- }
- ENDCG
- }
- }
-}