diff --git a/data/shaders/skysphere.hlsl b/data/shaders/skysphere.hlsl index d5e9efa0f..f19bc8e0d 100644 --- a/data/shaders/skysphere.hlsl +++ b/data/shaders/skysphere.hlsl @@ -112,9 +112,9 @@ struct space const float EXPOSURE = 1000000.0f; const float FLICKER_SPEED = 0.2f; - float stars_noise_base = noise(view_direction * SCALE); - float stars_noise = pow(saturate(stars_noise_base), PROBABILITY) * EXPOSURE; - stars_noise * = lerp(0.5, 1.5, noise(mad(view_direction, SCALE * 0.5f, time * FLICKER_SPEED))); + float stars_noise_base = noise(view_direction * SCALE); + float stars_noise = pow(saturate(stars_noise_base), PROBABILITY) * EXPOSURE; + stars_noise *= lerp(0.5, 1.5, noise(mad(view_direction, SCALE * 0.5f, time * FLICKER_SPEED))); float atmos_luminance = dot(atmosphere_color, float3(0.299, 0.587, 0.114)); float intensity = saturate(0.05f - atmos_luminance); diff --git a/runtime/Rendering/Renderer_Passes.cpp b/runtime/Rendering/Renderer_Passes.cpp index 1e1f825eb..14900cd47 100644 --- a/runtime/Rendering/Renderer_Passes.cpp +++ b/runtime/Rendering/Renderer_Passes.cpp @@ -1289,6 +1289,7 @@ namespace Spartan SetGbufferTextures(cmd_list); cmd_list->SetTexture(Renderer_BindingsUav::tex, tex_out); cmd_list->SetTexture(Renderer_BindingsUav::tex2, GetRenderTarget(Renderer_RenderTarget::gbuffer_color)); + cmd_list->SetTexture(Renderer_BindingsUav::tex3, GetRenderTarget(Renderer_RenderTarget::gbuffer_velocity)); cmd_list->SetTexture(Renderer_BindingsSrv::tex, GetStandardTexture(Renderer_StandardTexture::Foam)); cmd_list->SetTexture(Renderer_BindingsSrv::light_diffuse, GetRenderTarget(Renderer_RenderTarget::light_diffuse)); cmd_list->SetTexture(Renderer_BindingsSrv::light_specular, GetRenderTarget(Renderer_RenderTarget::light_specular));