Source: filters/DisplacementFilter.js

  1. import { BaseTextureFilter } from "./BaseTextureFilter";
  2. const _GLSL = BaseTextureFilter.$createGLSL(
  3. "oCl=texture(uTex,vTUv+(Z.yz*(mskCl.rg-.5)*2.*vol));"
  4. );
  5. /**
  6. * Displacement filter
  7. * @extends {BaseTextureFilter}
  8. */
  9. export class DisplacementFilter extends BaseTextureFilter {
  10. get GLSL() {
  11. return _GLSL;
  12. }
  13. }