Hello to the projection texture I used this shader that I found on the internet …
It worked well… but with the advent Unity5 is the function matrix [_projector] does not work = (
Can anyone help me fix this shader? Thanks
Shader “Projector/Texture”
{
Properties
{
_Color (“Main Color”, Color) = (1,1,1,1)
_ShadowTex (“Cookie”, 2D) = “gray” {}
}
Subshader
{
Tags { “RenderType” = “Transparent” “Queue” = “Transparent-1” }
Pass
{
ZWrite Off
Lighting Off
Fog { Color (0, 0, 0, 0) }
ColorMask RGB
Blend SrcAlpha OneMinusSrcAlpha
Offset -1, -1
Color [_Color]
SetTexture [_ShadowTex]
{
combine texture * primary
Matrix [_Projector]
}
}
}
}
2078795–135784–Texture.shader (503 Bytes)