Skip to content

Commit

Permalink
chore: improve cubemap inferrence
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum committed Nov 25, 2024
1 parent c920ab2 commit 85f2c18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ float3 GetSamplingVector(uint3 ThreadID, in RWTexture2DArray<float4> OutputTextu
float mipLevel = 0.0;

#if !defined(REFLECTIONS)
float k = 1.5;
float k = 2;
float brightness = k;
#endif

Expand Down Expand Up @@ -92,7 +92,7 @@ float3 GetSamplingVector(uint3 ThreadID, in RWTexture2DArray<float4> OutputTextu
#if defined(REFLECTIONS)
color.rgb = lerp(color.rgb, Color::GammaToLinear(ReflectionsTexture.SampleLevel(LinearSampler, uv, 0).rgb), saturate(mipLevel / 8.0));
#else
color.rgb = lerp(color.rgb, color.rgb * Color::GammaToLinear(DefaultCubemap.SampleLevel(LinearSampler, uv, 0).x) * 2, saturate(mipLevel / 8.0));
color.rgb = lerp(color.rgb, color.rgb * DefaultCubemap.SampleLevel(LinearSampler, uv, 0), saturate(mipLevel / 8.0));
#endif

color.rgb = Color::LinearToGamma(color.rgb);
Expand Down

0 comments on commit 85f2c18

Please sign in to comment.