@bitowl/three-instanced-mesh
Version:
Scene graph level abstraction for three.js InstancedBufferGeometry
21 lines (12 loc) • 321 B
JavaScript
/**************************
* Dusan Bosnjak @pailhead
**************************/
// add fragment varying if feature enabled
module.exports = [
"#ifdef USE_COLOR",
"varying vec3 vColor;",
"#endif",
"#if defined( INSTANCE_COLOR )",
"varying vec3 vInstanceColor;",
"#endif"
].join("\n")