Comments (6)
I don't know what you mean. Can you try explaining or showing?
from filters.
The shape of shockwave is not always a circle.
Only When the canvas is a square , The shape of shockwave is circle.
from filters.
I believe that's intentional.
from filters.
Why ?
in the real game, what ever the game resolution ( 4:3 or 16:9 ) , the shockwave should always be a circle.
from filters.
@bigtimebuddy . in filter , I use this code for computing the distance of a texture-point and center
:
(uCenter
use viewport coord, the unit is pixel
)
vec2 center = uCenter.xy / filterArea.xy;
vec2 dir = vec2(center - vTextureCoord);
float dist = length(vec2(dir.x, dir.y * filterArea.y / filterArea.x));
from filters.
done with #95
from filters.
Related Issues (20)
- DropShadowFilter does not blur properly HOT 3
- Glow filter lowers image quality of sprite HOT 2
- Using only one filter HOT 1
- I used colorMapFilter to map the LUT image, but the effect was just to mask the original image HOT 6
- Pixi v6 + Vue 3 (Vite) has error on import HOT 1
- Pixi core 7.0.0 dependancy HOT 2
- How to clone filters from a spirte applied to anther sprite ? HOT 1
- Get error trying to use CRTFilter HOT 1
- Uncaught TypeError: class constructors must be invoked with 'new' using Shockwave filter
- Incorrect options type in `ColorGradientFilter` HOT 1
- `DropShadowFilter`'s `offset` doesn't respect target scale
- Deprecation Warning: `utils.hex2rgb` when using PixiJS filters with PixiJS v7.2.0+ HOT 3
- a polar filter
- Bug with wgsl on some filters (v8) HOT 1
- CDN doesn't provide latest
- demo site not working HOT 2
- Deprecation Warning in Drop Shadow Filter
- Shockwave filter not supporting alpha HOT 1
- Bug: ShockwaveFilter WebGPU vs WebGL (PixiJS v8) HOT 1
- Get the bitmap data of a display object with a filter applied HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filters.