Render target not properly enabled if sampler is present at that texture unit in a model (DEF-1523)

When using render.enable_texture and you render a model that use the rendered texture you will only get black if the model material contains a sampler in the texture unit you are using for the render target.

Expected result:
The sampler settings from the render target should be overridden with the ones in the sampler. Or atleast it should ignore the settings in the sampler and don’t give out black.

(also, since you can’t set the index of the model textures or the samplers in the material you can really only have the rendered texture as the last sampler in the material. This makes it harder to have many different shaders with different number of static textures use the same render target)

Nevermind. But please remove the “textures” option from materials. It just confuses things, and was to root of this “bug”. Apparently it is a mini-version of setting up the samplers, and if you had them there too then this problem occured.

Thanks, I filed a bug on this.
DEF-1523

1 Like