UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

31 lines (21 loc) 524 B
// main shader entry point for the lit material for other render passes var litOtherMainPS = /* glsl */ ` #ifdef PICK_PASS #include "pickPS" #endif #ifdef PREPASS_PASS #include "floatAsUintPS" #endif void main(void) { #include "litUserMainStartPS" evaluateFrontend(); #ifdef PICK_PASS gl_FragColor = getPickOutput(); #endif #ifdef PREPASS_PASS gl_FragColor = float2vec4(vLinearDepth); #endif #include "litUserMainEndPS" } `; export { litOtherMainPS as default };