UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

28 lines (25 loc) 663 B
import { S as ShaderStore } from './index-MZPybX0H.esm.js'; // Do not edit. const name = "vertexColorMixing"; const shader = `#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES) vColor=vec4(1.0); #ifdef VERTEXCOLOR #ifdef VERTEXALPHA vColor*=colorUpdated; #else vColor.rgb*=colorUpdated.rgb; #endif #endif #ifdef INSTANCESCOLOR vColor*=instanceColor; #endif #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ const vertexColorMixing = { name, shader }; export { vertexColorMixing as v }; //# sourceMappingURL=vertexColorMixing-CuklZfs4.esm.js.map