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); }
16
20
3
GitHub: alan-wu/ZincJS
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;
9
3
3
three.Vector3 is the most popular function in three (22341 examples)