webxr-samples
webxr-samples copied to clipboard
can't work out getter method on baseColorFactor
according to https://github.com/immersive-web/webxr-samples/blob/master/js/render/core/material.js
MaterialUniform has a getter and a setter.
Looking at input-selection.html
as an example in onSqueeze()
uniforms.baseColorFactor.value = [Math.random(), Math.random(), Math.random(), 1.0];
console.log("random colour:")
console.log(uniforms.baseColorFactor.value)
uniforms.baseColorFactor.value
is undefined
What is the correct getter method for a baseColorFactor
?
I've found _value
but that seems like it should be hidden behind a getter method.