Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
40
Assets/Plugins/Light2D/Resources/Shaders/Light90.shader
Normal file
40
Assets/Plugins/Light2D/Resources/Shaders/Light90.shader
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
|
||||
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"
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue