Skip to content

Commit

Permalink
#154 一度ディレクトリを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Dec 8, 2024
1 parent 48b23f3 commit 1e786ea
Show file tree
Hide file tree
Showing 57 changed files with 5 additions and 4,145 deletions.
14 changes: 5 additions & 9 deletions packages/webgl/src/Context/usecase/ContextFillUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,21 @@ export const execute = (): void =>

// mask on
$gl.enable($gl.STENCIL_TEST);
// $gl.stencilMask(0xff);
$gl.stencilMask(0xff);

$gl.enable($gl.CULL_FACE);
// $gl.enable($gl.SAMPLE_ALPHA_TO_COVERAGE);
$gl.enable($gl.SAMPLE_ALPHA_TO_COVERAGE);
$gl.stencilFunc($gl.ALWAYS, 0, 0xff);
// $gl.stencilOp($gl.KEEP, $gl.INVERT, $gl.INVERT);
$gl.stencilOp($gl.KEEP, $gl.INVERT, $gl.INVERT);
$gl.colorMask(false, false, false, false);
$gl.stencilOpSeparate($gl.FRONT, $gl.KEEP, $gl.KEEP, $gl.INCR_WRAP);
$gl.stencilOpSeparate($gl.BACK, $gl.KEEP, $gl.KEEP, $gl.DECR_WRAP);

const coverageShader = variantsShapeMaskShaderService(false);
shaderManagerSetMaskUniformService(coverageShader);
shaderManagerFillUseCase(coverageShader, vertexArrayObject);
// $gl.disable($gl.SAMPLE_ALPHA_TO_COVERAGE);
$gl.disable($gl.SAMPLE_ALPHA_TO_COVERAGE);

// draw shape range
$gl.stencilFunc($gl.NOTEQUAL, 0, 0xff);
$gl.stencilOp($gl.KEEP, $gl.KEEP, $gl.KEEP);
$gl.stencilOp($gl.KEEP, $gl.ZERO, $gl.ZERO);
$gl.colorMask(true, true, true, true);

const shaderManager = variantsShapeSolidColorShaderService(false);
Expand All @@ -53,7 +50,6 @@ export const execute = (): void =>

// mask off
$gl.disable($gl.STENCIL_TEST);
$gl.disable($gl.CULL_FACE);

// release vertex array
vertexArrayObjectReleaseVertexArrayObjectService(vertexArrayObject);
Expand Down
72 changes: 0 additions & 72 deletions packages/webgl/src/Shader/GradientLUTGenerator.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

53 changes: 0 additions & 53 deletions packages/webgl/src/Shader/ShaderInstancedManager.ts

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1e786ea

Please sign in to comment.