alpha icon indicating copy to clipboard operation
alpha copied to clipboard

Feature request: Skew

Open jackwlee01 opened this issue 9 years ago • 1 comments

I am developing an animation library for Luxe which would very much benefit from skew capabilities. Is skew functionality on the table for future updates?

jackwlee01 avatar Jun 13 '16 01:06 jackwlee01

I'll keep it mind for the new renderer. It is relatively simple to implement in the vertex shader but it isn't free if it's not used (i.e 99.9% of the time), so i'm more inclined to make it something you use with a slightly customized shader.

But currently, the renderer complicates this by batching all the geometry together, so you would have to just skew the geometry once it's created at the vertex level. For example, if you have a sprite, you can access sprite.geometry.vertices and move around the relevant ones to introduce a skew.

Keep in mind that the rendering is being completely replaced though, so many things will change and it's worth mentioning that things are a bit of a transition state at the moment.

ruby0x1 avatar Jul 15 '16 00:07 ruby0x1