Closed yiiqii closed 1 month ago
The recent update involves modifying the TextureManager
class in the loader-impl.ts
file. The changes specifically affect how the texture index is calculated when adding or retrieving textures. Now, if the texture in question is a base color (isBaseColor
is true), the index is adjusted with (matIndex + 1)
, enhancing texture management precision.
Files | Change Summary |
---|---|
plugin-packages/model/src/gltf/... |
Updated TextureManager to modify index calculation for base color textures in methods addTexture and getTexture . |
In the code where textures glide,
A change was made, adjusted stride.
Colors base now find their place,
(matIndex + 1)
in the race.
A manager so wise and clear,
Textures find their paths sincere.
🎨🐰✨
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
TextureManager
class to ensure accurate rendering of base color textures.