Skip to content

Commit

Permalink
Fix Sildur's Vibrant Shaders v1.283 breaking with the new directive p…
Browse files Browse the repository at this point in the history
…arsing code
  • Loading branch information
coderbot16 committed May 24, 2021
1 parent 5d5d1b9 commit b09dd24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class PackRenderTargetDirectives {
"gcolor",
"gdepth",
"gnormal",
"gcomposite",
"composite",
"gaux1",
"gaux2",
"gaux3",
Expand Down Expand Up @@ -132,5 +132,14 @@ public boolean shouldClear() {
public Vector4f getClearColor() {
return clearColor;
}

@Override
public String toString() {
return "RenderTargetSettings{" +
"requestedFormat=" + requestedFormat +
", clear=" + clear +
", clearColor=" + clearColor +
'}';
}
}
}
6 changes: 6 additions & 0 deletions src/main/java/net/coderbot/iris/shaderpack/ProgramSet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.coderbot.iris.shaderpack;

import net.coderbot.iris.Iris;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -204,6 +206,10 @@ private void locateDirectives() {
}
});
}

packDirectives.getRenderTargetDirectives().getRenderTargetSettings().forEach((index, settings) -> {
Iris.logger.debug("Render target settings for colortex" + index + ": " + settings);
});
}

public Optional<ProgramSource> getShadow() {
Expand Down

0 comments on commit b09dd24

Please sign in to comment.