dashboard
repositories
filestore
activity
search
login
main
/
hsyjv2
赣州市洪水风险预警系统三维版本
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
水文水环境分析-洪水淹没:柱状图调整、地图直接定位到瑞金市
guoshilong
2023-02-04
1a2905dce9e5d69df9619cfe513cc2e80b1424fb
[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))));
}