Open andysc opened 3 years ago
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()
https://github.com/immersive-web/webxr-samples/blob/master/js/render/core/material.js
input-selection.html
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
uniforms.baseColorFactor.value
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.
baseColorFactor
_value
according to
https://github.com/immersive-web/webxr-samples/blob/master/js/render/core/material.js
MaterialUniform has a getter and a setter. Looking atinput-selection.html
as an example in onSqueeze()uniforms.baseColorFactor.value
isundefined
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.