dashboard
repositories
filestore
activity
search
login
main
/
hsyjv2
赣州市洪水风险预警系统三维版本
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
洪水淹没
guoshilong
2023-02-27
4d8c6dd77427e8e581fda17b6b65ba86bfb7a815
[hsyjv2.git]
/
libs
/
Source
/
Shaders
/
Builtin
/
Functions
/
alphaWeight.glsl
1
2
3
4
5
6
7
8
9
10
11
/**
* @private
*/
float czm_alphaWeight(float a)
{
float z = (gl_FragCoord.z - czm_viewportTransformation[3][2]) / czm_viewportTransformation[2][2];
// See Weighted Blended Order-Independent Transparency for examples of different weighting functions:
// http://jcgt.org/published/0002/02/09/
return pow(a + 0.01, 4.0) + max(1e-2, min(3.0 * 1e3, 0.003 / (1e-5 + pow(abs(z) / 200.0, 4.0))));
}