Closed rosaqq closed 3 years ago
Create HudElement to define specific Mesh HUD render implementation:
int drawMode = GL_TRIANGLES; ... Matrix4f ortho = transformation.getOrthoProjectionMatrix(0, window.getWidth(), window.getHeight(), 0); Matrix4f transformationResult = Transformation.getOrtoProjModelMatrix(gameItem, ortho); hudShaderProgram.setUniform("projModelMatrix", transformationResult );
HudElement is actually a GameItemMesh but with a different render implementation:
Create HudElement to define specific Mesh HUD render implementation: