Skip to content

Commit

Permalink
#154 webglパッケージをv2へ移行
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Aug 21, 2024
1 parent 17521e0 commit 8d18179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/renderer/src/Shape/usecase/ShapeRenderUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
$context,
$poolArray
} from "../../RendererUtil";
import { $clamp } from "../../../../webgl/src/WebGLUtil";

/**
* @description Shapeの描画を実行します。
Expand Down Expand Up @@ -141,7 +142,7 @@ export const execute = (render_queue: Float32Array, index: number): number =>
}

// todo
$context.globalAlpha = 1;
$context.globalAlpha = $clamp(colorTransform[3] + colorTransform[7] / 255, 0, 1, 0);
$context.imageSmoothingEnabled = true;
$context.globalCompositeOperation = "normal";

Expand Down

0 comments on commit 8d18179

Please sign in to comment.