mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-10 04:53:07 +08:00
Fix compile error with photonics and cumulonimbus clouds
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user