仪表盘
版本库
文件存储
活动
搜索
登录
于志彤
/
bs/version
Bs版本
概况
操作记录
提交次数
目录
文档
复刻
对比
blame
|
历史
|
原始文档
BS版本 1.4
yzt
2023-05-26
de4278af2fd46705a40bac58ec01122db6b7f3d7
[~zhitong.yu/bs/version.git]
/
out
/
artifacts
/
hxzkoa_war_exploded
/
hxzk
/
Cesium-1.88
/
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))));
}