react-three-renderer
react-three-renderer copied to clipboard
Accessing attributes on a PlaneBufferGeometry?
I'm trying to access the attributes property of a PlaneBufferGeometry. What's the best way to do this?
With three.js, I can just do:
var planeGeometry = new THREE.PlaneGeometry(1, 1);
planeGeometry.attributes.uv.setXY(0, 1.0, 0.5);
Would it be best to add a ref, then update the attributes in componentDidMount?
I think so, but I will take a look to see if we can use props to do something like this