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.

3 lines (2 loc) 1.03 kB
import{S as e}from"./index-BPURObVq.esm.min.js";import{c as n,a as o}from"./clipPlaneFragment-NzyMiSJJ.esm.min.js";import{f as r,a as i}from"./fogFragment-CHG9qDrl.esm.min.js";const a="colorPixelShader",d="#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\n#define VERTEXCOLOR\nvarying vec4 vColor;\n#else\nuniform vec4 color;\n#endif\n#include<clipPlaneFragmentDeclaration>\n#include<fogFragmentDeclaration>\n#define CUSTOM_FRAGMENT_DEFINITIONS\nvoid main(void) {\n#define CUSTOM_FRAGMENT_MAIN_BEGIN\n#include<clipPlaneFragment>\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\ngl_FragColor=vColor;\n#else\ngl_FragColor=color;\n#endif\n#include<fogFragment>(color,gl_FragColor)\n#define CUSTOM_FRAGMENT_MAIN_END\n}";e.ShadersStore[a]||(e.ShadersStore[a]=d);const l=[n,r,o,i];for(const n of l)e.IncludesShadersStore[n.name]||(e.IncludesShadersStore[n.name]=n.shader);const s={name:a,shader:d};export{s as colorPixelShader}; //# sourceMappingURL=color.fragment-CiaeUu3f.esm.min.js.map