I basically have:
let mesh = new Mesh(geometry, material); mesh.onBeforeRender = () => console.log("in onBeforeRender function");
but the log line is only printed once when the mesh first gets into the camera viewing frustrum.
I expect this to be called every time I do
renderer.render(scene, camera). Or does “render” mean something else? (I guess if I want to do something before
renderer.render(), I don’t need Three’s help.)