2D-Platformer/Assets/Plugins/Light2D/Resources/Shaders/Light90.shader
2022-02-12 12:53:50 +02:00

40 lines
No EOL
889 B
Text

/*
Light shader with 90 path tracking steps.
Code contained in LightBase.cginc, only path tracking samples count is defined here.
*/
Shader "Light2D/Light 90 Points" {
Properties {
_MainTex ("Light texture", 2D) = "white" {}
_ObstacleMul ("Obstacle Mul", Float) = 500
_EmissionColorMul ("Emission color mul", Float) = 1
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
LOD 100
Blend OneMinusDstColor One
Cull Off
ZWrite Off
Lighting Off
Pass {
CGPROGRAM
#define PATH_TRACKING_SAMPLES 90 // count of path tracking steps
#pragma target 3.0
#pragma multi_compile ORTHOGRAPHIC_CAMERA PERSPECTIVE_CAMERA
#include "UnityCG.cginc"
#include "LightBase.cginc" // all code is here
#pragma vertex light2d_fixed_vert
#pragma fragment light2_fixed_frag
ENDCG
}
}
Fallback "Light2D/Light 40 Points"
}