From 8f926a8f74a160842b5ce87d8755f8c365af0719 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 1 Dec 2024 20:48:03 +0200 Subject: [PATCH] Fix shapes extrude geometry rendering --- .../earth/worldwind/render/program/TriangleShaderProgram.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldwind/src/commonMain/kotlin/earth/worldwind/render/program/TriangleShaderProgram.kt b/worldwind/src/commonMain/kotlin/earth/worldwind/render/program/TriangleShaderProgram.kt index 5e19aa79..378ddfa5 100644 --- a/worldwind/src/commonMain/kotlin/earth/worldwind/render/program/TriangleShaderProgram.kt +++ b/worldwind/src/commonMain/kotlin/earth/worldwind/render/program/TriangleShaderProgram.kt @@ -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);