Hello!
I am not sure if it is an intended behaviour:
I have a sprite with “material_A” assigned in editor.
In render script I do this:
render.enable_material("material_B")
render.draw(self.my_pred, {frustum = frustum})
render.disable_material("material_B")
The sprite is rendered with material_B indeed. But the issue is that vertex attributes with semantic type Position are not set in this case (and texcoords also).
F.e. position_local defaults to vec2(0.0, 0.0) in this case.
Is there a workaround for that? Thank you!