Skip to content

Commit

Permalink
Merge pull request #12106 from CesiumGS/styling-blend
Browse files Browse the repository at this point in the history
Fix blending for CPU styling of models
  • Loading branch information
ggetz authored Aug 1, 2024
2 parents 49da5c8 + f37d987 commit 5d2a1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/engine/Source/Shaders/Model/MaterialStageFS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ void materialStage(inout czm_modelMaterial material, ProcessedAttributes attribu
baseColorWithAlpha *= color;
#endif

material.baseColor = baseColorWithAlpha;
#ifdef USE_CPU_STYLING
material.baseColor.rgb = blend(baseColorWithAlpha.rgb, feature.color.rgb, model_colorBlend);
baseColorWithAlpha.rgb = blend(baseColorWithAlpha.rgb, feature.color.rgb, model_colorBlend);
#endif
material.baseColor = baseColorWithAlpha;
material.diffuse = baseColorWithAlpha.rgb;
material.alpha = baseColorWithAlpha.a;

Expand Down

0 comments on commit 5d2a1a7

Please sign in to comment.