11110
1
Effect proccessor error when try to compile this.But if i remove tex2Dlod line, it work as usual
VS_Out MainVS(in VS_In i)
{
VS_Out o = (VS_Out) 0;
o.Position = mul(i.Position, WVP);
float displacement = tex2Dlod(displacementSampler, float4(i.UV, 0, 0)).r;
o.Position.xyz += i.Normal * displacement;
o.UV = i.UV;
return o;
}
error msg as below
markus
3
Is displacementSampler set to point sampling? I’m pretty sure tex2Dlod doesn’t work with linear sampling.
11110
4
thanks for reply. still the same issue for POINT filter
11110
5
Anyone get tex2Dlod work on android? I found this, is anyone know how to merge it?