Stop treating JWildfire normal as linear geometry
This commit is contained in:
parent
c35507cd04
commit
a1ffb39f01
7 changed files with 41 additions and 14 deletions
|
|
@ -586,8 +586,10 @@ internal sealed class GpuFractalSplatReceiptRunner : IDisposable
|
|||
|
||||
var centerX = centerRadius.X;
|
||||
var centerY = centerRadius.Y;
|
||||
var radiusX = MathF.Max(MathF.Abs(radiiFalloff.X), MathF.Abs(centerRadius.W));
|
||||
var radiusY = MathF.Max(MathF.Abs(radiiFalloff.Y), MathF.Abs(centerRadius.W));
|
||||
var pixelRadiusX = spanX / width;
|
||||
var pixelRadiusY = spanY / height;
|
||||
var radiusX = MathF.Max(MathF.Max(MathF.Abs(radiiFalloff.X), MathF.Abs(centerRadius.W)), pixelRadiusX);
|
||||
var radiusY = MathF.Max(MathF.Max(MathF.Abs(radiiFalloff.Y), MathF.Abs(centerRadius.W)), pixelRadiusY);
|
||||
if (radiusX <= 0.0f || radiusY <= 0.0f)
|
||||
{
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue