Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material and imagery refactor for Kit 105 #384

Merged
merged 5 commits into from
Jul 3, 2023
Merged

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Jul 1, 2023

Fixes #242

This PR removes a bunch of workarounds that we had in place for Kit 104.2 since it didn't support dynamic material values.

  • No longer need to bake material properties like baseColorFactor, emissiveFactor, etc in the material definition.
  • No longer need to bake texcoord translate / scale into the texcoord attribute
  • No longer need to destroy prims when higher res imagery is attached to a tile

Only one imagery layer is supported per tileset still. Multiple raster overlays is a bigger lift since it means parsing multiple texcoord sets from the glTF (e.g. geographic vs. web mercator texcoords), storing multiple textures in FabricMaterial (possibly requiring a texture pool), and forking gltf/pbr.mdl to read from additional textures.

Copy link
Contributor

@corybarr corybarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@lilleyse lilleyse merged commit 37bfe99 into main Jul 3, 2023
@lilleyse lilleyse deleted the imagery-refactor branch July 3, 2023 16:14
@lilleyse lilleyse mentioned this pull request Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic material support in Fabric
2 participants