Hi! I’m sending constants to material using old render_script like that:
function init(self)
self.tile = render.predicate({"tile"})
self.constants = render.constant_buffer()
end
function update(self)
render.draw(self.tile, {frustum = frustum, constants = self.constants})
end
And how can we now send constants to shaders with new render script?
function update(self)
render.draw(predicates.tile, camera_world.frustum)
end