You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using pixi with @pixi/react. I'm trying to create a simple fragment shader filter that's applied to a Graphics object. It works as expected, until I place the Graphics object inside a Container with a scale. At that point, adjusting the scale of the Container seems to shift the vTextureCoord in my glsl code. The strangest part is, at various scale levels, the filter appears to reset, and the filter behaves as expected once again.
Expected Behavior
I would expect the vTextureCoord range to correctly map from 0 - 1 on my Graphics object's bounds, regardless of the parent container's scale.
Current Behavior
I'm using pixi with @pixi/react. I'm trying to create a simple fragment shader filter that's applied to a
Graphics
object. It works as expected, until I place theGraphics
object inside aContainer
with a scale. At that point, adjusting the scale of theContainer
seems to shift thevTextureCoord
in my glsl code. The strangest part is, at various scale levels, the filter appears to reset, and the filter behaves as expected once again.Expected Behavior
I would expect the
vTextureCoord
range to correctly map from 0 - 1 on myGraphics
object's bounds, regardless of the parent container's scale.Steps to Reproduce
Here's a CodeSandbox link to the problem. https://codesandbox.io/s/pensive-cache-8zkitk?file=/src/App.tsx
The code is as follows.
Environment
@pixi/react
version: 7.0.3pixi.js
version: 7.2.3React
version: 18.2.0ReactDOM
version: 18.2.0Possible Solution
No response
Additional Information
I also posted this issue on the main pixi.js repo here: pixijs/pixijs#9447
The text was updated successfully, but these errors were encountered: