Skip to content

Commit

Permalink
Merge pull request #6340 from virtualcitySYSTEMS/fix_alpha_blending
Browse files Browse the repository at this point in the history
new equation in czm_alphaWeight shader function
  • Loading branch information
mramato authored Mar 21, 2018
2 parents 3f075ad + 4d2ee4f commit 3138309
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ Change Log
* Fixed support of glTF-supplied tangent vectors. [#6302](https://github.com/AnalyticalGraphicsInc/cesium/pull/6302)
* Fixed improper zoom during model load failure. [#6305](https://github.com/AnalyticalGraphicsInc/cesium/pull/6305)
* Fixed model loading failure when containing unused materials. [6315](https://github.com/AnalyticalGraphicsInc/cesium/pull/6315)
* Fixed formula for Weighted Blended Order-Independent Transparency. [#6340](https://github.com/AnalyticalGraphicsInc/cesium/pull/6340)
* Fixed default value of `alphaCutoff` in glTF models. [#6346](https://github.com/AnalyticalGraphicsInc/cesium/pull/6346)
* Fixed rendering vector tiles when using `invertClassification`. [#6349](https://github.com/AnalyticalGraphicsInc/cesium/pull/6349)
* Fixed animation for glTF models with missing animation targets. [#6351](https://github.com/AnalyticalGraphicsInc/cesium/pull/6351)


### 1.43 - 2018-03-01

##### Major Announcements :loudspeaker:
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [William Wall](https://github.com/wallw-bits)
* [virtualcitySYSTEMS GmbH](https://www.virtualcitysystems.de)
* [Jannes Bolling](https://github.com/jbo023)
* [Arne Schilling](https://github.com/arneschilling)
* [Logilab](https://www.logilab.fr/)
* [Florent Cayré](https://github.com/fcayre/)
* [webiks](https://www.webiks.com)
Expand Down
4 changes: 2 additions & 2 deletions Source/Shaders/Builtin/Functions/alphaWeight.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ float czm_alphaWeight(float a)
}

// 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, 100.0 / (1e-5 + pow(abs(z) / 10.0, 3.0) + pow(abs(z) / 200.0, 6.0))));
// 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))));
}

0 comments on commit 3138309

Please sign in to comment.