-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fix applying translucent style to point cloud #6113
Conversation
@lilleyse, thanks for the pull request! Maintainers, we have a signed CLA from @lilleyse, so you can review this at any time.
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
bae2977
to
e53672d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that, code changes look good, does this warrant a spec?
Source/Scene/Cesium3DTileStyle.js
Outdated
@@ -1454,11 +1456,13 @@ define([ | |||
Cesium3DTileStyle.prototype.getColorShaderFunction = function(functionName, attributePrefix, shaderState) { | |||
if (this._colorShaderFunctionReady) { | |||
// Return the cached result, may be undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment applies to next line, not this new line
Yeah, I'll need to create new sample tileset since all our test point clouds are a single tile. I'll bump when ready. |
Updated. |
@lilleyse It looks like that new test is failing. |
94d7113
to
38cfc31
Compare
Updated - it seems like it was a capitalization issue. Hopefully the test passes on Travis now. |
When setting a point cloud style's color to a translucent color only a single tile would become translucent. The fix is to mark whether the cached shader is translucent.