webxr-samples icon indicating copy to clipboard operation
webxr-samples copied to clipboard

can't work out getter method on baseColorFactor

Open andysc opened this issue 4 years ago • 0 comments

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.

andysc avatar Nov 20 '20 23:11 andysc