[Postprocess Material] How to sample texture object in custom node in postprocess material

There’s something weird that I dont really understand, which is that The Texture Sampling code here doesn’t work in postprocess material

I have a post process material, like this


in this material I want to Sample a texture object as well as the post process material in custom node

I can sample the sceneTexture using SceneTextureLookup but I cant sample the texture object
I tried:
Texture2DSample(MyTexture, MyTextureSampler, uv);
and
MyTexture.Sample(MyTextureSampler, uv);
but neither of these work I even tried MyTextureLookup

Any Idea what is the syntax to sample My Texture Object in postprocess material in custom node

You have used TextureSampleParameter2D. So you are already using a sampled texture and trying to sample it again, which is obviously impossible. You need to use TextureObjectParameter instead.

1 Like

Thanks I didn’t know the difference ^^, using TextureObjectParameter seems to fix it