mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-21 12:52:19 +00:00
SDL GPU backend, TESR Batching/caching API, Tracy Integration (#1993)
This commit is contained in:
1 parent
413df76ad4
commit
8da561d3b6
647 files changed
+60152
-5331
No files matched your search
@@ -69,9 +69,9 @@ public class ClearPassCreator {
|
||||
}
|
||||
|
||||
// No need to clear the depth buffer, since we're using Minecraft's depth buffer.
|
||||
clearPasses.add(new ClearPass(clearInfo.getColor(), clearInfo::getWidth, clearInfo::getHeight,
|
||||
clearPasses.add(new ClearPass(clearPassName("alt", clearBuffers), clearInfo.getColor(), clearInfo::getWidth, clearInfo::getHeight,
|
||||
renderTargets.createClearFramebuffer(true, clearBuffers), GL11.GL_COLOR_BUFFER_BIT));
|
||||
clearPasses.add(new ClearPass(clearInfo.getColor(), clearInfo::getWidth, clearInfo::getHeight,
|
||||
clearPasses.add(new ClearPass(clearPassName("main", clearBuffers), clearInfo.getColor(), clearInfo::getWidth, clearInfo::getHeight,
|
||||
renderTargets.createClearFramebuffer(false, clearBuffers), GL11.GL_COLOR_BUFFER_BIT));
|
||||
}
|
||||
});
|
||||
@@ -115,14 +115,22 @@ public class ClearPassCreator {
|
||||
}
|
||||
|
||||
// No need to clear the depth buffer, since we're using Minecraft's depth buffer.
|
||||
clearPasses.add(new ClearPass(clearColor, renderTargets::getResolution, renderTargets::getResolution,
|
||||
clearPasses.add(new ClearPass(clearPassName("shadow_alt", clearBuffers), clearColor, renderTargets::getResolution, renderTargets::getResolution,
|
||||
renderTargets.createFramebufferWritingToAlt(clearBuffers), GL11.GL_COLOR_BUFFER_BIT));
|
||||
|
||||
clearPasses.add(new ClearPass(clearColor, renderTargets::getResolution, renderTargets::getResolution,
|
||||
clearPasses.add(new ClearPass(clearPassName("shadow_main", clearBuffers), clearColor, renderTargets::getResolution, renderTargets::getResolution,
|
||||
renderTargets.createFramebufferWritingToMain(clearBuffers), GL11.GL_COLOR_BUFFER_BIT));
|
||||
}
|
||||
});
|
||||
|
||||
return ImmutableList.copyOf(clearPasses);
|
||||
}
|
||||
|
||||
private static String clearPassName(String kind, int[] clearBuffers) {
|
||||
final StringBuilder sb = new StringBuilder("iris_clear_").append(kind);
|
||||
for (int buffer : clearBuffers) {
|
||||
sb.append('_').append(buffer);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user