JesseTG / BALLS

Badass Looker for Ludicrous Shaders
Apache License 2.0
5 stars 1 forks source link

Specify transforms for 3x3 and 4x4 matrices #12

Open JesseTG opened 9 years ago

JesseTG commented 9 years ago

If a mat3, a dmat3, a mat4, or a dmat4 (or maybe other types of matrices; I gotta refresh my memory about affine transforms) ends in _transform or Transform, a text box should appear that accepts transform syntax very similar to that of the SVG standard.

I wonder if there's an equivalent 3D standard, since that only covers 2D?

claudeha commented 9 years ago

probably would work to use something based on the ancient opengl matrix stack, like http://www.talisman.org/opengl-1.1/Reference/glTranslate.html#SeeAlso https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/gluLookAt.3.html etc the various transformation functions are implemented in (for example) glm http://glm.g-truc.net/0.9.6/index.html also would be good to have a toggle to change the order of the matrix multiplications in case you wrote rotate(..) translate(..) ... but really meant the other order