Skip to content

Commit

Permalink
adaptive sampling tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Sep 5, 2016
1 parent be46c60 commit 161f256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pt/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func render(scene *Scene, camera *Camera, sampler Sampler, samplesPerPixel int,
}
v := Clamp(buf.StandardDeviation(x, y).MaxComponent(), 0, 1)
v = math.Pow(v, 2)
extraSamples := int(64 * v)
extraSamples := int(32 * v)
for i := 0; i < extraSamples; i++ {
fu := rnd.Float64()
fv := rnd.Float64()
Expand Down

0 comments on commit 161f256

Please sign in to comment.