mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(globe): Navara overlay colours are sRGB
Review of Tasks 4-5: the overlay pass encodes linear to sRGB, and the instance and line colours went in as if linear: grey 0.5 drew 187 (Cesium 128) and [1, 0.6, 0.2] drew 255/203/124 (Cesium 255/153/52). The sprite, point and line shaders now decode them (sRGBTransferEOTF), as the sRGB atlas texture already was. A contract check draws mid-tone sprites, points and lines (grey 0.5 and [1, 0.6, 0.2]) and reads their centres: within 3 per channel on every engine. Navara 79/79.
This commit is contained in:
1 parent
645f042450
commit
68ff4e1c25
3 files changed
+105
-3
No files matched your search
@@ -90,7 +90,8 @@ float gevTactical() {
|
||||
const FRAGMENT_COLOR = /* glsl */ `
|
||||
#include <color_fragment>
|
||||
if (gevOverlayHidden()) discard;
|
||||
diffuseColor = uGevColor;
|
||||
// sRGB colours (as Cesium takes them) into the linear output.
|
||||
diffuseColor = sRGBTransferEOTF(uGevColor);
|
||||
diffuseColor.a *= uGevAlphaScale;
|
||||
if (uGevDash > 1.5) {
|
||||
diffuseColor.a *= gevTactical();
|
||||
|
||||
Reference in new issue
Block a user