Closed hhhhkrx closed 2 weeks ago
The changes in this pull request introduce enhancements to the PBRMaterial
class for managing iridescence effects, including new properties and methods for iridescence settings. Additionally, the IKHRMaterialsClearcoat
interface is modified to make its properties optional, while a new interface IKHRMaterialsIridescence
is added. A new class for handling iridescence in GLTF materials is introduced, along with updates to the shader node handling for improved property serialization.
File Path | Change Summary |
---|---|
packages/core/src/material/PBRMaterial.ts |
Added new properties and getters/setters for iridescence effects; updated constructor for defaults. |
packages/loader/src/gltf/extensions/GLTFExtensionSchema.ts |
Changed properties of IKHRMaterialsClearcoat to optional; added new interface IKHRMaterialsIridescence . Updated GLTFExtensionSchema type. |
packages/loader/src/gltf/extensions/KHR_materials_iridescence.ts |
Introduced KHR_materials_iridescence class for handling iridescence properties in GLTF materials. |
packages/loader/src/gltf/extensions/index.ts |
Added import for KHR_materials_iridescence . |
packages/shader-lab/src/ast-node/AstNode.ts |
Modified FnVariableAstNode for improved property list handling and serialization. |
sequenceDiagram
participant User
participant PBRMaterial
participant GLTFExtensionParser
participant KHR_materials_iridescence
User->>PBRMaterial: Set iridescence properties
PBRMaterial->>PBRMaterial: Update shader data
PBRMaterial->>GLTFExtensionParser: Parse iridescence properties
GLTFExtensionParser->>KHR_materials_iridescence: Handle iridescence properties
KHR_materials_iridescence->>PBRMaterial: Set properties
🐰 "In the world of shaders, bright and bold,
New iridescence properties, a sight to behold!
With textures and factors, they dance and play,
Enhancing our materials in a magical way.
Hooray for the changes, let colors ignite,
A shimmering future, oh what a delight!" 🌈
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?
Attention: Patch coverage is 44.75138%
with 100 lines
in your changes missing coverage. Please review.
Project coverage is 66.73%. Comparing base (
35f10e2
) to head (0be9f2a
). Report is 5 commits behind head on dev/1.4.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation