Hello!
I’m trying to build a material that in UE3 (Dx9) would make use of Tex2dGrad within a custom node. I understand the UE4 (Dx11) equivalent is SampleGrad.
The problems I’m encountering are:
-
tex2Dgrad doesn’t compile, it throws the 'tex2Dgrad does not take 4 parameters, possible intrinsic funcions are: tex2Dgrad(sampler2D, float2, float2, float2) error despite valid input parameters.
-
SampleGrad requires me to pass in a sampler state, which whilst I can choose this in the texture sampler, I can’t pass it across to the custom node.
We really need to be able to either atlas or array textures and have them respect their mip-maps, but there genuinely seems to be no way to do this in UE4, despite having been possible in UDK?