class Background::CubeMap

Overview

Use cube maps as a backgound. See Wikipedia for an explanation of how this works.

Defined in:

backgrounds/cube_map.cr

Constructors

Instance Method Summary

Instance methods inherited from class Background

get(ray : Ray) : Color get

Constructor Detail

def self.new(name) #

name should point to a folder containing six images posx.png, negx.png, posy.png, negy.png, posz.png, negz.png for the right, left, top, bottom, front and back of the cube


[View source]

Instance Method Detail

def get(ray) #

[View source]