class Raytracer::SPPMPixel

Overview

NOTE This needs to be a class instead of a struct bc/ of the way grid and pixels interact and mutate each others values

Defined in:

raytracers/sppm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(radius = 0.0, ld = ::Color::BLACK, vp = nil, m = 0, n = 0.0, tau = ::Color::BLACK, phi = ::Color::BLACK) #

[View source]

Instance Method Detail

def add_phi(new_phi) #

[View source]
def ld : ::Color #

[View source]
def ld=(ld : ::Color) #

[View source]
def m : Int32 #

[View source]
def n : Float64 #

[View source]
def phi : ::Color #

[View source]
def radius : Float64 #

[View source]
def tau : ::Color #

[View source]
def tau=(tau : ::Color) #

[View source]
def update! #

[View source]
def vp : VisiblePoint? #

[View source]
def vp=(vp : VisiblePoint?) #

[View source]