@luma.gl/shadertools
Version:
Shader module system for luma.gl
33 lines (26 loc) • 675 B
text/typescript
// luma.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
export const MODULE_INJECTORS_VS = /* glsl */ `\
logdepth_adjustPosition(gl_Position);
`;
export const MODULE_INJECTORS_FS = /* glsl */ `\
fragColor = material_filterColor(fragColor);
fragColor = lighting_filterColor(fragColor);
fragColor = fog_filterColor(fragColor);
fragColor = picking_filterHighlightColor(fragColor);
fragColor = picking_filterPickingColor(fragColor);
logdepth_setFragDepth();
`;