Fix compile error with photonics and cumulonimbus clouds

This commit is contained in:
Merlin1809
2026-02-21 05:13:41 +01:00
parent dac7baa85e
commit c76e914b3d
4 changed files with 8 additions and 14 deletions
-5
View File
@@ -3,11 +3,6 @@
#extension GL_ARB_shading_language_packing: enable
#endif
#if defined CUMULONIMBUS_LIGHTNING && CUMULONIMBUS > 0 && defined OVERWORLD_SHADER && defined COLORWHEEL
#extension GL_NV_gpu_shader5 : enable
#extension GL_ARB_shader_image_load_store : enable
#endif
#include "/lib/settings.glsl"
#include "/lib/SSBOs.glsl"
+4
View File
@@ -34,6 +34,10 @@ uniform sampler2D colortex7;
uniform sampler2D colortex10;
uniform sampler2D colortex14;
#if defined CUMULONIMBUS_LIGHTNING && CUMULONIMBUS > 0
layout (rgba16f) uniform image2D cloudDepthTex;
#endif
in DATA {
flat vec3 WsunVec;
flat vec3 WrealSunVec;
+4
View File
@@ -107,6 +107,10 @@ uniform float sunElevation;
uniform int worldDay;
#endif
#if defined CUMULONIMBUS_LIGHTNING && CUMULONIMBUS > 0
layout (rgba16f) uniform image2D cloudDepthTex;
#endif
#include "/lib/waterBump.glsl"
#include "/lib/res_params.glsl"
-9
View File
@@ -36,15 +36,6 @@ float lightningFlash = mix(0.1, 2.5, randomSeed);
#endif
#if defined CUMULONIMBUS_LIGHTNING && CUMULONIMBUS > 0
#if !defined COLORWHEEL && !defined VOXY_PROGRAM
#extension GL_NV_gpu_shader5 : enable
#extension GL_ARB_shader_image_load_store : enable
#endif
#ifndef VOXY_PROGRAM
layout (rgba16f) uniform image2D cloudDepthTex;
#endif
float lightningStart = mix(20.0, 1.0, smoothstep(0.0, 0.085, timeInLightning));
float lightningMid = smoothstep(0.0, 0.05, timeInLightning) * smoothstep(0.15, 0.066, timeInLightning);
#endif