UNPKG

@deck.gl/layers

Version:

deck.gl core layers

3 lines 848 B
declare const _default: "#version 300 es\n#define SHADER_NAME column-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nin vec4 vColor;\n#ifdef FLAT_SHADING\nin vec3 cameraPosition;\nin vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n fragColor = vColor;\n // Fails to compile on some Android devices if geometry is never assigned (#8411)\n geometry.uv = vec2(0.);\n#ifdef FLAT_SHADING\n if (column.extruded && !column.isStroke && !bool(picking.isActive)) {\n vec3 normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n fragColor.rgb = lighting_getLightColor(vColor.rgb, cameraPosition, position_commonspace.xyz, normal);\n }\n#endif\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n"; export default _default; //# sourceMappingURL=column-layer-fragment.glsl.d.ts.map