Commit Graph

862 Commits

Author SHA1 Message Date
SirLynix
a741672a51 Allow error message to be formatted 2023-08-15 01:10:01 +02:00
SirLynix
a6fbf3c622 Fix previous commit 2023-08-08 18:26:53 +02:00
SirLynix
cf6fdf258f Graphics: Add new functions to get default material types/presets 2023-08-08 18:17:58 +02:00
SirLynix
fd73d62adf Graphics/RenderSystem: Fix skeleton not being used when added after graphics component 2023-08-06 10:14:01 +02:00
SirLynix
62adfdd26c Graphics: Fix warning 2023-08-04 12:24:29 +02:00
SirLynix
816d9d1174 Allow to setup/override module configuration from commandline 2023-07-30 12:44:43 +02:00
SirLynix
4db5b59ec9 Renderer: Refactor transient resources (allow access at any time) 2023-07-21 12:12:10 +02:00
SirLynix
cbe055d412 Core/AppFilesystemComponent: Use hash as key for resource parameters 2023-07-17 19:07:45 +02:00
SirLynix
6308553886 Graphics/TextSprite: Fix AABB when scale is used 2023-07-14 14:18:44 +02:00
SirLynix
4f3542356d Graphics/RenderSystem: Handle visibility immediatly
This fixes an issue when rendermask/scissor box is updated right after making an entity visible (e.g. widgets)
2023-07-02 14:04:00 +02:00
SirLynix
fff4029047 Graphics/ForwardFramePipeline: Fix crash when removing a viewer 2023-07-02 14:02:11 +02:00
SirLynix
b66c50a5da Graphics/ForwardFramePipeline: Fix light frustum culling 2023-06-28 17:44:34 +02:00
SirLynix
96618cbb5b Fix some warnings 2023-06-27 19:31:24 +02:00
SirLynix
b01ee18eaf Graphics/ForwardFramePipeline: Fix frustum test 2023-06-25 10:02:20 +02:00
SirLynix
6778d6ea33 Fix warning 2023-06-21 19:50:09 +02:00
SirLynix
caf8446707 Math: Remove Algorithm file and move string functions to StringExt 2023-06-06 08:59:58 +02:00
SirLynix
b9c1559d97 Random code cleanup 2023-06-05 18:05:16 +02:00
Jérôme Leclercq
1a55b550fb Improve math module (#396)
* Improve math module

- Mark almost everything constexpr
- Equality (a == b) is now exact, down to the bit level. If you want approximate equality use the new ApproxEqual method/static method
- Rename Nz::Extend to Nz::Extent
- Removed Make[] and Set[] methods in favor of their static counterpart and operator=
2023-06-02 22:30:51 +02:00
SirLynix
2886a2e0c0 Rename EnumMap to EnumArray after nazarautils update 2023-05-30 13:49:19 +02:00
SirLynix
cff918f6a3 Graphics/ForwardFramePipeline: Fix unregister + register the same renderable pointer not invalidating rendering
This can happen with ECS components which are mostly stable in memory, when destroying a graphics entity and recreating it (even with a different mesh) its pointer may not change due to memory recycling, especially on simple scenes.

A UInt8 generation counter helps prevents this
2023-05-30 13:34:41 +02:00
SirLynix
0c7efa05e2 Fix a bunch of warnings 2023-05-30 12:34:38 +02:00
SirLynix
dfe6b2ddcf Make use of the new EnumMap class 2023-05-30 12:32:37 +02:00
SirLynix
14c9c7fffd Graphics/GuillotineTextureAtlas: Disable mipmaps for now 2023-05-15 19:02:17 +02:00
SirLynix
1d32af53c5 Renderer: Add mipmaps generation support 2023-05-14 18:55:41 +02:00
SirLynix
e1d38abc04 Graphics/ForwardFramePipeline: Fix crash with multiple viewers 2023-05-12 19:14:18 +02:00
SirLynix
bbbd3f88c1 Core: Add DisabledComponent (to temporary disable an entity) 2023-05-07 22:43:48 +02:00
SirLynix
0c64c3d68b Graphics/ForwardFramePipeline: Use camera viewport 2023-05-01 18:36:29 +02:00
SirLynix
a578b061b4 Graphics/FrameGraph: Fix bug introduced in 97f1c2c56c 2023-05-01 17:05:07 +02:00
SirLynix
97f1c2c56c Refactor xmake.lua and make some warnings as errors 2023-04-30 21:11:30 +02:00
SirLynix
2f5db80183 Remove empty source files 2023-04-11 13:51:11 +02:00
SirLynix
2c6191987f Graphics/PhongMaterial: Add option to disable shadow mapping (and disable it by default on web) 2023-04-10 17:25:18 +02:00
SirLynix
f952c64642 Graphics/BasicMaterial: Fix compilation error when no UV are available ...
... but textures are mapped
2023-04-10 17:12:40 +02:00
SirLynix
9b4d297c04 Update includes for new NazaraUtils version 2023-03-19 13:01:56 +01:00
SirLynix
c700a7e45d Graphics/ForwardFramePipeline: Fix shadow maps not showing up until scene update 2023-03-14 18:08:05 +01:00
SirLynix
88b6ff63b7 Graphics/AbstractViewer: Add Project & Unproject methods 2023-03-14 18:07:03 +01:00
SirLynix
780e7e2def Graphics/Phong: Set default AmbientColor to white 2023-03-10 13:27:47 +01:00
SirLynix
3edffa8399 Graphics/MaterialInstance: Add UpdatePassesStates 2023-03-09 17:51:03 +01:00
SirLynix
55f2937678 Graphics/GraphicalMesh: Add AABB 2023-03-09 17:50:38 +01:00
SirLynix
5e6a20f479 Fix text outline render order 2023-02-26 13:46:19 +01:00
SirLynix
2e8ea0e887 Graphics/TextSprite: Fix outline showing up over glyphs 2023-02-22 19:12:15 +01:00
SirLynix
5833ce573d Graphics: Switch glyph atlases to R8 instead of A8
A8 can't be supported efficiently on API lacking texture swizzle support (DX, WebGL, WebGPU), so we swizzle in the shader instead
2023-02-22 19:11:41 +01:00
SirLynix
e96204a2ab Graphics/AbstractViewer: Set virtual destructor 2023-02-15 16:33:02 +01:00
SirLynix
5567a39a65 Fix widgets 2023-02-02 20:34:25 +01:00
SirLynix
292ca60592 WIP 2023-02-02 20:34:25 +01:00
SirLynix
c144435d4a Graphics: Set default sprites size to the base color texture size, if any 2023-02-02 13:24:22 +01:00
SirLynix
8bc953240d Core/FilesystemComponent: Add a way to fix indices accross DLL boundaries 2023-01-29 18:13:35 +01:00
SirLynix
d27ca55943 Core/AppFilesystemComponent: Add support for default resource parameters 2023-01-28 11:27:49 +01:00
SirLynix
c0024dfa34 Fix warnings 2023-01-28 11:14:02 +01:00
SirLynix
f98cbcd00a Copyright year update 2023-01-22 17:41:18 +01:00
SirLynix
d3c05c9ade Update globalheaders and fix includes/header guards 2023-01-22 12:37:58 +01:00