Skip to content

Commit c6edb5c

Browse files
author
IMS212
committed
Actually make geometry shaders work
1 parent b5e7000 commit c6edb5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/net/coderbot/iris/pipeline/SodiumTerrainPipeline.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public SodiumTerrainPipeline(WorldRenderingPipeline parent,
5555
sources.getGeometrySource().orElse(null),
5656
sources.getFragmentSource().orElse(null));
5757
terrainVertex = Optional.ofNullable(result.get(PatchShaderType.VERTEX));
58-
terrainGeometry = sources.getGeometrySource();
58+
terrainGeometry = Optional.ofNullable(result.get(PatchShaderType.GEOMETRY));
5959
terrainFragment = Optional.ofNullable(result.get(PatchShaderType.FRAGMENT));
6060

6161
PatchedShaderPrinter.debugPatchedShaders(sources.getName() + "_sodium",
@@ -68,7 +68,7 @@ public SodiumTerrainPipeline(WorldRenderingPipeline parent,
6868
sources.getGeometrySource().orElse(null),
6969
sources.getFragmentSource().orElse(null));
7070
translucentVertex = Optional.ofNullable(result.get(PatchShaderType.VERTEX));
71-
translucentGeometry = sources.getGeometrySource();
71+
translucentGeometry = Optional.ofNullable(result.get(PatchShaderType.GEOMETRY));
7272
translucentFragment = Optional.ofNullable(result.get(PatchShaderType.FRAGMENT));
7373

7474
PatchedShaderPrinter.debugPatchedShaders(sources.getName() + "_sodium",
@@ -81,7 +81,7 @@ public SodiumTerrainPipeline(WorldRenderingPipeline parent,
8181
sources.getGeometrySource().orElse(null),
8282
sources.getFragmentSource().orElse(null));
8383
shadowVertex = Optional.ofNullable(result.get(PatchShaderType.VERTEX));
84-
shadowGeometry = sources.getGeometrySource();
84+
shadowGeometry = Optional.ofNullable(result.get(PatchShaderType.GEOMETRY));
8585
shadowFragment = Optional.ofNullable(result.get(PatchShaderType.FRAGMENT));
8686

8787
PatchedShaderPrinter.debugPatchedShaders(sources.getName() + "_sodium",

0 commit comments

Comments
 (0)