ocean: remove sky hack

This commit is contained in:
Turanszki Janos
2021-06-27 10:06:17 +02:00
parent bc30638c83
commit 4e5fdd1f27
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -35,18 +35,15 @@ float4 main(PSIn input) : SV_TARGET
surface.pixel = input.pos.xy;
float depth = input.pos.z;
TiledLighting(surface, lighting);
float2 refUV = float2(1, -1)*input.ReflectionMapSamplingPos.xy / input.ReflectionMapSamplingPos.w * 0.5f + 0.5f;
float2 ScreenCoord = surface.pixel * g_xFrame_InternalResolution_rcp;
//REFLECTION
float2 RefTex = float2(1, -1)*input.ReflectionMapSamplingPos.xy / input.ReflectionMapSamplingPos.w / 2.0f + 0.5f;
float4 reflectiveColor = texture_reflection.SampleLevel(sampler_linear_mirror, RefTex + surface.N.xz * 0.04f, 0);
float NdotV = abs(dot(surface.N, surface.V));
float ramp = pow(abs(1.0f / (1.0f + NdotV)), 16);
reflectiveColor.rgb = lerp(float3(0.38f, 0.45f, 0.56f), reflectiveColor.rgb, ramp); // skycolor hack
lighting.indirect.specular += reflectiveColor.rgb * surface.F;
TiledLighting(surface, lighting);
lighting.indirect.specular = reflectiveColor.rgb * surface.F;
// WATER REFRACTION
float lineardepth = input.pos.w;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates, breaking compatibility changes
const int minor = 56;
// minor bug fixes, alterations, refactors, updates
const int revision = 50;
const int revision = 51;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);