Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrit committed May 23, 2024
1 parent 5c95125 commit 5351574
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 352 deletions.
1 change: 0 additions & 1 deletion SeeSharp.Tests/Core/Shading/Material_SampleTransform.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using SeeSharp.Shading.Bsdfs;
using SeeSharp.Shading.MicrofacetDistributions;
using static SeeSharp.Sampling.SampleWarp;

Expand Down
1 change: 0 additions & 1 deletion SeeSharp/Imports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
global using SeeSharp.Shading;
global using SeeSharp.Shading.Background;
global using SeeSharp.Shading.Materials;
global using SeeSharp.Shading.Bsdfs;
global using SeeSharp.Shading.Emitters;
global using static SeeSharp.Shading.ShadingSpace;

Expand Down
69 changes: 0 additions & 69 deletions SeeSharp/Shading/Bsdfs/DiffuseBsdf.cs

This file was deleted.

95 changes: 0 additions & 95 deletions SeeSharp/Shading/Bsdfs/DisneyDiffuse.cs

This file was deleted.

70 changes: 0 additions & 70 deletions SeeSharp/Shading/Bsdfs/MicrofacetReflection.cs

This file was deleted.

113 changes: 0 additions & 113 deletions SeeSharp/Shading/Bsdfs/MicrofacetTransmission.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SeeSharp.Shading.Bsdfs;
namespace SeeSharp.Shading.Materials;

public struct BsdfSample {
public Vector3 Direction;
Expand All @@ -12,8 +12,8 @@ public struct BsdfSample {
public RgbColor Weight;

public static BsdfSample Invalid
=> new BsdfSample { Pdf = 0, PdfReverse = 0, Weight = RgbColor.Black };
=> new() { Pdf = 0, PdfReverse = 0, Weight = RgbColor.Black };

public static implicit operator bool(BsdfSample sample)
=> sample.Pdf > 0 && sample.PdfReverse > 0;
=> sample.Pdf > 0 && sample.PdfReverse > 0;
}
Loading

0 comments on commit 5351574

Please sign in to comment.