saliacoel commited on
Commit
74cc0a9
·
verified ·
1 Parent(s): f956c99

Update toon_cutoff16.shader

Browse files
Files changed (1) hide show
  1. toon_cutoff16.shader +5 -7
toon_cutoff16.shader CHANGED
@@ -58,12 +58,12 @@ Shader "Toon/Cutoff"
58
 
59
  struct Varyings
60
  {
61
- float4 positionCS : SV_POSITION;
62
- float2 uv : TEXCOORD0;
63
- float3 positionWS : TEXCOORD1;
64
- float3 normalWS : TEXCOORD2;
65
  float4 shadowCoord : TEXCOORD3;
66
- half fogFactor : TEXCOORD4;
67
  UNITY_VERTEX_INPUT_INSTANCE_ID
68
  UNITY_VERTEX_OUTPUT_STEREO
69
  };
@@ -105,7 +105,6 @@ Shader "Toon/Cutoff"
105
  half3 ToonLight(half3 baseColor, half3 normalWS, Light light)
106
  {
107
  half atten = light.distanceAttenuation * light.shadowAttenuation;
108
-
109
  half lightStrength = dot(normalWS, normalize(light.direction)) * 0.5h + 0.5h;
110
 
111
  half shadowRate =
@@ -336,7 +335,6 @@ Shader "Toon/Cutoff"
336
  half _ShadowThreshold;
337
  fixed4 _ShadowColor;
338
  half _ShadowSharpness;
339
- half _Cutoff;
340
 
341
  struct Input
342
  {
 
58
 
59
  struct Varyings
60
  {
61
+ float4 positionCS : SV_POSITION;
62
+ float2 uv : TEXCOORD0;
63
+ float3 positionWS : TEXCOORD1;
64
+ float3 normalWS : TEXCOORD2;
65
  float4 shadowCoord : TEXCOORD3;
66
+ half fogFactor : TEXCOORD4;
67
  UNITY_VERTEX_INPUT_INSTANCE_ID
68
  UNITY_VERTEX_OUTPUT_STEREO
69
  };
 
105
  half3 ToonLight(half3 baseColor, half3 normalWS, Light light)
106
  {
107
  half atten = light.distanceAttenuation * light.shadowAttenuation;
 
108
  half lightStrength = dot(normalWS, normalize(light.direction)) * 0.5h + 0.5h;
109
 
110
  half shadowRate =
 
335
  half _ShadowThreshold;
336
  fixed4 _ShadowColor;
337
  half _ShadowSharpness;
 
338
 
339
  struct Input
340
  {