Skip to content

Commit

Permalink
Fix shapes extrude geometry rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 1, 2024
1 parent cfa9e03 commit 8f926a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ open class TriangleShaderProgram : AbstractShaderProgram() {
void main() {
if (enableOneVertexMode) {
/* Transform the vertex position by the modelview-projection matrix. */
gl_Position = mvpMatrix * pointA;
gl_Position = mvpMatrix * vec4(pointA.xyz, 1.0);
} else {
/* Transform the vertex position by the modelview-projection matrix. */
vec4 pointAScreen = mvpMatrix * vec4(pointA.xyz, 1);
Expand Down

0 comments on commit 8f926a8

Please sign in to comment.