class Background::CubeMap
- Background::CubeMap
- Background
- Reference
- Object
Overview
Use cube maps as a backgound. See Wikipedia for an explanation of how this works.
Defined in:
backgrounds/cube_map.crConstructors
-
.new(name)
name
should point to a folder containing six imagesposx.png
,negx.png
,posy.png
,negy.png
,posz.png
,negz.png
for the right, left, top, bottom, front and back of the cube
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