Skip to content

Commit

Permalink
path type colors
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrit committed Jan 15, 2025
1 parent 994d6f6 commit dcfd9c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SeeSharp/Integrators/PathTracer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public NextEventNode(SurfacePoint point, PathGraphNode ancestor, RgbColor emissi
public readonly SurfacePoint? Point;

public override bool IsBackground => !Point.HasValue;
public override RgbColor ComputeVisualizerColor() => new(0.1f, 0.8f, 0.01f);
}

public class BSDFSampleNode : PathGraphNode {
Expand All @@ -144,6 +145,8 @@ public BSDFSampleNode(SurfacePoint point, PathGraphNode ancestor, RgbColor scatt
public readonly RgbColor Emission;
public readonly float MISWeight;
public readonly SurfacePoint Point;

public override RgbColor ComputeVisualizerColor() => new(0.1f, 0.4f, 0.8f);
}

public class BackgroundNode : PathGraphNode {
Expand All @@ -154,6 +157,8 @@ public BackgroundNode(Vector3 direction, PathGraphNode ancestor, RgbColor contri
public readonly RgbColor Emission;
public readonly float MISWeight;
public override bool IsBackground => true;

public override RgbColor ComputeVisualizerColor() => new(0.1f, 0.1f, 0.9f);
}

public class PathGraph {
Expand Down

0 comments on commit dcfd9c6

Please sign in to comment.