MasatoMakino / threejs-lab

Studies for three.js.
MIT License
3 stars 0 forks source link

bug : ステンシル表現が破綻している #58

Closed MasatoMakino closed 4 months ago

MasatoMakino commented 4 months ago

クリッピングの方法が変化したようで、正常に描画されていない。 以下の公式exampleを参照して修正する。 https://github.com/mrdoob/three.js/blob/master/examples/webgl_clipping_stencil.html

対象は https://masatomakino.github.io/threejs-lab/demo/StudyLoopAnimation.html https://masatomakino.github.io/threejs-lab/demo/StudyStencil.html の二点

MasatoMakino commented 4 months ago

上記2つのデモは、基本的に公式exampleと全く同じである。 https://threejs.org/examples/webgl_clipping.html https://threejs.org/examples/webgl_clipping_stencil.html 自身の学習のために追加したが、現状では冗長なだけなので削除する。

MasatoMakino commented 4 months ago

https://masatomakino.github.io/threejs-shader-materials/demo/demoSolidClipping.html 同様の表現は別リポジトリでも検証、メンテナンスをしている。