mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-18 19:39:09 +00:00
Distant Horizons shader support (#1553)
This commit is contained in:
1 parent
3ea47c8385
commit
057ea8035c
52 files changed
+2270
-135
No files matched your search
@@ -206,6 +206,20 @@ public class ShadowRenderTargets {
|
||||
return framebuffer;
|
||||
}
|
||||
|
||||
public GlFramebuffer createDHFramebuffer(ImmutableSet<Integer> stageWritesToAlt, int[] drawBuffers) {
|
||||
if (drawBuffers.length == 0) {
|
||||
return createEmptyFramebuffer();
|
||||
}
|
||||
|
||||
ImmutableSet<Integer> stageWritesToMain = invert(stageWritesToAlt, drawBuffers);
|
||||
|
||||
GlFramebuffer framebuffer = createColorFramebuffer(stageWritesToMain, drawBuffers);
|
||||
|
||||
framebuffer.addDepthAttachment(mainDepth.getTextureId());
|
||||
|
||||
return framebuffer;
|
||||
}
|
||||
|
||||
public GlFramebuffer createShadowFramebuffer(ImmutableSet<Integer> stageWritesToAlt, int[] drawBuffers) {
|
||||
if (drawBuffers.length == 0) {
|
||||
return createEmptyFramebuffer();
|
||||
|
||||
Reference in new issue
Block a user