Skip to content

Commit

Permalink
wip use RG32Float as velocity texture format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelarius committed Jul 5, 2024
1 parent 1b9fc57 commit 6c6150e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pt/deferred_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace
const WGPUTextureFormat DEPTH_TEXTURE_FORMAT = WGPUTextureFormat_Depth32Float;
const WGPUTextureFormat ALBEDO_TEXTURE_FORMAT = WGPUTextureFormat_BGRA8Unorm;
const WGPUTextureFormat NORMAL_TEXTURE_FORMAT = WGPUTextureFormat_RGBA16Float;
const WGPUTextureFormat VELOCITY_TEXTURE_FORMAT = WGPUTextureFormat_RG16Float;
const WGPUTextureFormat VELOCITY_TEXTURE_FORMAT = WGPUTextureFormat_RG32Float;

struct TimestampsLayout
{
Expand Down Expand Up @@ -956,7 +956,7 @@ DeferredRenderer::GbufferPass::GbufferPass(
{
.nextInChain = nullptr,
.format = VELOCITY_TEXTURE_FORMAT,
.blend = &blendState,
.blend = nullptr,
.writeMask = WGPUColorWriteMask_All,
}};

Expand Down

0 comments on commit 6c6150e

Please sign in to comment.