Commit Graph

812 Commits

Author SHA1 Message Date
SirLynix
104f60f3e7 Add support for GPU skinning (WIP) 2022-08-25 12:59:01 +02:00
SirLynix
507a4f16be Fix compilation 2022-08-17 20:22:49 +02:00
SirLynix
c669c68533 Minor fixes 2022-08-17 20:13:00 +02:00
SirLynix
f1549b934c Graphics: Add DebugDrawer support 2022-08-17 20:12:49 +02:00
Lynix
bff356f7df PhysicallyBasedMaterial: Fix AmbientColor/SpecularColor 2022-07-19 20:03:05 +02:00
Lynix
ad8b46db38 Rename Diffuse to BaseColor 2022-07-19 20:02:01 +02:00
Lynix
75015862dc Fix PBR example 2022-07-18 22:34:14 +02:00
SirLynix
bcdb0f98f0 Move Cook-Torrance functions to a separate module 2022-07-18 22:04:44 +02:00
SirLynix
b2fad27618 Fix basic material and add demo 2022-07-18 22:04:44 +02:00
SirLynix
ccd7885213 Fix compilation 2022-07-18 22:04:44 +02:00
SirLynix
3e21b4bea6 Add PBR rendering (WIP) 2022-07-18 22:04:44 +02:00
SirLynix
6882163693 Update for latest NZSL version 2022-07-16 14:17:04 +02:00
SirLynix
96599d1116 Graphics: Add LinearSlicedSprite class 2022-07-12 08:45:02 +02:00
SirLynix
6203d5f0d1 Graphics/SlicedSprite: Fix GetTopLeftCorner linking 2022-07-12 08:44:43 +02:00
SirLynix
1b678defae Add system graph (wip) 2022-07-02 19:45:50 +02:00
SirLynix
cefa620b20 PhongMaterial: Move TBN computation to fragment shader 2022-06-28 08:56:43 +02:00
SirLynix
9f360f6675 Graphics: Watch dev files in debug for changes 2022-06-28 08:56:14 +02:00
SirLynix
87012a4a52 GraphicalMesh: Handle missing index buffer 2022-06-28 08:55:48 +02:00
SirLynix
813314b5d5 UberShader: Handle case where entry points come from imported modules 2022-06-17 19:07:40 +02:00
SirLynix
6f18a02999 Add fullscreen vertex shader module 2022-06-16 19:26:57 +02:00
SirLynix
62ba4f172b Graphics/GraphicalMesh: Allow to update submeshes 2022-06-16 18:19:48 +02:00
SirLynix
2cc4944f58 Fix compilation 2022-06-16 18:19:19 +02:00
SirLynix
8e8bee7037 Temp fix for NZSL update 2022-06-15 20:26:14 +02:00
SirLynix
c7b6d83bbc Last nzsl version update 2022-06-07 20:18:16 +02:00
SirLynix
510ef8c41e Update shaders to new import syntax 2022-06-05 18:51:46 +02:00
Jérôme Leclercq
03e2801dbe Split engine to packages NazaraUtils and NZSL (#375)
* Move code to NazaraUtils and NZSL packages

* Reorder includes

* Tests: Remove glslang and spirv-tools deps

* Tests: Remove glslang init

* Remove NazaraUtils tests and fix Vector4Test

* Fix Linux compilation

* Update msys2-build.yml

* Fix assimp package

* Update xmake.lua

* Update xmake.lua

* Fix shader compilation on MinGW

* Final fixes

* The final fix 2: the fix strikes back!

* Disable cache on CI

* The return of the fix™️
2022-05-25 19:36:10 +02:00
SirLynix
41712a3f18 Minor fixes 2022-05-08 13:21:20 +02:00
SirLynix
e7274b24e9 Core/Color: Switch formal from RGBA8 to RGBA32F 2022-04-23 16:08:15 +02:00
SirLynix
a10682628d Warning fixes 2022-04-23 12:25:54 +02:00
SirLynix
5a7bd44744 Graphics/MaterialPass: Fix option values in release 2022-04-19 19:16:03 +02:00
SirLynix
c209552f81 Math/Matrix4: Rework "transform matrix" support 2022-04-19 18:32:16 +02:00
SirLynix
cd08d97ac6 Graphics: Fix submesh rendering 2022-04-19 18:32:16 +02:00
SirLynix
ca9854d06a Graphics/FrameGraph: Fix pipeline barrier from output to input 2022-04-08 13:36:07 +02:00
SirLynix
8784ec9b47 Add shader compiler (nzslc) and use it 2022-04-06 09:04:09 +02:00
SirLynix
68d2dfcae6 Move FieldOffsets class to Shader module and remove Utility dependency 2022-04-04 19:22:18 +02:00
SirLynix
9d526741b9 Add proper support for IndexType and uint32 indices 2022-04-04 09:02:00 +02:00
SirLynix
66ff6cfa81 Minor fixes 2022-04-04 08:17:03 +02:00
Lynix
83de0939bb Shader: Fix validation and cast from u32 to i32 2022-04-02 21:20:01 +02:00
SirLynix
f14b10baf4 Graphics/ViewerInstance: fix typo 2022-03-31 13:35:08 +02:00
SirLynix
8146ec251a Shader: Add support for partial sanitization 2022-03-25 12:54:51 +01:00
Jérôme Leclercq
63320fa205 macOS fixes (+ cache deps) 2022-03-20 11:29:39 +01:00
Jérôme Leclercq
615509d1ba Add support for shader hotreloading 2022-03-17 21:36:36 +01:00
Jérôme Leclercq
801b06abfe Shader: Fix module overwriting 2022-03-15 18:35:02 +01:00
Jérôme Leclercq
0e92ef823d Graphics: Use module name to retrieve material shaders 2022-03-15 13:14:43 +01:00
Jérôme Leclercq
6bd9f1a9e4 Add unity build support 2022-03-15 12:44:21 +01:00
Jérôme Leclercq
e40e8eb204 Shader: Change module system (no longer based on path) 2022-03-14 18:30:55 +01:00
Jérôme Leclercq
2f26a1d9c7 Graphics: Move LightData to a shader module and add hotreload in debug 2022-03-14 18:30:55 +01:00
Jérôme Leclercq
db0c1e6e8c Shader: Add module resolver + use modules for engine shaders 2022-03-14 18:30:55 +01:00
Jérôme Leclercq
98bd04e35a Shader/SanitizeVisitor: Fix an issue when double-sanitizing
... with differents parameters (like reducing loops to while, which introduces new variables which would take over existing var indices)
2022-03-14 18:30:55 +01:00
Jérôme Leclercq
a7acf32886 Shader: Replace indices-based option keys by CRC32 2022-03-14 18:30:55 +01:00