azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
606 stars 54 forks source link

gfx.Transform and arbitrary transformation matrices. #136

Open azul3d-bot opened 8 years ago

azul3d-bot commented 8 years ago

Issue by slimsag Sunday Dec 28, 2014 at 22:49 GMT Originally opened as https://github.com/azul3d/gfx/issues/84


One may desire to skip the usage of gfx.Transform for objects and jump right to using their own 4x4 transformation matrix.

We should have a way to do this that can (somewhat?) play nicely with gfx.Transform.

azul3d-bot commented 8 years ago

Comment by slimsag Sunday Dec 28, 2014 at 23:17 GMT


For now, as a workaround, you can pass a gfx.Mat4 as input to a shader and use that (combined with View and Projection matrices) instead of the default MVP matrix.