Worked windows DirectX. Not working on android OpenGL, no texture appear.
Texture2D _colorTex;
SamplerState linearSampler
{
Filter = LINEAR;
AddressU = CLAMP;
AddressV = CLAMP;
};
float4 MainPS(VS_Out IN) : COLOR
{
float3 color = _colorTex.Sample(linearSampler, IN.UV).rgb;
return float4(color,1.0);
}
Itβs Working on android OpenGL, and windows DirectX
Texture2D _colorTex;
SamplerState colorSampler = sampler_state
{
Texture = <_colorTex>;
Filter = LINEAR;
AddressU = CLAMP;
AddressV = CLAMP;
};
float4 MainPS(VS_Out IN) : COLOR
{
float3 color = tex2D(colorSampler, IN.UV).rgb;
return float4(color,1.0);
}