How to use the pixi-filters.GodrayFilter function in pixi-filters

To help you get started, we’ve selected a few pixi-filters examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github avg-plus / avg.renderer / src / engine / core / graphics / filters / godray.ts View on Github external
public instance() {
    const instance =  new ExtraFilters.GodrayFilter();
    instance.parallel = false;

    return instance;
  }
github kreezii / jsgam / src / classes / core.js View on Github external
this.timeout=null;
    this.progress={
      puzzles:[]
    };

    this.width=config.width;
    this.height=config.height;
    this.parent=null;
    if(config.parent!=undefined) this.parent=config.parent;
    this.autoResize=true;
    if(config.autoResize!=undefined) this.autoResize=config.autoResize;

    this.app=new PIXI.Application(config.width,config.height,{autoResize: true,resolution: devicePixelRatio});
    this.OldFimFilter=new filters.OldFilmFilter();
    this.GodRayFilter=new filters.GodrayFilter();
    this.ReflectionFilter=new filters.ReflectionFilter({
      mirror:false,
      boundary:0,
      amplitude:[2,2],
      waveLength:[100,100]
    }
    );

    //Z-Order
    this.app.stage = new PIXI.display.Stage();
    this.sortGroup= new PIXI.display.Group(0, true);
    this.sortGroup.on('sort', function (sprite) {
      sprite.zOrder = -sprite.y;
    });
    this.onTopGroup = new PIXI.display.Group(1,false);
    this.UIGroup = new PIXI.display.Group(2,false);

pixi-filters

[![Node.js CI](https://github.com/pixijs/filters/workflows/Node.js%20CI/badge.svg)](https://github.com/pixijs/filters/actions/workflows/nodejs.yml?query=branch%3Amain) [![npm version](https://badge.fury.io/js/pixi-filters.svg)](https://www.npmjs.com/packa

MIT
Latest version published 2 months ago

Package Health Score

69 / 100
Full package analysis

Similar packages