Skip to content

Commit

Permalink
Fix gamma correction on some 3D Tiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnell committed Nov 8, 2018
1 parent a98c9c6 commit 4c33a68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Scene/Cesium3DTileBatchTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' +
Expand Down

0 comments on commit 4c33a68

Please sign in to comment.