From bcee639d55dc76543424b01de07843e34a81f9ec Mon Sep 17 00:00:00 2001 From: NULL511 Date: Sun, 21 Jul 2024 21:36:36 -0400 Subject: [PATCH] add floodfill unpack ext to shadow --- shaders/world-1/shadow.vsh | 8 +++++--- shaders/world0/shadow.vsh | 1 + shaders/world1/shadow.vsh | 8 +++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/shaders/world-1/shadow.vsh b/shaders/world-1/shadow.vsh index f15b937..3eaf7ac 100644 --- a/shaders/world-1/shadow.vsh +++ b/shaders/world-1/shadow.vsh @@ -1,8 +1,10 @@ #version 120 -#extension GL_ARB_explicit_attrib_location: enable -#extension GL_ARB_shader_image_load_store: enable - #include "/lib/settings.glsl" +#ifdef IS_LPV_ENABLED + #extension GL_ARB_explicit_attrib_location: enable + #extension GL_ARB_shader_image_load_store: enable + #extension GL_ARB_shading_language_packing : enable +#endif #define RENDER_SHADOW diff --git a/shaders/world0/shadow.vsh b/shaders/world0/shadow.vsh index 4dba02f..7c0970e 100644 --- a/shaders/world0/shadow.vsh +++ b/shaders/world0/shadow.vsh @@ -3,6 +3,7 @@ #ifdef IS_LPV_ENABLED #extension GL_ARB_explicit_attrib_location: enable #extension GL_ARB_shader_image_load_store: enable + #extension GL_ARB_shading_language_packing : enable #endif #define RENDER_SHADOW diff --git a/shaders/world1/shadow.vsh b/shaders/world1/shadow.vsh index f15b937..3eaf7ac 100644 --- a/shaders/world1/shadow.vsh +++ b/shaders/world1/shadow.vsh @@ -1,8 +1,10 @@ #version 120 -#extension GL_ARB_explicit_attrib_location: enable -#extension GL_ARB_shader_image_load_store: enable - #include "/lib/settings.glsl" +#ifdef IS_LPV_ENABLED + #extension GL_ARB_explicit_attrib_location: enable + #extension GL_ARB_shader_image_load_store: enable + #extension GL_ARB_shading_language_packing : enable +#endif #define RENDER_SHADOW