mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-20 16:07:22 +08:00
one more
This commit is contained in:
parent
cf1393c21a
commit
cb8617a2e3
@ -410,6 +410,7 @@ if (gl_FragCoord.x * texelSize.x < RENDER_SCALE.x && gl_FragCoord.y * texelSize
|
|||||||
vec2 lightmaps2 = lmtexcoord.zw;
|
vec2 lightmaps2 = lmtexcoord.zw;
|
||||||
|
|
||||||
|
|
||||||
|
float lightleakfix = clamp(eyeBrightness.y/240.0 + lightmap.y,0.0,1.0);
|
||||||
|
|
||||||
vec3 Indirect_lighting = DoAmbientLighting(avgAmbient, vec3(TORCH_R,TORCH_G,TORCH_B), lightmaps2, skylight);
|
vec3 Indirect_lighting = DoAmbientLighting(avgAmbient, vec3(TORCH_R,TORCH_G,TORCH_B), lightmaps2, skylight);
|
||||||
vec3 Direct_lighting = DoDirectLighting(lightCol.rgb/80.0, Shadows, NdotL, 0.0);
|
vec3 Direct_lighting = DoDirectLighting(lightCol.rgb/80.0, Shadows, NdotL, 0.0);
|
||||||
@ -476,7 +477,7 @@ if (gl_FragCoord.x * texelSize.x < RENDER_SCALE.x && gl_FragCoord.y * texelSize
|
|||||||
|
|
||||||
Reflections_Final = mix(SkyReflection*indoors, Reflections.rgb, Reflections.a);
|
Reflections_Final = mix(SkyReflection*indoors, Reflections.rgb, Reflections.a);
|
||||||
Reflections_Final = mix(FinalColor, Reflections_Final, fresnel * visibilityFactor);
|
Reflections_Final = mix(FinalColor, Reflections_Final, fresnel * visibilityFactor);
|
||||||
Reflections_Final += SunReflection;
|
Reflections_Final += SunReflection * lightleakfix;
|
||||||
|
|
||||||
gl_FragData[0].rgb = Reflections_Final;
|
gl_FragData[0].rgb = Reflections_Final;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user