Skip to content

Commit 4c33a68

Browse files
committed
Fix gamma correction on some 3D Tiles.
1 parent a98c9c6 commit 4c33a68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Scene/Cesium3DTileBatchTable.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,8 @@ define([
963963
'void tile_color(vec4 tile_featureColor) \n' +
964964
'{ \n' +
965965
' tile_main(); \n' +
966-
' tile_featureColor = czm_gammaCorrect(tile_featureColor);; \n' +
966+
' tile_featureColor = czm_gammaCorrect(tile_featureColor); \n' +
967+
' gl_FragColor = czm_gammaCorrect(gl_FragColor); \n' +
967968
' gl_FragColor.a *= tile_featureColor.a; \n' +
968969
' float highlight = ceil(tile_colorBlend); \n' +
969970
' gl_FragColor.rgb *= mix(tile_featureColor.rgb, vec3(1.0), highlight); \n' +

0 commit comments

Comments
 (0)