-
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
HDR Rendering #7017
HDR Rendering #7017
Changes from 66 commits
a5ef38b
f0ddfd8
6882ea6
1698aad
e003b9e
0cd0862
adbf667
095c1af
7d48a5f
06d89eb
4d47dcc
6496236
3b1fc7e
7ebf78c
2ac1f32
6d59847
4386f78
8cf28a6
0b0b5d5
8aee74a
c5124fe
bf29856
5992e84
8c14a73
f815fe9
a909eae
1cc7708
bfa7ee4
8b1ac52
4d1188f
8667a71
d851ce5
95bb621
ad648f3
33a7b40
5794f95
ea441c4
17efa5a
187e8cb
37a4e00
97d31b8
e8ffa88
09a791b
da3bce1
2d888fe
129e50e
1e2bcd3
2bb0043
6056feb
51e8523
9353d45
a6f2e72
84ecd4b
1dc42bc
9e39ad8
b9c9073
effe4d7
6a6ca8a
dd357da
132b933
bc0856d
bbde12b
2dbfe37
42ad8d9
fb5d165
5a0802f
fb950f8
ec4712b
0fcf8c5
594a9b4
998f3e2
209ec90
260c0e6
f72afd3
4d911f8
7cada27
d4ca95f
b0541b0
b8144a9
7b011f1
faf1904
4051515
15dbe1e
2066481
0019163
bd5cb7f
aeb9abd
8d0f552
6dac90e
2741e35
55bfbe3
44d53e5
c33ad4b
fba7324
6184f61
25efa79
fa12020
f82229a
3088019
c6cb009
a98c9c6
4c33a68
6f27325
8492d35
171ccb2
7a062bc
ac63b95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1686,6 +1686,34 @@ define([ | |
getValue : function(uniformState) { | ||
return uniformState.invertClassificationColor; | ||
} | ||
}), | ||
|
||
/** | ||
* An automatic GLSL uniform that will be used for gamma correction. | ||
* | ||
* @alias czm_gamma | ||
* @glslUniform | ||
*/ | ||
czm_gamma : new AutomaticUniform({ | ||
size : 1, | ||
datatype : WebGLConstants.FLOAT, | ||
getValue : function(uniformState) { | ||
return uniformState.gamma; | ||
} | ||
}), | ||
|
||
/** | ||
* An automatic GLSL uniform that defines the color of light emitted by the sun. | ||
* | ||
* @alias czm_sunColor | ||
* @glslUniform | ||
*/ | ||
czm_sunColor: new AutomaticUniform({ | ||
size: 1, | ||
datatype: WebGLConstants.FLOAT_VEC4, | ||
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. What is alpha used for? 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. I put this in to pack an additional intensity above 1. We should probably expose this at the scene level API as a separate property for clarity. |
||
getValue: function(uniformState) { | ||
return uniformState.sunColor; | ||
} | ||
}) | ||
}; | ||
|
||
|
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.
"will be" is awkward, right? "is?"