@deck.gl/experimental-layers
Version:
Experimental layers for deck.gl
9 lines (8 loc) • 704 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _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 gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n";
exports.default = _default;
//# sourceMappingURL=mesh-layer-fragment.glsl.js.map