UNPKG

@luma.gl/shadertools

Version:

Shader module system for luma.gl

31 lines (27 loc) 717 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors export const MODULE_INJECTORS_VS = /* glsl */ `\ #ifdef MODULE_LOGDEPTH logdepth_adjustPosition(gl_Position); #endif `; export const MODULE_INJECTORS_FS = /* glsl */ `\ #ifdef MODULE_MATERIAL fragColor = material_filterColor(fragColor); #endif #ifdef MODULE_LIGHTING fragColor = lighting_filterColor(fragColor); #endif #ifdef MODULE_FOG fragColor = fog_filterColor(fragColor); #endif #ifdef MODULE_PICKING fragColor = picking_filterHighlightColor(fragColor); fragColor = picking_filterPickingColor(fragColor); #endif #ifdef MODULE_LOGDEPTH logdepth_setFragDepth(); #endif `; //# sourceMappingURL=module-injectors.js.map