Perspective Projection
Dennis
dkorpel at gmail.com
Fri Jul 28 16:20:26 UTC 2023
On Friday, 28 July 2023 at 16:08:43 UTC, Ruby The Roobster wrote:
> Everything displays fine (with orthographic projection, of
> course) if you leave the projection as the identity matrix, but
> setting it as I have done results in a blank screen.
How do you pass the matrix to OpenGL? Be careful that gl3n uses
row major matrices, but OpenGL uses column major matrices, so you
either need to transpose it yourself, or pass `true` to the
`transpose` argument in `glUniformMatrix4fv`.
More information about the Digitalmars-d-learn
mailing list