dashboard
repositories
filestore
activity
search
login
main
/
hsyjv2
赣州市洪水风险预警系统三维版本
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
水文水环境分析-洪水淹没页面--实现判断当前点是否在所绘多边形内部(当点在线上时存在误判)
guoshilong
2023-02-02
c03856d80d71e92499bf0b084c4e862eb4d48a3d
[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))));
}