@Alkher wrote:
Hi !
I was working on one of my shaders, scratching my head asking myselft why one of my textures was not where it should be used in the computations.
I then just realized that when using SpriteBatch, the texture passed in the .Draw() HAS to be the first to be used by tex2d() in the pixelshader, otherwise it will be swept with another one.Is this the normal behavior : call tex2D/any sampler function in the same order they are set with .SetValue in c#, and this order must be the same as the declarations of samplers in hlsl ?
Posts: 13
Participants: 3