This class copies its transform to foxlite's flixel_sprite shader
Use it when you need flixel sprites rendered in flixel to have a 3D perspective
Note: The projection aspect ratio depends on the scene's width and height, this can be
adjusted using the camera's aspect property
Note 2: FoxOfflineScene will not work for this at the moment
var sprite3D = new FlxFox3DSprite(yourSprite, new YourShader("foxlite/flixel_sprite"));
// Once added, the sprite will be positioned and transformed at `sprite3D`
scene.add(sprite3D);Constructor
new(target:FlxSprite, shader:FlxGraphicsShader)
Parameters:
target | the target sprite to be used |
|---|---|
shader | the flixel shader to recieve the transformations |
Variables
MVP:Matrix3D = new Matrix3D()
The Projection-View-Model matrix, this bakes all transforms to be used in a single uniform