Looks like Chrome
Yep, it didn’t load from built-ins.
When I update my custom render script to the newest version (after this commit) I’m getting the below error when building:
ERROR:SCRIPT: render/custom.render_script:80: bad argument #1 to '__mul' (matrix4 expected, got nil)
stack traceback:
[C]:-1: in function __mul
render/custom.render_script:80: in function update_camera
render/custom.render_script:104: in function update_state
render/custom.render_script:316: in function <render/custom.render_script:310>
As the camera projection is nil, it throws a multiplication error. I don’t know why the projection was nil, but I have just added a second check - of the projection function return value, as below:
local function update_camera(camera, state)
if camera.projection_fn and camera.projection_fn(camera, state) then
camera.proj = camera.projection_fn(camera, state)
camera.options.frustum = camera.proj * camera.view
end
end
And it works fine.
Maybe it’s something to take a look at. Or maybe it’s just me, I don’t know for sure
Hm that seems like a bug to me, could you share a repro or something that I can look at?
Here’s the repro:
mul-repro.zip (496.6 KB)
It looks like the problem arises after adding msg.post("@render:", "use_camera_projection")
to the camera object init function. So, I don’t know if it still classifies as a bug, because this is not the way to do it currently.