-
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
Issue1076 #1213
Issue1076 #1213
Conversation
…to billboard and incorporated into Label. SandCastle examples added for both label and billboard fading based on camera distance. Signed-off-by: Alex Wood <[email protected]>
Signed-off-by: Alex Wood <[email protected]>
… use scale/translucencyByDistance, their default values would cause issues. For translucency and scale, we should default to 1.0 which results in an identity transformation (e.g., scale by 1). Signed-off-by: Alex Wood <[email protected]>
Label.translucencyByDistance. Cleanup and fixes related to unit tests. Signed-off-by: Alex Wood <[email protected]>
translucencyByDistance. Picking fixes for translucencyByDistance. Updated Changes.MD. Signed-off-by: Alex Wood <[email protected]>
Signed-off-by: Alex Wood <[email protected]>
@pjcozzi This is good for review. |
@@ -11,6 +12,11 @@ varying vec4 v_color; | |||
void main() | |||
{ | |||
#ifdef RENDER_FOR_PICK | |||
if (v_pickTranslucency == 0.0) |
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.
Instead of doing this per-fragment, let's just cull in the vertex shader if needed like we do for show
:
positionEC.xyz *= show;
It will be faster and less code.
This is solid. Just those comments and we're good. |
shader. Minor cleanup in unit tests and Sandcastle example. Signed-off-by: Alex Wood <[email protected]>
Conflicts: Source/Scene/Billboard.js Source/Scene/Label.js Specs/Scene/LabelCollectionSpec.js
@pjcozzi I've incorporated all of your feedback and merged in the most recent master. |
vertex with scale or translucency equal to 0. Signed-off-by: Alex Wood <[email protected]>
Signed-off-by: Alex Wood <[email protected]>
Thanks! |
Updates for issue #1076. Early pull request for the sake of transparency (get it?). CC @mramato.