Skip to content

Add ignore khr materials unlit option - #594

Closed
david-lively wants to merge 23 commits into
mainfrom
add-ignore-khr_materials_unlit-option
Closed

Add ignore khr materials unlit option#594
david-lively wants to merge 23 commits into
mainfrom
add-ignore-khr_materials_unlit-option

Conversation

@david-lively

@david-lively david-lively commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds the option to override the KHR_unlit_material flag in a glTF 3DTileset.

Author checklist

  • [ ] I have submitted a Contributor License Agreement (only needed once).
  • I have done a full self-review of my code.
  • I have updated CHANGES.md with a short summary of my change (for user-facing changes).
  • [ ] I have added or updated unit tests to ensure consistent code coverage as necessary.
  • [ ] I have updated the documentation as necessary.

Testing plan

Load a 3DTileset that uses KHR_material_unlit flag. Observe that it is rendered using the unlit material. Toggle the checkbox and observe that it is rendered with default lighting.

@david-lively david-lively linked an issue Aug 5, 2025 that may be closed by this pull request
@david-lively
david-lively marked this pull request as ready for review August 5, 2025 19:06
@david-lively
david-lively requested a review from j9liu August 5, 2025 19:06
@david-lively
david-lively marked this pull request as draft August 5, 2025 19:23
@david-lively
david-lively removed the request for review from j9liu August 5, 2025 19:46
@david-lively
david-lively requested review from j9liu and removed request for j9liu August 7, 2025 18:46
@david-lively
david-lively requested review from j9liu and kring August 7, 2025 19:00

@kring kring left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good @david-lively! A few small comments below.

Comment thread Runtime/Cesium3DTileset.cs Outdated
Comment thread Runtime/Resources/CesiumDefaultTilesetMaterial.mat Outdated
Comment thread native~/Runtime/package-lock.json Outdated
Comment thread native~/Runtime/src/UnityPrepareRendererResources.cpp Outdated
Comment thread native~/Runtime/src/UnityPrepareRendererResources.cpp Outdated
Comment thread native~/Runtime/src/UnityPrepareRendererResources.cpp Outdated
@david-lively
david-lively requested a review from kring August 8, 2025 17:52
@david-lively
david-lively marked this pull request as ready for review August 8, 2025 17:52
@david-lively
david-lively removed request for j9liu and kring August 11, 2025 15:07
@david-lively
david-lively marked this pull request as draft August 11, 2025 15:07
@david-lively
david-lively deleted the add-ignore-khr_materials_unlit-option branch August 11, 2025 15:20
@david-lively

Copy link
Copy Markdown
Contributor Author

Closing this PR in favor of a new one with a cleaner commit log. See #595

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.

Add "Ignore KHR_materials_unlit" option

2 participants