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

Issue1076 #1213

Merged
merged 14 commits into from
Oct 4, 2013
Merged

Issue1076 #1213

merged 14 commits into from
Oct 4, 2013

Conversation

abwood
Copy link
Contributor

@abwood abwood commented Oct 1, 2013

Updates for issue #1076. Early pull request for the sake of transparency (get it?). CC @mramato.

abwood added 7 commits October 1, 2013 09:40
…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]>
… 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]>
@abwood
Copy link
Contributor Author

abwood commented Oct 1, 2013

@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)
Copy link
Contributor

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.

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 3, 2013

This is solid. Just those comments and we're good.

abwood added 2 commits October 4, 2013 08:43
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
@abwood
Copy link
Contributor Author

abwood commented Oct 4, 2013

@pjcozzi I've incorporated all of your feedback and merged in the most recent master.

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 4, 2013

Thanks!

pjcozzi added a commit that referenced this pull request Oct 4, 2013
@pjcozzi pjcozzi merged commit f88d855 into CesiumGS:master Oct 4, 2013
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