xrfragment-haxe/src/3rd/js/three/xrmacro/fov.js

8 lines
193 B
JavaScript
Raw Normal View History

2023-08-24 13:36:41 +02:00
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();
}