Re: School me on perspective implementation, please...
Posted by
elect on
Mar 31, 2017; 2:12pm
URL: https://forum.jogamp.org/School-me-on-perspective-implementation-please-tp4037826p4037828.html
In your shader you should do something like this
in vec3 position;gl_Position = proj * (view * (model * vec4(position)))AspectMX belongs to
projAnimationMx to
modelcalculate
view with
makeLookAt and
proj with
makePerspective (for perspective projection) or
makeOrtho (for orthographic)
I suggest you to study
this chapter of one of the best tutorial out there.
If interested, I did a jogl port
here