'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var fragment = "\nin vec2 vTextureCoord;\nin vec2 vFilterUv;\n\nout vec4 fragColor;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapTexture;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec4 inputClamp;\nuniform highp vec4 inputSize;\nuniform mat2 rotation;\nuniform vec2 scale;\n\n\nvoid main()\n{\nvec4 map = texture(mapTexture, vFilterUv);\n    \n    vec2 offset = inputSize.zw * (rotation * (map.xy - 0.5)) * scale; \n\n    fragColor = texture(uSampler, clamp(vTextureCoord + offset, inputClamp.xy, inputClamp.zw));\n}\n";

exports["default"] = fragment;
//# sourceMappingURL=displacement.js.map
