diff --git a/Content/Editor/Primitives/Capsule.flax b/Content/Editor/Primitives/Capsule.flax index 913a96216..aac4785b9 100644 --- a/Content/Editor/Primitives/Capsule.flax +++ b/Content/Editor/Primitives/Capsule.flax @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a65e29fe6fb86f08fa79ad65da87db1f050e60edd3e881837d81a9933a067230 +oid sha256:100fe101c4f754cc1f21041d7ab44a41607cafd65ce5f8588a341740f7498f24 size 30396 diff --git a/Content/Editor/Primitives/Cone.flax b/Content/Editor/Primitives/Cone.flax index adf83905b..881301bf1 100644 --- a/Content/Editor/Primitives/Cone.flax +++ b/Content/Editor/Primitives/Cone.flax @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5f4e87190b79f532ca04327064cc5bf05312fb77ba267d6a3df213252983f23e -size 11217 +oid sha256:ee9fdd8526a050bfd61cba141fb057f5e4661f4fe2d4fcf77021d49141c8a3a4 +size 27201 diff --git a/Content/Editor/Primitives/Cube.flax b/Content/Editor/Primitives/Cube.flax index 978850c44..ea492f271 100644 --- a/Content/Editor/Primitives/Cube.flax +++ b/Content/Editor/Primitives/Cube.flax @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4f62d95192ce88e2871f8efb9ea716aed6954d1fe3628ac5c923f25236d42397 +oid sha256:9032ba0a951268901b3b711b840c22108b2db6063330bf597ad309101324e5e6 size 4981 diff --git a/Content/Shaders/GI/DDGI.flax b/Content/Shaders/GI/DDGI.flax index 7165ef199..9e45adb50 100644 --- a/Content/Shaders/GI/DDGI.flax +++ b/Content/Shaders/GI/DDGI.flax @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f45912a120c8ab03e82711241402a0116b54468be911a382e2a0b5d8ee42c379 -size 23626 +oid sha256:f3816b8fdd088656e385f46832c2719c77d386d12ec14ac3d0ac6df017b2c7e4 +size 23668 diff --git a/Content/Shaders/GlobalSignDistanceField.flax b/Content/Shaders/GlobalSignDistanceField.flax index 5fa127a4c..ec1d39d8f 100644 --- a/Content/Shaders/GlobalSignDistanceField.flax +++ b/Content/Shaders/GlobalSignDistanceField.flax @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fd41f8812cdfb19fa5699ac72e7f29e1d51facd9ea252e97df07741594ed6c48 -size 10691 +oid sha256:e14a67948d93abb8ef6124b39fdb7b1bc682e1fdf5341ce6255eefe2606a2dfc +size 11787 diff --git a/Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp b/Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp index 28227d259..9f5377afd 100644 --- a/Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp +++ b/Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp @@ -27,6 +27,7 @@ #define GLOBAL_SDF_MIP_GROUP_SIZE 4 #define GLOBAL_SDF_MIP_FLOODS 5 // Amount of flood fill passes for mip. #define GLOBAL_SDF_DEBUG_CHUNKS 0 +#define GLOBAL_SDF_DEBUG_FORCE_REDRAW 0 // Forces to redraw all SDF cascades every frame #define GLOBAL_SDF_ACTOR_IS_STATIC(actor) ((actor->GetStaticFlags() & (StaticFlags::Lightmap | StaticFlags::Transform)) == (int32)(StaticFlags::Lightmap | StaticFlags::Transform)) static_assert(GLOBAL_SDF_RASTERIZE_MODEL_MAX_COUNT % 4 == 0, "Must be multiple of 4 due to data packing for GPU constant buffer."); @@ -482,7 +483,7 @@ bool GlobalSignDistanceFieldPass::Render(RenderContext& renderContext, GPUContex // Rasterize world geometry into Global SDF renderContext.View.Pass = DrawPass::GlobalSDF; uint32 viewMask = renderContext.View.RenderLayersMask; - const bool useCache = !updated; + const bool useCache = !updated && !GLOBAL_SDF_DEBUG_FORCE_REDRAW; static_assert(GLOBAL_SDF_RASTERIZE_CHUNK_SIZE % GLOBAL_SDF_RASTERIZE_GROUP_SIZE == 0, "Invalid chunk size for Global SDF rasterization group size."); const int32 rasterizeChunks = Math::CeilToInt((float)resolution / (float)GLOBAL_SDF_RASTERIZE_CHUNK_SIZE); auto& chunks = ChunksCache;