From 83846493c930f6506efbdd549a3b57d381f64458 Mon Sep 17 00:00:00 2001 From: teruyoshi <139993276+teruyoshii@users.noreply.github.com> Date: Wed, 1 Oct 2025 18:44:19 +0900 Subject: [PATCH] Fix typo in Lens.anm2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 23行目 > float2 distorted = centered/denom/zoom;h の末尾のhによってピクセルシェーダーが正しく動作していないので削除しました --- script/Lens.anm2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/Lens.anm2 b/script/Lens.anm2 index c994840..a4d84d4 100644 --- a/script/Lens.anm2 +++ b/script/Lens.anm2 @@ -20,7 +20,7 @@ float4 psmain(float4 pos : SV_Position) : SV_Target { float denom = 1-pow(r,p)*max(d,lim)*10; denom = max(denom, 0.001); //でかすぎると画面外に変なのが発生 float zoom = (d < lim) ? 1.0 + pow(max(-d +lim, 0.0),1.4) : 1.0; //歪みを小さくしすぎると破綻するので拡大でごまかす 下限をどこに設定すればいいかわからないからトラックバーに置いた - float2 distorted = centered/denom/zoom;h + float2 distorted = centered/denom/zoom; float2 texcoord = distorted+(resolution/2)+offset; return tex[int2(texcoord)]; }