Is there a way to easily change width and height of plane dynamically? The code below has no effect.
plane.geometry.parameters.width = width;
plane.geometry.parameters.height = height;
Create the plane mesh
var geometry = new THREE.PlaneGeometry( 1, 1 );
var mesh = new THREE.Mesh( geometry, material );
You can then dynamically change the dimensions by resetting the scale, like so:
mesh.scale.set( width, height, 1 );
three.js r.74
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With