mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-26 18:22:33 +08:00
make twilight forest overworld variant less bright
This commit is contained in:
@ -445,6 +445,7 @@ void main() {
|
||||
float textureLOD = bias();
|
||||
vec4 Albedo = texture2D_POMSwitch(texture, adjustedTexCoord.xy, vec4(dcdx,dcdy), ifPOM, textureLOD) * color;
|
||||
|
||||
|
||||
#if defined HAND
|
||||
if (Albedo.a < 0.1) discard;
|
||||
#endif
|
||||
@ -640,16 +641,6 @@ void main() {
|
||||
//////////////////////////////// ////////////////////////////////
|
||||
|
||||
#ifdef WORLD
|
||||
// #ifdef Puddles
|
||||
// float porosity = 0.4;
|
||||
|
||||
// #ifdef Porosity
|
||||
// porosity = SpecularTex.z >= 64.5/255.0 ? 0.0 : (SpecularTex.z*255.0/64.0)*0.65;
|
||||
// #endif
|
||||
|
||||
// // if(SpecularTex.g < 229.5/255.0) Albedo.rgb = mix(Albedo.rgb, vec3(0), Puddle_shape*porosity);
|
||||
// #endif
|
||||
|
||||
// apply noise to lightmaps to reduce banding.
|
||||
vec2 PackLightmaps = vec2(torchlightmap, lmtexcoord.w);
|
||||
vec4 data1 = clamp( encode(viewToWorld(normal), PackLightmaps), 0.0, 1.0);
|
||||
|
@ -985,8 +985,7 @@ void main() {
|
||||
|
||||
#ifdef OVERWORLD_SHADER
|
||||
|
||||
// float LM_shadowMapFallback = min(max(lightmap.y-0.8, 0.0) * 5.0,1.0);
|
||||
float LM_shadowMapFallback = min(max(lightmap.y, 0.0),1.0);
|
||||
float LM_shadowMapFallback = clamp(lightmap.y, 0.0,1.0);
|
||||
|
||||
float LightningPhase = 0.0;
|
||||
vec3 LightningFlashLighting = Iris_Lightningflash(feetPlayerPos, lightningBoltPosition.xyz, slopednormal, LightningPhase) * pow(lightmap.y,10);
|
||||
|
@ -132,7 +132,6 @@ vec3 calculateAtmosphere(vec3 background, vec3 viewVector, vec3 upVector, vec3 s
|
||||
|
||||
#if defined OVERWORLD_SHADER && defined TWILIGHT_FOREST_FLAG
|
||||
low_sun = 1.5;
|
||||
phaseSun = phaseSun * 3.0;
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < iSteps; ++i, position += increment) {
|
||||
|
Reference in New Issue
Block a user