Hi!
I try to pass custom constants to shader programm.
I use this line of code for that:
render.draw(predicates.my_tag, { frustum = camera_world.frustum, constants = self.constants })
But I get errors in logs:
ERROR:SCRIPT: main/my_render_script.render_script:206: bad argument #5 to ‘draw’ (matrix4 expected, got table)
stack traceback:
[C] in function draw
main/my_render_script.render_script:206: in function <main/my_render_script.render_script:157>
Why does it happen and how should I pass constant buffer correctly?
In docs it says that table is a correct argument: