-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
3D Tiles binary functions #4688
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8934bc8
Merge remote-tracking branch 'refs/remotes/origin/sqrt'
leesafini 340f47b
updated expression with data-driven binary functions
leesafini 0f4dc79
updated expression spec for binary fns
leesafini c93ff49
Merge branch 'refs/heads/master' into binaryfns
leesafini e31d0c1
updated demo styling
leesafini 34fa405
Merge remote-tracking branch 'refs/remotes/AnalyticalGraphicsInc/3d-t…
leesafini 53b82ed
Point Cloud demos
leesafini 6a430ee
atan2 working
leesafini c6caf15
updated to reflect PR comments
leesafini 682679e
Merge remote-tracking branch 'refs/remotes/AnalyticalGraphicsInc/3d-t…
leesafini f71c2b5
fixed frameState removal
leesafini d1db34f
added left and right to expressions
leesafini 879330f
renamed "Min" to "Min and Max"
leesafini 12a5597
fixed expressionspec
leesafini 8da0105
more updates to ExpressionSpec
leesafini ccc6af9
fixed atan2 expression test
leesafini 29a1674
removed definitions for left, right, expression
leesafini c341d51
added spaces
leesafini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,12 +115,23 @@ | |
}); | ||
|
||
addStyle('Arc Trigonometric Functions', { | ||
color : "color() * acos(degrees(${temperature})) + color() * asin(${temperature}) + color() * atan(${temperature})" | ||
color : "color() * acos(degrees(${temperature})) + color() * asin(${temperature}) + color() * atan(${temperature}) + color() * atan2(${POSITION}[0],${temperature})", | ||
pointSize : "5" | ||
}); | ||
|
||
addStyle('Sqrt', { | ||
color : "color() * sqrt(${temperature})", | ||
pointSize : "10" | ||
pointSize : "5" | ||
}); | ||
|
||
addStyle('Pow', { | ||
color : "color() * pow(${temperature}, 3)", | ||
pointSize : "5" | ||
}); | ||
|
||
addStyle('Min and Max', { | ||
color : "rgb(min(${POSITION}[0], 0.75) * 255, max(${POSITION}[2], 0.25) * 255, 255)", | ||
pointSize : "5" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Min and max could be combined into one style, min could affect the red channel and max could affect the green channel. |
||
}); | ||
|
||
addStyle('Secondary Color', { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
With #4628 in just incorporate atan2 to the Trigonometric Functions style.