Initial Commit

This commit is contained in:
Simeon Radivoev 2022-02-12 12:53:50 +02:00
commit ee5c2f922d
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
2255 changed files with 547750 additions and 0 deletions

View file

@ -0,0 +1,40 @@
/*
Light shader with 30 path tracking steps.
Code contained in LightBase.cginc, only path tracking samples count is defined here.
*/
Shader "Light2D/Light 30 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 30 // 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 20 Points"
}