Commit Graph

155 Commits

Author SHA1 Message Date
mafiesto4 bc36168318 Optimize Animated Model rendering with hardware instancing
All models are using the same global buffer for skinned bones which allows to share shader binding for instancing.
Refactor draw call for batching skinned mesh draws.
Remove `SkinnedMeshDrawData` and merge it into `AnimatedModel` internals.
2026-06-15 17:59:41 +02:00
mafiesto4 2fc95bdf57 Merge remote-tracking branch 'origin/master' into 1.12
# Conflicts:
#	Content/Editor/MaterialTemplates/Deformable.shader
#	Flax.flaxproj
#	Source/Engine/Content/Content.h
#	Source/Engine/Serialization/JsonTools.cpp
2026-04-01 17:14:21 +02:00
mafiesto4 e624e1ba69 Fix missing Custom Global Code code generation in Defines stage 2026-03-26 14:14:15 +01:00
mafiesto4 a96c7e631e Fix some material nodes on WebGPU 2026-03-03 10:29:29 +01:00
mafiesto4 b191d3918e Fix rendering various visuals on WebGPU 2026-03-02 20:36:33 +01:00
mafiesto4 f045b5b6b6 Merge remote-tracking branch 'origin/master' into 1.12
# Conflicts:
#	Content/Editor/Camera/M_Camera.flax
#	Content/Editor/CubeTexturePreviewMaterial.flax
#	Content/Editor/DebugMaterials/DDGIDebugProbes.flax
#	Content/Editor/DebugMaterials/SingleColor/Decal.flax
#	Content/Editor/DebugMaterials/SingleColor/Particle.flax
#	Content/Editor/DebugMaterials/SingleColor/Surface.flax
#	Content/Editor/DebugMaterials/SingleColor/SurfaceAdditive.flax
#	Content/Editor/DebugMaterials/SingleColor/Terrain.flax
#	Content/Editor/DefaultFontMaterial.flax
#	Content/Editor/Gizmo/FoliageBrushMaterial.flax
#	Content/Editor/Gizmo/Material.flax
#	Content/Editor/Gizmo/MaterialWire.flax
#	Content/Editor/Gizmo/SelectionOutlineMaterial.flax
#	Content/Editor/Gizmo/VertexColorsPreviewMaterial.flax
#	Content/Editor/Highlight Material.flax
#	Content/Editor/Icons/IconsMaterial.flax
#	Content/Editor/IesProfilePreviewMaterial.flax
#	Content/Editor/MaterialTemplates/Features/ForwardShading.hlsl
#	Content/Editor/Particles/Particle Material Color.flax
#	Content/Editor/Particles/Smoke Material.flax
#	Content/Editor/SpriteMaterial.flax
#	Content/Editor/Terrain/Circle Brush Material.flax
#	Content/Editor/Terrain/Highlight Terrain Material.flax
#	Content/Editor/TexturePreviewMaterial.flax
#	Content/Editor/Wires Debug Material.flax
#	Content/Engine/DefaultDeformableMaterial.flax
#	Content/Engine/DefaultMaterial.flax
#	Content/Engine/DefaultRadialMenu.flax
#	Content/Engine/DefaultTerrainMaterial.flax
#	Content/Engine/SingleColorMaterial.flax
#	Content/Engine/SkyboxMaterial.flax
#	Flax.flaxproj
#	Source/Engine/Graphics/Materials/MaterialShader.h
#	Source/Engine/Graphics/Materials/MaterialShaderFeatures.cpp
#	Source/Engine/Renderer/RenderList.h
#	Source/Shaders/Reflections.shader
#	Source/Shaders/ReflectionsCommon.hlsl
#	Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs
2026-02-11 00:20:38 +01:00
mafiesto4 0f6c1aea62 Fix various material nodes to work on D3D12 2026-02-09 18:40:39 +01:00
mafiesto4 bbb5354e9c Fix potential crash on out of bounds access 2026-02-03 16:32:34 +01:00
mafiesto4 2ab8b9dd55 Add Texture Group option for triplanar and procedural samplers
#3904
2026-02-01 23:11:44 +01:00
mafiesto4 69c5d65318 Add Linear to sRGB and sRGB to Linear nodes to materials 2026-01-12 15:54:52 +01:00
mafiesto4 0c887cd29e Use fix from #3830 in particle and anim graphs too 2025-12-13 23:11:01 +01:00
Alex Ray 64cd898a65 Bypassing Call Logic in Editor Preview 2025-11-27 18:09:11 +01:00
mafiesto4 2ca435a414 Fix shader graph assets loading to wait for async task
#3802
2025-11-18 16:11:31 +01:00
mafiesto4 636a1ff930 Fix material shader generation when material layer fails to load 2025-11-13 23:04:24 +01:00
mafiesto4 39803ce6b2 Add **render layer mask to decals**
#967 #3080
2025-10-07 18:23:03 +02:00
mafiesto4 2f1f380062 Add new scene textures SceneStencil and ObjectLayer to sample Stencil buffer 2025-10-07 18:10:14 +02:00
mafiesto4 c46e1164d6 Add hot-reload support for material feature template sources on material generation 2025-09-30 15:45:45 +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 857b0c5ac3 Fix various graphics issues detected by Vulkan Validation Layers on Android 2025-09-06 23:32:54 +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
mafiesto4 bf9ca14deb Fix sampling textures in decals to use custom mip-level
#3599
2025-08-14 22:14:03 +02:00
mafiesto4 1087bd2445 Fix #3342 to properly place new param in Constant Buffer
#3299
2025-08-14 11:53:25 +02:00
mafiesto4 5e19a9729b Merge branch 'add-scaled-time-node' of https://github.com/Tryibion/FlaxEngine into Tryibion-add-scaled-time-node 2025-08-14 11:37:09 +02:00
mafiesto4 2dd34b288c Merge remote-tracking branch 'origin/master' into 1.11 2025-07-04 12:05:19 +02:00
mafiesto4 85aed8c4d7 Fix using material VS to PS node directly within material input 2025-07-03 20:32:41 +02:00
mafiesto4 bdd7bae459 Add new Custom Lit shading model for custom lighting in materials (eg. Cel Shading) 2025-06-29 13:51:59 +02:00
mafiesto4 9c3fd052cd Remove copyright year from source files and update to 2025 2025-04-07 19:22:21 +02:00
Tryibion 9b6feb9367 Add Scaled Time to Material Time node. 2025-04-07 10:02:20 -05:00
mafiesto4 54f73fe35a Fix regression in new triplanar to still support scale as Float3 for per-axis scaling 2025-03-28 11:15:14 +01:00
mafiesto4 7f8729451c Fix regression/crash in new World Triplanar node
#3214
2025-03-09 20:39:13 +01:00
mafiesto4 3643ec7a58 Fix crash when loading old triplanar node 2025-03-09 09:09:45 +01:00
Muzz 7885590593 Merge branch 'Muzz-Triplanar-Features' into 1.10 2025-02-28 14:56:45 +01:00
mafiesto4 a6fb651ff4 Merge remote-tracking branch 'origin/master' into 1.10
# Conflicts:
#	Source/Engine/Graphics/Materials/MaterialShader.h
2025-02-18 09:19:59 +01:00
mafiesto4 58090aa6d6 Fix triplanar texture mapping when using Large Worlds
#3001
2025-02-11 00:31:37 +01:00
mafiesto4 a1c46d2e6e Add support for up to 4 texture channels when importing meshes
#2667
2025-01-11 22:40:20 +01:00
mafiesto4 18dc475f40 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Engine/UI/GUI/Common/Button.cs
2024-09-23 14:11:05 +02:00
mafiesto4 be395304ec Fix Pre-Skinned Normal and Position when accessed in Pixel Shader
#2549
2024-09-19 10:11:49 +02:00
mafiesto4 9daddccbed Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Editor/Modules/ContentDatabaseModule.cs
#	Source/Editor/Surface/SurfaceUtils.cs
#	Source/Editor/Windows/Assets/MaterialInstanceWindow.cs
#	Source/Engine/Foliage/Foliage.cpp
#	Source/Engine/Graphics/Models/MeshBase.h
#	Source/Engine/Tools/MaterialGenerator/MaterialGenerator.Textures.cpp
2024-09-12 13:38:20 +02:00
mafiesto4 21ed4a2371 Fix Flipbook node bug
#2690
2024-09-10 12:13:28 +02:00
mafiesto4 c62575612b Fix missing parameters metadata on nested material layers
#731
2024-09-09 12:34:18 +02:00
mafiesto4 591f0ee6a9 Fix regressions after rendering changes 2024-08-23 00:26:42 +02:00
mafiesto4 bc313c8630 Merge remote-tracking branch 'origin/master' into 1.9 2024-08-05 20:00:39 +02:00
mafiesto4 23fcfb4eb2 Code cleanup
#2717
2024-08-05 19:44:06 +02:00
mafiesto4 a49fc1c5d1 Merge branch 'forward-software-refl' of https://github.com/HydrogenC/FlaxEngine into HydrogenC-forward-software-refl 2024-08-05 19:04:28 +02:00
mafiesto4 979ab9f6ee Fix World Triplanar Texture node to support displacement and float4 value 2024-08-05 14:37:31 +02:00
mafiesto4 e44e44d317 Merge remote-tracking branch 'origin/master' into 1.9 2024-08-05 11:08:51 +02:00
mafiesto4 6e60a988a0 Fix node archetype 2024-07-19 00:54:05 +02:00
mafiesto4 53ca33f301 Add option to sample Global SDF from higher cascade 2024-07-19 00:30:06 +02:00
Olly Rybak 751c1f20dc Returns lightmap UV correctly with no errors 2024-07-03 18:35:32 +10:00