Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrit committed Aug 8, 2024
1 parent 672bbf2 commit 6834ea1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SeeSharp/Shading/Background/Background.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public abstract class Background {

public abstract BackgroundSample SampleDirection(Vector2 primary);
public abstract Vector2 SampleDirectionInverse(Vector3 Direction);

/// <summary>
/// Computes the PDF for sampling a given direction from the background
/// </summary>
/// <param name="Direction">Direction from the scene towards the background</param>
/// <returns>Solid angle PDF</returns>
public abstract float DirectionPdf(Vector3 Direction);
public abstract (Ray, RgbColor, float) SampleRay(Vector2 primaryPos, Vector2 primaryDir);
public abstract (Vector2, Vector2) SampleRayInverse(Vector3 dir, Vector3 pos);
Expand Down

0 comments on commit 6834ea1

Please sign in to comment.