-
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
Fog #3154
+650
−58
Merged
Fog #3154
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
e0efc3a
Initial fog. WIP.
bagnell 7655844
Fog color WIP.
bagnell 7e59d39
Clean up different fog equations and remove uniform fog color.
bagnell 60e8bd5
More clean up.
bagnell b05a074
More fog color WIP.
bagnell 9b690c7
Merge branch 'master' into fog
bagnell 7894da3
Merge branch 'master' into fog
bagnell d397e32
Use atmosphere color for fog.
bagnell 8fd263d
Merge branch 'master' into fog
bagnell 41b9330
Minor shader clean up.
bagnell bebe65c
Add fog parameters to frame state. Cull globe tiles based on fog WIP.
bagnell 01f6a6c
Update density from experimentation. Fog culling WIP.
bagnell 9d3b07a
Interpolate fog density based on camera height.
bagnell ca742f9
Use preprocessor to enable fog.
bagnell 9d6a8e6
Make scene.fog property. Factor out fog computations. When getting th…
bagnell 80f3f28
Update Sandcastle example locations. Try new density function.
bagnell 8a8c75d
Remove fog density function, use look up table.
bagnell d2df9a1
Remove fog after zooming out a certain distance.
bagnell d2c927b
Clean up unused code and Sandcastle example.
bagnell 64a2be8
Increase SSE when tile is in fog.
bagnell 95048fd
Swap shader when tile is in/out of fog.
bagnell 582426a
Explicitly tag CesiumMath.fog private
pjcozzi dd54283
Doc tweak
pjcozzi 1a194b7
Add comment
pjcozzi d84186f
Add comment
pjcozzi f07d538
Fix whitespace
pjcozzi c5d7341
Tweak density look up table.
bagnell 325d393
Merge branch 'master' into fog
bagnell 35295de
Exploit temporal coherence of zoom level in table look up.
bagnell ff61da5
Clean up searching for height interval.
bagnell d11c50b
Only compute distance to tile once. Tweak frame state.
bagnell 85cc52b
Re-add ability to change the density by scaling the table.
bagnell 7902c29
Fade fog in as the camera is tilted towards the horizon.
bagnell 5420561
Fix tests.
bagnell 64828bc
Add fog tests.
bagnell 22de5d1
Add fog documentation.
bagnell 6f8fb41
Merge branch 'master' into fog
bagnell 403b049
Update fog Sandcastle example with positions that demonstrate perform…
bagnell 10a3b97
Fix cracking between the globe and the atmosphere.
bagnell c6ce4c2
Fix fog for views with negative altitude.
bagnell 333c8f0
Move fog code from scene to new Fog object.
bagnell 186c63f
Enable fog in the tests.
bagnell 7d7c3b2
Tweak CHANGES.md
pjcozzi ed30aa0
Merge branch 'master' into fog
bagnell 28d15df
Fix shader compile in Firefox/IE.
bagnell 4cccade
Only render atmosphere when terrain tiles are rendered.
bagnell 3ba3717
Add checkbox to enable/disable fog in the terrain sandcastle example.
bagnell 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
Only compute distance to tile once. Tweak frame state.
- workspaces
- pre-template-literals
- pre-prettier-v3
- pre-prettier
- pre-let-const
- post-workspaces
- post-template-literals
- post-prettier-v3
- post-prettier
- post-let-const
- cesium-workspaces
- 1.127
- 1.126
- 1.125
- 1.124
- 1.123.1
- 1.123
- 1.122
- 1.121.1
- 1.121
- 1.120
- 1.119
- 1.118.2
- 1.118.1
- 1.118
- 1.117
- 1.116
- 1.115
- 1.114
- 1.113
- 1.112
- 1.111
- 1.111-release
- 1.110.1
- 1.110
- 1.109
- 1.108
- 1.107.2
- 1.107.1
- 1.107
- 1.106.1
- 1.106
- 1.105.2
- 1.105.1
- 1.105
- 1.104
- 1.103
- 1.102
- 1.101
- 1.100
- 1.99
- 1.98.1
- 1.98
- 1.97
- 1.96
- 1.95
- 1.94.3
- 1.94.2
- 1.94.1
- 1.94
- 1.93
- 1.92
- 1.91
- 1.90
- 1.89
- 1.88
- 1.87.1
- 1.87
- 1.86.1
- 1.86
- 1.85
- 1.84
- 1.83
- 1.82
- 1.81
- 1.80
- 1.79.1
- 1.79
- 1.78
- 1.77
- 1.76
- 1.75
- 1.74
- 1.73
- 1.72
- 1.71
- 1.70.1
- 1.70
- 1.69
- 1.68
- 1.67
- 1.66
- 1.65
- 1.64
- 1.63.1
- 1.63
- 1.62
- 1.61
- 1.60
- 1.59
- 1.58.1
- 1.58
- 1.57
- 1.56.1
- 1.56
- 1.55
- 1.54
- 1.53
- 1.52
- 1.51
- 1.50
- 1.49
- 1.48
- 1.47
- 1.46
- 1.45
- 1.44
- 1.43
- 1.42.1
- 1.42
- 1.41
- 1.40
- 1.39
- 1.38
- 1.37
- 1.36
- 1.35.2
- 1.35
- 1.34
- 1.33
- 1.32
- 1.31
- 1.30
- 1.29
- 1.28
- 1.27
- 1.26
- 1.25
- 1.24
- 1.23
- 1.22.2
- 1.22.1
- 1.22
- 1.21
- 1.20
- 1.19
- 1.18
- 1.17
- 1.16
commit d11c50b835b8bda703c9b4a73e4348e23f819828
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
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
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.
This is really similar to some spline code you wrote a few years ago. It's not reasonable/possible to reuse that?