We’re supposed to be able to use something like:
msg.post("@render:", “use_fixed_fit_projection”, { near = -1, far = 1 })
so we don’t need to copy and change the built-in render script, but that doesn’t seem to be working if I change the near/far values.
In the default render script, update function, there’s a line:
render.set_projection(vmath.matrix4_orthographic(0, render.get_window_width(), 0, render.get_window_height(), -1, 1))
which should probably be?
render.set_projection(vmath.matrix4_orthographic(0, render.get_window_width(), 0, render.get_window_height(), self.near, self.far))
I am using editor 1.2.163, deleted the cache and build folders to make sure I am getting the updated built-ins.
In the meantime, I just copy the default render script with changes above, and it works ok now.