Commit Graph

7221 Commits

Author SHA1 Message Date
SirLynix 4749e6ec80 Core: Fix NazaraAssert in release mode 2023-11-02 15:49:51 +01:00
SirLynix 4b8a475bbd Split error macro into two versions (format vs non-formating) to allow format checking at compile-time 2023-11-02 15:18:03 +01:00
SirLynix 8fb53f467b Core/ResourceLoader: Fix format error 2023-11-02 08:27:37 +01:00
SirLynix a803a9cff4 Core: Update UnicodeData 2023-11-02 08:27:10 +01:00
SirLynix 2c6b507e62 Graphics/AbstractViewer: Make Project/Unproject const 2023-10-30 18:36:41 +01:00
SirLynix 9f88d8a7e8 Build: Forcefully disable asan for package not supporting it
wayland, libcurl and ffmpeg
2023-10-28 11:55:24 +02:00
Lynix f707c3b739 xmake: Fix project generation with xmake 2.8.3+
there was an extra add_headerfiles adding .nzsl files as header which doesn't work quite well with add_extrafiles adding the same files
2023-10-27 20:03:59 +02:00
Lynix ebd021955c CI: replace msan by tsan 2023-10-25 20:38:21 +02:00
Lynix 5e9b02e6e9 CI: Fix duplication of jobs 2023-10-25 20:33:04 +02:00
Lynix 89690fb710 CI: Add support for sanitizers 2023-10-25 20:24:25 +02:00
Lynix bb9f907691 Math/Ray: Fix return 0 to return false 2023-10-25 20:22:29 +02:00
Lynix 384bdc0974 Build: Remove useless flags on MinGW 2023-10-25 20:06:37 +02:00
Lynix 77d5fe1d7d Build: replace modes by add sanitizer options 2023-10-25 20:06:20 +02:00
Jérôme Leclercq 7840e54a0d
CI: Update emscripten version 2023-10-21 19:56:16 +02:00
SirLynix 6a9177a109 Graphics/ShadowMapping: Replace bias by a position scale
Inspired by Godot (see https://github.com/godotengine/godot-proposals/issues/4517)
2023-10-21 19:31:07 +02:00
SirLynix b04d7662ce Graphics/SlicedSprite: Fix UV inversion when texture coordinates don't take the whole texture 2023-10-21 19:26:26 +02:00
SirLynix 5bc935c23e Examples/PhysicsPlayground: Add gamma correction 2023-10-21 19:26:26 +02:00
SirLynix a46e61e2e5 Widgets/SimpleWidgetStyles: Fix ImageButtonWidget pressed color 2023-10-21 19:26:26 +02:00
SirLynix da2b49d719 OpenGLRenderer: Fix depthBias constant and slope factors inversion 2023-10-21 19:26:26 +02:00
Jérôme Leclercq 08f6a6bbe6
Update INSTALL.md 2023-10-20 10:20:10 +02:00
SirLynix ca4f1b49ac Graphics/Shaders: Adjust PBR ambient 2023-10-14 16:44:36 +02:00
SirLynix f0d809c22a Graphics/ForwardFramePipeline: Fix depth-prepass 2023-10-14 16:43:58 +02:00
SirLynix f7e9ee9f60 Graphics/Enums: Add GammaCorrection to FramePipelineAllExtraPasses 2023-10-14 16:43:30 +02:00
SirLynix 4fc5f68f3d Graphics/ViewerInstance: Initialize far and near planes 2023-10-14 14:46:49 +02:00
SirLynix d92a307fb8 Graphics/Shader: Add light shadow support to PBR 2023-10-14 14:46:49 +02:00
SirLynix ceedfbabaf Graphics/Shaders: Move shadow factor to a separate file 2023-10-14 14:46:49 +02:00
SirLynix c191cb227b Fix compilation 2023-10-14 14:46:49 +02:00
SirLynix d6a99da2ea Graphics/Graphics: Enable depth-clamp on shadow pass if supported 2023-10-14 14:46:49 +02:00
SirLynix 35414ec5d8 Use Nz::Bitset<> for-range 2023-10-14 14:46:49 +02:00
SirLynix c826b537ab Math/VectorI: Add Apply static method 2023-10-14 14:46:49 +02:00
SirLynix addbb98671 Graphics/Shaders: Add support for DistanceDepth (aka point-light shadow maps) 2023-10-14 14:46:49 +02:00
SirLynix b3a43eb5ed Graphics: Improve directional light stabilization and split 2023-10-14 14:46:49 +02:00
SirLynix 413dd2ce71 Graphics/FrameGraph: Fix parameter type 2023-10-14 14:46:49 +02:00
SirLynix 3aa72029df Examples/Showcase: Rework lights 2023-10-14 14:46:49 +02:00
SirLynix 96504a0a21 Graphics/FramePipeline: Fix UpdateViewerRenderMask name (=> RenderOrder) 2023-10-14 14:46:49 +02:00
SirLynix 9aebb4f745 Graphics: Rework shadowing (add cascaded shadow mapping)
- Add support for per-viewer shadows
- Add cascaded shadow mapping for directional lights (wip)
- Rework the way lights are sent to the shaders (they are now selected once per viewer)
- Fixes PointLight shadow mapping (using a dedicated pass)
- Lights out of frustum for every viewers are no longer processed (wip)
2023-10-14 14:46:49 +02:00
SirLynix a08850946a Graphics/FrameGraph: Fix texture 2D array reuse 2023-10-14 14:46:49 +02:00
SirLynix e10f15243d Graphics: Replace runtime structs offsets by compile-time struct offsets
now that nzsl::FieldOffsets is constexpr this is possible
2023-10-14 14:46:49 +02:00
SirLynix 929b599337 Graphics/ViewerData: Add near and far plane 2023-10-14 14:46:49 +02:00
SirLynix 2a3da7384d Graphics/RenderSystem: Add support for external swapchains 2023-10-13 20:17:31 +02:00
SirLynix 6323cb5372 Examples: Enable gamma correction pass 2023-10-13 19:56:07 +02:00
SirLynix 55b4e47582 Graphics/MaterialInstanceLoader: Add sRGB parameter 2023-10-13 19:56:07 +02:00
SirLynix 9066fe78bb Graphics/Camera: Allow to enable/disable passes without re-specifying 2023-10-13 19:56:07 +02:00
SirLynix c2e47501e4 Graphics: Embed new NZSL modules 2023-10-13 19:56:07 +02:00
SirLynix d40b8af68d Graphics: Add gamma correction 2023-10-13 19:56:07 +02:00
SirLynix 041be74b9d Color: Add sRGB <=> Linear conversion methods 2023-10-13 19:56:07 +02:00
SirLynix b09b4d2419 Graphics: Add a way to set which passes are enabled in a frame pipeline
This will be replaced soon with a better system
2023-10-08 23:44:24 +02:00
SirLynix 50c90fd725 Renderer/DebugDrawer: Add DrawBoxCorners 2023-10-08 23:38:03 +02:00
SirLynix 98fe974fc8 Fix some Vulkan errors
Depth buffers were not tagged as output on passes writing on it
Handle holes in clear values
2023-10-08 13:47:15 +02:00
SirLynix 078542e44b VulkanRenderer: Improve performance of validation message filtering 2023-10-08 13:25:42 +02:00