Skip to content

Fluffy Cuttlefish

Choose a tag to compare

@bjornbytes bjornbytes released this 02 Dec 04:13

Add:

  • Add Material objects. Materials are sets of colors and textures that can be applied to Models and Meshes. Models automatically load referenced materials and textures.
  • Add Animator objects for skeletal animation playback.
  • Add fallback mouse/keyboard controls used when VR hardware is not present.
  • Add support for loading glTF models.
  • Add gamma correct rendering, lovr.graphics.isGammaCorrect, and the gammacorrect option to conf.lua.
  • Add lovr.math.gammaToLinear and lovr.math.linearToGamma.
  • Add lovr.graphics.circle.
  • Add lovr.graphics.arc.
  • Add lovr.math.orientationToDirection.
  • Add Transform:getMatrix and Transform:setMatrix.
  • Add support for vertex colors and add the built in lovrVertexColor vertex attribute to shaders.
  • Add Model:getMesh.
  • Add Mesh:drawInstanced and Model:drawInstanced.
  • Add lines and linestrip draw modes to Meshes.
  • Add Shader:hasUniform.
  • Add the ability to customize VR runtime preferences using the headset.drivers table in conf.lua.

Change:

  • Change Shader:send to accept more types of uniforms, including arrays.
  • Change lovr.graphics.newTexture to accept 6 arguments to create a cube map texture.
  • Change functions that deal with colors to use a floating point range of 0 - 1 instead of 0 - 255.

Fix:

  • Fix Controller:getHand, lovr.graphics.setPointSize, HRTF audio, and ZIP archive mounting for WebVR.
  • Fix a bug with World:raycast that occurred when the ray hit multiple things.
  • Fix loading and rendering of more complicated models with node hierarchies and multiple materials.
  • Fix a bug with text rendering that caused flickering.
  • Fix Shader error messages to include correct line numbers.
  • Fix crash on Windows that occurred when paths had non ASCII characters.

Remove:

  • Remove Model:setTexture, Model:getTexture, Mesh:setTexture, and Mesh:getTexture. They have been replaced by Model:setMaterial, Model:getMaterial, Mesh:setMaterial, and Mesh:getMaterial.
  • Remove Skybox object. It has been replaced with lovr.graphics.skybox.
  • Remove the ability to pass Textures as the optional first argument of drawing primitives (Materials can be passed instead).
  • Remove lovr.filesystem.exists. The lovr.filesystem.isFile and lovr.filesystem.isDirectory functions can be used instead.