From dcfd9c65b6159b98ed15a921e342669999548d79 Mon Sep 17 00:00:00 2001 From: Pascal Grittmann Date: Wed, 15 Jan 2025 17:31:58 +0100 Subject: [PATCH] path type colors --- SeeSharp/Integrators/PathTracer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SeeSharp/Integrators/PathTracer.cs b/SeeSharp/Integrators/PathTracer.cs index 70d52df..236269b 100644 --- a/SeeSharp/Integrators/PathTracer.cs +++ b/SeeSharp/Integrators/PathTracer.cs @@ -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 { @@ -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 { @@ -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 {