Closed liuxi150 closed 3 months ago
The changes enhance GLTF loading and processing capabilities in several key classes. The LoaderImpl
class now requires an Engine
parameter and includes additional methods for processing lights, cameras, materials, animations, textures, and geometry. New classes GeometryProxy
and MaterialProxy
manage geometry and material properties. Utility methods in GLTFHelper
have been added. These modifications improve how scene elements are handled and displayed.
File | Change Summary |
---|---|
plugin-packages/model/src/gltf/loader-impl.ts |
Added Engine parameters to methods and new methods for processing lights, cameras, materials, animations, and textures. Enhanced GLTF loading and scene handling. |
plugin-packages/model/src/gltf/protocol.ts |
Added imports and declarations for GLTF-related entities, enhancing the processing of lights, cameras, materials, animations, and textures. |
sequenceDiagram
participant User
participant LoaderImpl
participant Engine
User->>LoaderImpl: Initialize with Engine
LoaderImpl->>Engine: Pass Engine parameter
User->>LoaderImpl: Load GLTF file
LoaderImpl->>LoaderImpl: processLight
LoaderImpl->>LoaderImpl: processCamera
LoaderImpl->>LoaderImpl: processMaterial
LoaderImpl->>LoaderImpl: createAnimations
LoaderImpl->>LoaderImpl: createGeometry
LoaderImpl->>LoaderImpl: createTexture2D
LoaderImpl->>LoaderImpl: createTextureCube
LoaderImpl->>LoaderImpl: createSkybox
LoaderImpl->>User: Return processed scene
In realms of code, the changes shine,
To load GLTF, now so fine.
With lights and cameras, scenes take flight,
Materials glow, textures bright.
Geometry shapes, animations glide,
In this Engine-driven ride.
Oh code, you make our worlds unite!
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Improvements
Engine
parameter in the loader's constructor and initial method.