File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ export class CanvasCoreRenderer extends CoreRenderer {
169169
170170 if ( ctxTexture ) {
171171 const image = ctxTexture . getImage ( color ) ;
172- ctx . globalAlpha = alpha ;
172+ ctx . globalAlpha = color . a ?? alpha ;
173173 if ( frame ) {
174174 ctx . drawImage (
175175 image ,
Original file line number Diff line number Diff line change @@ -364,6 +364,8 @@ export class CanvasTextRenderer extends TextRenderer<CanvasTextRendererState> {
364364 if ( state . textureNode ) {
365365 // Use the existing texture node
366366 state . textureNode . texture = texture ;
367+ // Update the alpha
368+ state . textureNode . alpha = getNormalizedAlphaComponent ( state . props . color ) ;
367369 } else {
368370 // Create a new texture node
369371 const textureNode = this . stage . createNode ( {
You can’t perform that action at this time.
0 commit comments