Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
rtiow
main
Top Level Namespace
AaBb
BVHNode
Camera
Checker
Color
CoverScene
Dielectric
HitRecord
Hittable
HittableList
Lambertian
Material
MaybeRayAndAttenuation
Metal
MovingSphere
Noise
Perlin
Ray
Scene
SolidColor
Sphere
Texture
TwoPerlinSpheres
TwoSpheres
Vec3
Generated using Crystal 1.16.3
2025-12-23 22:04:22 UTC
struct
Metal
Metal
Material
Struct
Value
Object
Defined in:
material.cr
Constructors
.new
(albedo : Color, fuzz : Float64)
Instance Method Summary
#scatter
(r_in : Ray, rec : HitRecord) : MaybeRayAndAttenuation
Instance methods inherited from struct
Material
initialize
initialize
,
scatter(r_in : Ray, rec : HitRecord) : MaybeRayAndAttenuation
scatter
Constructor methods inherited from struct
Material
new
new
Constructor Detail
def self.
new
(albedo :
Color
, fuzz : Float64)
#
[
View source
]
Instance Method Detail
def
scatter
(r_in :
Ray
, rec :
HitRecord
) :
MaybeRayAndAttenuation
#
[
View source
]