dashboard
repositories
filestore
activity
search
login
main
/
hsyjv2
赣州市洪水风险预警系统三维版本
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
洪水淹没-样式修改,删除tip;选择河段时弹框关闭
guoshilong
2023-02-21
8a6a1f340e249ca4e253f52a99a46ef44e7f0f00
[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))));
}