[Player] Add AI Pathfinding on a 2D grid to the player character
This commit is contained in:
26
Assets/External/AstarPathfindingProject/ExampleScenes/Materials/Projector Light.shader
vendored
Normal file
26
Assets/External/AstarPathfindingProject/ExampleScenes/Materials/Projector Light.shader
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
Shader "Projector/Light" {
|
||||
Properties {
|
||||
_Color ("Main Color", Color) = (1,1,1,1)
|
||||
_ShadowTex ("Cookie", 2D) = "" { TexGen ObjectLinear }
|
||||
_FalloffTex ("FallOff", 2D) = "" { TexGen ObjectLinear }
|
||||
}
|
||||
Subshader {
|
||||
Pass {
|
||||
ZWrite off
|
||||
Fog { Color (0, 0, 0) }
|
||||
Color [_Color]
|
||||
ColorMask RGB
|
||||
Blend DstColor One
|
||||
Offset -1, -1
|
||||
SetTexture [_ShadowTex] {
|
||||
combine texture * primary, ONE - texture
|
||||
Matrix [_Projector]
|
||||
}
|
||||
SetTexture [_FalloffTex] {
|
||||
constantColor (0,0,0,0)
|
||||
combine previous lerp (texture) constant
|
||||
Matrix [_ProjectorClip]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user