playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
39 lines (27 loc) • 721 B
JavaScript
// main shader entry point for the lit material for other render passes
var litOtherMainPS = /* wgsl */ `
@fragment
fn fragmentMain(input: FragmentInput) -> FragmentOutput {
var output: FragmentOutput;
evaluateFrontend();
output.color = getPickOutput();
output.color1 = getPickDepth();
output.color = float2vec4(vLinearDepth);
return output;
}
`;
export { litOtherMainPS as default };