Commit Graph

337 Commits

Author SHA1 Message Date
mafiesto4 d2a03b90ec Add another utility 2026-03-12 22:50:54 +01:00
mafiesto4 88587fb6a4 Add utility function to GUICommon.hlsl for MSDF fonts sampling in shaders
#3944
2026-03-12 20:24:03 +01:00
mafiesto4 fc7abbf541 Merge branch 'flax-msdf-font' of https://github.com/fibref/FlaxEngine into fibref-flax-msdf-font 2026-03-12 16:25:55 +01:00
mafiesto4 e736048fab Ensure probe count is never out of bounds
#3963
2026-03-12 08:41:06 +01:00
mafiesto4 6d9d606085 Add UNITS_TO_METERS_SCALE to shader sources for world units scale
#3907
2026-03-11 23:56:47 +01:00
mafiesto4 a94b9f9426 Merge branch 'fix-inverse-squ-light' of https://github.com/Tryibion/FlaxEngine into Tryibion-fix-inverse-squ-light 2026-03-11 23:35:19 +01:00
mafiesto4 22c88eb59d Fix blocky terrain SDF
#3975
2026-03-11 19:25:18 +01:00
fibref 0f49503abd add native MSDF font support for Render2D 2026-02-19 15:41:48 +08:00
mafiesto4 ef551c36ae Fix Forward shading to match Deferred in fog and reflections rendering
#3717
2026-02-11 00:06:44 +01:00
mafiesto4 e851efa0a8 Fix applying AO twice for lighting in Forward shading and use correct specular occlusion on reflections
#3717
2026-02-10 22:50:32 +01:00
Tryibion 5d9d64e6e7 Fix missing scale for inverse squared setting for lights. 2026-01-27 22:10:22 -06:00
mafiesto4 788d8660b8 Fix transparent materials flickering without DDGI 2026-01-12 20:47:03 +01:00
mafiesto4 32e725392b Optimize inactive probes update in DDGI with faster Jump Flood instead of Flood Fill 2026-01-06 00:01:17 +01:00
mafiesto4 cf3bcc4549 Fix DDGI flickering on floors aligned to world axes
Apply a small bias to sample location and dither it a bit to smooth out.
2026-01-05 17:19:16 +01:00
mafiesto4 11ea889fa9 Refactor DDGI fallback radiance to use alpha for blending between fixed color and color at snapped location of the last cascade
This means artists don't need to adjust the value anymore as it can cover vista geometry with GI at last cascade borders.
2026-01-05 16:22:00 +01:00
mafiesto4 c5a28a5734 Refactor DDGI irradiance sampling when nearby probe is missing to use precomputed fallback probes
Also, insert fallback/dummy probes when there is no SDF nearby to have lighting in all cases.
This both improves sampling performance and fixes issues when sampling in areas far away from valid GI.
2026-01-05 12:04:02 +01:00
mafiesto4 b24d98df9e Fix DDGI cascades blending to be smoother 2026-01-03 00:48:36 +01:00
mafiesto4 37df16a3e4 Refactor DDGI irradiance filtering for smoother and more accurate lighting 2025-12-31 00:19:51 +01:00
mafiesto4 c2c92eba82 Adjust 0e76585709 to not affect depth 2025-12-19 00:08:24 +01:00
mafiesto4 0e76585709 Fix DDGI iradiance to use debanding by applying quantization error to reduce yellowish artifacts due to R11G11B10 format 2025-12-16 23:56:45 +01:00
mafiesto4 8bf51512ac Fix Global SDF trace loop limit down to prevent too long shader execution in extreme scenarios 2025-12-16 16:08:20 +01:00
mafiesto4 779e8e7169 Optimize Global SDF tracing to not scale steps nearby geometry and properly trace mip cascade 2025-12-16 16:07:46 +01:00
mafiesto4 3c8b80152b Fix sampling Global SDF gradient at lower border 2025-12-16 16:05:49 +01:00
mafiesto4 f280412ef4 Remove NeedsHitNormal/HitNormal feature from GlobalSDFTrace to simplify code 2025-12-16 16:04:56 +01:00
mafiesto4 7c91c03adf Merge remote-tracking branch 'origin/master' 2025-11-20 06:26:09 -08:00
mafiesto4 caa902ea9b Fix shader compilation without HLSL 2021 on Vulkan 2025-11-20 13:47:23 +01:00
mafiesto4 a1cb7dcbe7 Fix GPU BVH shader compilation for macOS/iOS 2025-11-20 13:47:11 +01:00
mafiesto4 032f698c7b Fix shader warning 2025-11-19 23:29:28 -08:00
mafiesto4 e2aaef9b88 Fix shader warning 2025-11-19 08:27:33 -08:00
mafiesto4 e03d0f3322 Fix shader compilation with HLSL 2021 2025-11-18 12:09:20 +01:00
mafiesto4 f91c33e17c Another fix for shader compilation on Vulkan 2025-11-15 23:42:03 +01:00
mafiesto4 ac3b2c0ef2 Fix shader warning 2025-11-15 22:13:22 +01:00
mafiesto4 69173803bf Fix shader warning on Vulkan 2025-11-13 22:09:11 +01:00
mafiesto4 91ee9f5e05 Refactor Mesh SDF generation on GPU to use raytracing for more precise results 2025-11-13 22:05:23 +01:00
mafiesto4 59643b2fb9 Add improved local-light shadow raytracing by starting ray from light, not surface 2025-11-06 21:01:02 +01:00
mafiesto4 387c3ea2f4 Add better debug view for Global SDF to include surface hit normal 2025-11-04 13:27:47 +01:00
mafiesto4 85b134b7be Add improved Global SDF quality and precision of rasterization 2025-11-04 13:27:21 +01:00
mafiesto4 5d17d2509d Fix Global SDF gradient at borders 2025-11-04 12:42:08 +01:00
mafiesto4 05a8c841da Fix color grading lut to be refreshed when shader gets reloaded 2025-10-28 23:19:51 +01:00
mafiesto4 8467315a1e Fix motion vector stability on Large World origin changes
#3745
2025-10-20 18:08:54 +02:00
mafiesto4 361fc3ecfb Add stencil buffer usage with object layer information
#3080 #967
2025-10-07 18:07:23 +02:00
mafiesto4 823ed247d2 Merge remote-tracking branch 'origin/master' into 1.11
# Conflicts:
#	Source/Engine/Level/Actors/Sky.cpp
2025-10-03 22:37:32 +02:00
mafiesto4 7e1ac5e167 Fix sky rendering in ortho and oblique projection
#3448
2025-10-02 18:48:14 +02:00
mafiesto4 2a5898c1de Fix regression from #3342 to use existing time as unscaled to match previous content 2025-09-30 15:45:24 +02:00
mafiesto4 0848f1fa83 Refactor specular lighting to properly map specular as reflectance in BRDF
Reference: https://google.github.io/filament/Filament.md.html

#1492
2025-09-30 15:43:55 +02:00
mafiesto4 87e2c4c4d5 Merge remote-tracking branch 'origin/master' into 1.11
# Conflicts:
#	Content/Editor/DebugMaterials/DDGIDebugProbes.flax
#	Source/Editor/Windows/OutputLogWindow.cs
#	Source/Engine/Level/Actor.cpp
2025-09-24 18:18:27 +02:00
mafiesto4 92f4327fc2 Fix missing volumetric fog affecting transparent materials
#3436
2025-09-20 00:13:52 +02:00
mafiesto4 c57e128ff1 Merge remote-tracking branch 'origin/master' into 1.11
# Conflicts:
#	Source/Engine/Level/Scene/SceneRendering.cpp
#	Source/Engine/Physics/Colliders/Collider.cpp
#	Source/Engine/Physics/Colliders/Collider.h
2025-09-02 22:23:45 +02:00
mafiesto4 bcedb05a2c Fix regression from 6a8553a277 on local lights 2025-08-26 17:55:32 +02:00
mafiesto4 826009c1b4 Merge remote-tracking branch 'origin/master' into 1.11
# Conflicts:
#	Content/Editor/DebugMaterials/DDGIDebugProbes.flax
#	Source/Engine/Scripting/Scripting.cpp
2025-08-25 23:48:08 +02:00