Releases: oakes/play-cljc
Release list
0.9.6
0.9.5
0.9.4
0.9.2
This release allows iglu shaders to override the GLSL version via the :version key. Previously the compile function was forcing "330" for opengl and "300 es" for webgl no matter what you put in that key.
It also removes edna from the template. It is a relatively heavy dependency so it is best to not make people download it by default.
0.9.1
0.9.0
0.8.9
0.8.8
This release adds play-cljc.transforms/invert, which applies an inverse matrix. This is a useful function for applying cameras to an entity. Previously, there was the play-cljc.transforms/camera function for doing this. It is still there but should not be used anymore.
For 2D entities, the camera function simply applied a reverse scaling matrix to whatever you did to the camera. This worked fine if all you did was translate the camera, but as of this release, you can now also scale or rotate it as well. With the old camera function, this wouldn't work as expected. But with the new invert function, it will give you the exact inverse. For example, if you rotate the camera clockwise, anything you invert with it will rotate counterclockwise. You can also now create a 2D camera with (play-cljc.gl.entities-2d/->camera), which is how you should always do it if you're going to use invert.
For 3D entities, invert and camera are the exact same. I think invert should be preferred because the name is more clear about what it does.