Skip to content

0.2.1

Choose a tag to compare

@FinochioM FinochioM released this 08 Jun 23:26
· 15 commits to master since this release

This release fixed a bug on the Shaders.scala file.

Before shaders exposed the Ptr[Byte] and it was the user's job to use a Zone block to handle them.

Zone {
  val t = stackalloc[Float]()
  !t = elapsed
  Shaders.setShaderValue(shader, timeLoc, t.asInstanceOf[Ptr[Byte]], 0x1406)
}

Now the user just calls the setShaderValue function and passes its parameters just as like any other function.

Shaders.setShaderValue(shader, timeLoc, elapsed)

Full Changelog: 0.2.0...0.2.1