From 4c33a68d12e034603eb209d5d4f8c989f7e29e83 Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Thu, 8 Nov 2018 16:22:04 -0500 Subject: [PATCH] Fix gamma correction on some 3D Tiles. --- Source/Scene/Cesium3DTileBatchTable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Scene/Cesium3DTileBatchTable.js b/Source/Scene/Cesium3DTileBatchTable.js index c3ec0f36d8b8..5efa05d19f2f 100644 --- a/Source/Scene/Cesium3DTileBatchTable.js +++ b/Source/Scene/Cesium3DTileBatchTable.js @@ -963,7 +963,8 @@ define([ 'void tile_color(vec4 tile_featureColor) \n' + '{ \n' + ' tile_main(); \n' + - ' tile_featureColor = czm_gammaCorrect(tile_featureColor);; \n' + + ' tile_featureColor = czm_gammaCorrect(tile_featureColor); \n' + + ' gl_FragColor = czm_gammaCorrect(gl_FragColor); \n' + ' gl_FragColor.a *= tile_featureColor.a; \n' + ' float highlight = ceil(tile_colorBlend); \n' + ' gl_FragColor.rgb *= mix(tile_featureColor.rgb, vec3(1.0), highlight); \n' +