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
TiltShiftFilter could probably use some improvement with resizing. It's not super intuitive.
You need to update and set the start and end values to the TiltShiftFilter, for instance:
varfilter=newPIXI.filters.TiltShiftFilter();window.addEventListener('resize',function(){// Reassign the start and end values of the blurfilter.start=newPIXI.Point(0,window.innerHeight/2);filter.end=newPIXI.Point(600,window.innerHeight/2);// also update the texture sizefilter.uniforms.texSize.set(window.innerWidth,window.innerHeight);});
I can work on a pull request to improve the ergonomics of resizing.
return : Uncaught TypeError: Cannot read property 'set' of undefined
It's not really about live resizing it's just that the filter behavior is very strange with differents heights
and it works well in many heights with the 5.0.0.alpha.3
Hi,
The TiltShiftFilter doesn't stay at the middle when you change the height of the filtered element ( in that case, the window height )
There is no bug with the alpha Version of Pixijs : 5.0.0.alpha.3 but I can't use it in production.
Thanks for your advises
The text was updated successfully, but these errors were encountered: