View on GitHub

3DreamEngine

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

Reflection

A reflection globe, updated when visible. Dynamic globes are slow and should be used with care. In many cases, static globes are sufficient.

Constructors

Reflection:newReflection()

Returns

(Reflection)


Methods

Reflection:refresh()

Request a rerender, especially relevant if the globe is static


Reflection:setLocal(center, first, second)

Set the bounds of the globe. A local globe is more accurate for objects close to the bounds.

Arguments

center (Vec3)

first (Vec3)

second (Vec3)


Reflection:getLocal()


Reflection:setLazy(lazy)

Lazy reflections spread the load over several frames and are therefore much faster at the cost of a bit of flickering

Arguments

lazy (boolean)


Reflection:getLazy()