@deck.gl/experimental-layers
Version:
Experimental layers for deck.gl
2 lines • 702 B
JavaScript
export default "\n#define SHADER_NAME mesh-layer-fs\n\nprecision highp float;\n\nuniform bool hasTexture;\nuniform sampler2D sampler;\nuniform vec4 color;\n\nvarying vec2 vTexCoord;\nvarying vec4 vColor;\nvarying float vLightWeight;\n\nvoid main(void) {\n vec4 color = hasTexture ? texture2D(sampler, vTexCoord) : vColor / 255.;\n gl_FragColor = vec4(color.rgb * vLightWeight, color.a);\n\n // use highlight color if this fragment belongs to the selected object.\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n // use picking color if rendering to picking FBO.\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n";
//# sourceMappingURL=mesh-layer-fragment.glsl.js.map