mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-18 11:29:08 +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
@@ -248,6 +248,16 @@ public class RenderTargets {
|
||||
return framebuffer;
|
||||
}
|
||||
|
||||
public GlFramebuffer createDHFramebuffer(ImmutableSet<Integer> stageWritesToAlt, int[] drawBuffers) {
|
||||
if (drawBuffers.length == 0) {
|
||||
return createEmptyFramebuffer();
|
||||
}
|
||||
|
||||
ImmutableSet<Integer> stageWritesToMain = invert(stageWritesToAlt, drawBuffers);
|
||||
|
||||
return createColorFramebuffer(stageWritesToMain, drawBuffers);
|
||||
}
|
||||
|
||||
public GlFramebuffer createGbufferFramebuffer(ImmutableSet<Integer> stageWritesToAlt, int[] drawBuffers) {
|
||||
if (drawBuffers.length == 0) {
|
||||
return createEmptyFramebuffer();
|
||||
|
||||
Reference in new issue
Block a user