UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

34 lines (24 loc) 613 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 pcFragColor0 = getPickOutput(); #ifdef DEPTH_PICK_PASS pcFragColor1 = getPickDepth(); #endif #endif #ifdef PREPASS_PASS gl_FragColor = float2vec4(vLinearDepth); #endif #include "litUserMainEndPS" } `; export { litOtherMainPS as default };