Skip to content

Enables coloring of ModelExperimental#9881

Merged
ptrgags merged 14 commits into
mainfrom
model-experimental-color
Oct 22, 2021
Merged

Enables coloring of ModelExperimental#9881
ptrgags merged 14 commits into
mainfrom
model-experimental-color

Conversation

@sanjeetsuhag

@sanjeetsuhag sanjeetsuhag commented Oct 20, 2021

Copy link
Copy Markdown
Contributor

Adds color, colorBlendAmount and colorBlendMode to ModelExperimental.

Sandcastle for setting color, colorBlendAmount, colorBlendMode on ModelExperimental

Depends on #9873 being merged first.

@cesium-concierge

Copy link
Copy Markdown

Thanks for the pull request @sanjeetsuhag!

  • ✔️ Signed CLA found.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.

@ptrgags ptrgags left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@sanjeetsuhag looks pretty solid overall, though it doesn't seem to work with instancing or the TriangleWithoutIndices? is this supposed to happen?

image

Comment thread Source/Scene/ModelExperimental/ModelColorStage.js Outdated
Base automatically changed from model-experimental-content to main October 21, 2021 23:48
@sanjeetsuhag

Copy link
Copy Markdown
Contributor Author

it doesn't seem to work with instancing or the TriangleWithoutIndices? is this supposed to happen?

@ptrgags and I compared with the Model.js implementation and discovered that this problem was happening due to the lighting stage being applied after the highlight.

image

@sanjeetsuhag sanjeetsuhag marked this pull request as ready for review October 22, 2021 17:49
@sanjeetsuhag

Copy link
Copy Markdown
Contributor Author

@ptrgags ptrgags left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@sanjeetsuhag really close, though now I think we need to double check the REPLACE color mode.

Comment thread Source/Shaders/ModelExperimental/MaterialStageFS.glsl Outdated
@ptrgags

ptrgags commented Oct 22, 2021

Copy link
Copy Markdown
Contributor

@sanjeetsuhag looks good, merging!

@ptrgags ptrgags merged commit 251e279 into main Oct 22, 2021
@ptrgags ptrgags deleted the model-experimental-color branch October 22, 2021 20:08
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.

3 participants