implement filament renderer as a native system#45
Merged
Conversation
Phase 1 - Foundation: - Add Filament v1.69.2 pre-built SDK (macOS arm64) to third_party - Create FilamentContext: manages Engine, SwapChain, Renderer, View, Scene, Camera - Create FilamentRenderer: high-level BeginFrame/EndFrame, camera, viewport API - Create FilamentNativeWindow.mm: Obj-C++ bridge for GLFW -> NSView* extraction - Update CMakeLists.txt: 20 Filament static libs, Apple frameworks, .mm handling - Fix pre-existing AnimatorAssetLoader clock_cast compatibility issue Supported backends: Metal (default macOS), Vulkan, OpenGL 4.1+
- MaterialSystem: runtime PBR material compilation via filamat (DefaultLit with baseColor/metallic/roughness/reflectance/emissive, DefaultUnlit for flat shading) - MeshSystem: creates Filament VertexBuffer/IndexBuffer/Renderable from engine MeshData with snorm16 tangent frame packing - LightSystem: directional (SUN) and point lights via LightManager - MeshData: backend-agnostic mesh descriptor with primitive factories (Box, Sphere, Plane, Cylinder) - MaterialHandle: opaque wrapper hiding filament::MaterialInstance - Updated ServiceLocator with MaterialSystem/MeshSystem/LightSystem - Updated Application to own and init/shutdown new systems - Fixed FilamentNativeWindow.mm: return CAMetalLayer for Metal backend - Fixed PhysicsSystem.cpp: removed incomplete type delete warning - Sandbox renders PBR scene: red cube, blue sphere, gray ground, sun
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
Signed-off-by: Rafael Aragao Morais <ram.morais50@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.