Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef LIGHTWEIGHT_LIGHTING_INCLUDED
- Light light = GetMainLight();
- float3 direction = normalize(light.direction);
- float d = dot(Normal, direction);
- float3 ramp = smoothstep(0 , ToonRampFuzziness,d )+ (RampColor);
- Ramp = light.color * (ramp) * (light.distanceAttenuation
- * 2);
- LightDirection =direction;;
- #else
- Ramp = 1,1,1;
- LightDirection = 1,1,0;
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement