Skip to content

Commit

Permalink
Fix blending for CPU styling of models
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeshurun Hembd committed Aug 1, 2024
1 parent 49da5c8 commit f37d987
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 f37d987

Please sign in to comment.