How to use the FaceColors function from three

Find comprehensive JavaScript three.FaceColors code examples handpicked from public code repositorys.

188
189
190
191
192
193
194
195
196
197
```
loader.load("models/animated/stork.js", function (geometry) {
    var material = new THREE.MeshLambertMaterial({
        color: 0xffaa55,
        morphTargets: true,
        vertexColors: THREE.FaceColors
    });
    if (fudgeColor) {
        material.color.offsetHSL(0, Math.random() * 0.5 - 0.25, Math.random() * 0.5 - 0.25);
    }
fork icon16
star icon20
watch icon3

14
15
16
17
18
19
20
21
22
23
const Glyph = function(geometry, materialIn, idIn, glyphsetIn)  {
  (require('./zincObject').ZincObject).call(this);
        let material = undefined;
        if (materialIn) {
                material = materialIn.clone();
                material.vertexColors = THREE.FaceColors;
        }
        const parent = glyphsetIn;
        this.id = idIn;
        let label = undefined;
fork icon9
star icon3
watch icon3

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)