範囲の外へ端の画素が漏れる被覆率の式を直す
このコミットが含まれているのは:
1ファイル変更
+1
-1
@@ -46,7 +46,7 @@ float4 SampleCovered(float2 uv, float2 pixelStep, float2 scenePosition, float2 t
|
||||
float2 maximum = inputBounds.zw - 0.5;
|
||||
float2 clamped = clamp(target, minimum, maximum);
|
||||
float4 color = SourceTexture.SampleLevel(SourceSampler, uv + (clamped - scenePosition) * pixelStep, 0);
|
||||
float2 coverage = saturate(min(target - inputBounds.xy, inputBounds.zw - target) + 1.0);
|
||||
float2 coverage = saturate(min(target - inputBounds.xy, inputBounds.zw - target) + 0.5);
|
||||
return color * (coverage.x * coverage.y);
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする