xrfragment-haxe/src/3rd/js/three/xrmacro/fov.js
2023-10-25 12:47:23 +02:00

7 lines
193 B
JavaScript

xrf.frag.fov = function(v, opts){
let { frag, mesh, model, camera, scene, renderer, THREE} = opts
console.log("└ fov "+v.int);
camera.fov = v.int;
camera.updateProjectionMatrix();
}