Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Programming
OpenGL
How does GLSL read a matrix?
« previous
next »
Print
Pages: [
1
]
How does GLSL read a matrix?
0 Replies
2942 Views
Mihai_Ionut_Floares
43
How does GLSL read a matrix?
«
on:
November 13, 2020, 21:56:26 »
Let's say I have a projection matrix:
GLSL thinks -(2*Zfar*Znear)/zm is at position in matrix 2x3 or at 3x2?
Should I set in my float[][](2D array)
Code:
[Select]
projectionMatrix.mat[2][3] = -(2*Zfar*Znear)/zm;
or
Code:
[Select]
projectionMatrix.mat[3][2] = -(2*Zfar*Znear)/zm;
Logged
Print
Pages: [
1
]
« previous
next »