I use mirrorreflection shader for reflection and it work very nice but the reflection strength is high.
I want to control the reflection strength, i m new about the shader script and i m try to add alpha channel but its not work.
How i control the reflection strength ?![]()
change the shader so it uses an the alpha of a color to blend between a primary texture and the mirror reflection
Shader "FX/Mirror Reflection" {
Properties {
_Color ("Alpha Fade", Color) = (1,1,1,0.5)
_MainTex ("Base (RGB)", 2D) = "white" {}
_ReflectionTex ("Reflection", 2D) = "white" { TexGen ObjectLinear }
}
// two texture cards: full thing
Subshader {
Pass {
SetTexture[_MainTex] { combine texture }
SetTexture[_ReflectionTex] {
constantColor[_Color]
matrix [_ProjMatrix] combine texture lerp(constant) previous
}
}
}
// fallback: just main texture
Subshader {
Pass {
SetTexture [_MainTex] { combine texture }
}
}
}