Java – matrices does not work in OpenGL

I am trying to create an orthogonal matrix and an appropriate model and view matrix to view a simple triangle just to test the matrix I've been looking at a blank screen. I don't know what happened I'm using lwjgl. For vertices and matrices, I'm using a library called joml

Main class (unique class):

Vertex shader:

Clip shader:

Solution

Try changing the clip shader to:

The fragment shader should output the color after processing the output of the vertex shader

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>