View on GitHub

3DreamEngine

3DreamEngine is an *awesome* 3d engine for LÖVE.

Canvases

Canvases are target frame buffers storing intermediate and final rendering steps as well as graphics settings

Constructors

Canvases:newCanvases()

Creates a new set of canvas outputs

Returns

(Canvases)


Methods

Canvases:setMode(mode)

Set the output mode, normal contains all features, direct do not use a canvas at all and directly renders and lite uses a canvas but on a faster feature set

Arguments

mode (CanvasMode)


Canvases:getMode()


Canvases:setFormat(format)

Sets the pixel format manually

Arguments

format (PixelFormat)


Canvases:getFormat()


Canvases:setAlphaPass(alphaPass)

Toggle the alpha pass

Arguments

alphaPass (boolean)


Canvases:getAlphaPass()


Canvases:setRefractions(refractions)

Toggle refractions

Arguments

refractions (boolean)


Canvases:getRefractions()


Canvases:setFXAA(fxaa)

Toggle Fast approximate anti aliasing

Arguments

fxaa (boolean)


Canvases:getFXAA()


Canvases:setMSAA(msaa)

Set Multi Sample Anti Aliasing sample count

Arguments

msaa (number)


Canvases:getMSAA()


Canvases:setResolution(px)

Sets the resolution, requires a reinit

Arguments

px (number)


Canvases:getResolution()


Canvases:init(w, h)

Initialize that canvas set

Arguments

w (number) optional

h (number) optional