As i said i can’t get shadows on my reflective shader.
here is my shader codes;
Shader "FX/Mirror Reflection Blend" {
Properties {
_Blend ("Blend", Range (0, 1)) = 0.5
_MainTex ("Texture", 2D) = "white" {}
_ReflectionTex ("Reflection", 2D) = "white" { TexGen ObjectLinear }
}
// two texture cards: full thing
Subshader {
Tags { "RenderType" = "Opaque" }
Pass {
SetTexture[_ReflectionTex] { matrix [_ProjMatrix] }
SetTexture [_MainTex] {constantColor (255, 255, 255, [_Blend] ) combine texture lerp (constant) previous} }
}
}
I just added blend attribute on mirror reflection shader.
Here you can see the orjinal shader; http://wiki.unity3d.com/index.php?title=MirrorReflection2
And here is my results;
Floor Bumped Spec;
Floor Reflective;
As you can see, there is no shadow on reflective floor. So i really dont know what should i do for shadows. I m waiting for your suggestions.
Thanks for your help.