2
« on: April 02, 2014, 08:00:31 am »
Hi,
I am using depth mask with the shader given below.
Shader "MaskedTexture"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_Mask ("Culling Mask", 2D) = "white" {}
_Cutoff ("Alpha cutoff", Range (0,1)) = 0.1
}
SubShader
{
Tags {"Queue"="Transparent"}
Lighting Off
ZWrite On
Blend SrcAlpha OneMinusSrcAlpha
AlphaTest GEqual [_Cutoff]
ColorMask 0
Pass
{
SetTexture [_Mask] {combine texture}
SetTexture [_MainTex] {combine texture, previous}
}
}
}
Its working perfect on Samsung Galaxy S2 , Samsung Galaxy S3, Google Nexus Tab but its not working on Samsung Galaxy Tab 2 10.1. Its just giving me white image as a mask. I am using a .png image as texture for masking. Kindly help me to resolve this issue. Thanx in Advance.
Regards,
Fezon