Hello, I am noob at shader writing. Take a look at shader:
Shader "MyAndroid/ShaderTest"
{
Properties
{
_MainTex ("Main Texture", 2D) = "white" {}
_MaskTex ("Mask Texture", 2D) = "white" {}
_EnvMap ("Reflect Texture", 2D) = "white" {TexGen SphereMap}
_TintColor ("Tint Color", Color) = (1,1,1,1)
}
SubShader
{
Tags
{"Queue"="Transparent"}
Pass
{
SetTexture [_MainTex]
{
combine texture * constant ConstantColor[_TintColor]
}
SetTexture [_MaskTex]
{
combine previous, texture
}
SetTexture [_EnvMap]
{
combine texture lerp(previous) previous
}
}
}
FallBack "Mobile/Diffuse"
}
So I have a mask, the main texture, tint color and EnvMap. I want to multiply EnvMap with tintColor, but it doesn’t work.
Any info is appreciated