Closed FlexYourBrain closed 1 year ago
The render.json is a generated file from the API docs which are part of each Defold release. The actual source of the documentation comes straight from the code:
https://github.com/defold/defold/blob/dev/engine/render/src/render/render_script.cpp#L363-L408
Please make a change in the above file instead. Closing this PR.
Currently the example use
render.draw(self.my_pred, constants)
is deprecated and will give a warning.WARNING:RENDER: This interface for render.draw() is deprecated. Please see documentation at https://defold.com/ref/stable/render/#render.draw:predicate-[constants]
Update with table format.
render.draw(self.my_pred, {constants = constants})
solves issue.