class Background::Atmosphere

Overview

Physically inspired model of color of the atmosphere

Defined in:

backgrounds/atmosphere.cr

Constant Summary

BETA_M = Color.new(21e-6)
BETA_R = Color.new(3.8e-6, 13.5e-6, 33.1e-6)

Constructors

Instance Method Summary

Instance methods inherited from class Background

get(ray : Ray) : Color get

Constructor Detail

def self.new(sun_direction, earth_radius = 6360e3, atmosphere_radius = 6420e3, h_r = 7994.0, h_m = 1200.0) #

[View source]

Instance Method Detail

def get(ray) #

[View source]
def ray_sphere_intersect(ray) #

[View source]