Class com.oroinc.yaray.Finish
All Packages Class Hierarchy This Package Previous Next Index
Class com.oroinc.yaray.Finish
java.lang.Object
|
+----com.oroinc.yaray.Finish
- public class Finish
- extends Object
The finish of a surface.
Copyright © 1996, 1997 Original Reusable Objects, Inc.
All rights reserved.
- Author:
- Daniel F. Savarese
-
brilliance
-
-
kAmbient
-
-
kDiffuse
-
-
kReflectivity
-
-
kSpecular
-
-
kTransmitted
-
-
nRefraction
-
-
roughness
-
-
Finish()
-
-
ambientColor(Color)
-
-
lightColor(World, int, GeometricVector, Ray, Color)
- Returns the specular and diffuse reflection components of the finish
color.
-
reflectionColor(World, GeometricVector, Ray)
- Returns the pure reflection component of the finish color.
-
refractionColor(World, GeometricVector, Ray)
- Returns the pure refraction component of the finish color.
kAmbient
public float kAmbient
kDiffuse
public float kDiffuse
kSpecular
public float kSpecular
kReflectivity
public float kReflectivity
kTransmitted
public float kTransmitted
nRefraction
public float nRefraction
brilliance
public float brilliance
roughness
public float roughness
Finish
public Finish()
ambientColor
public Color ambientColor(Color color)
lightColor
public Color lightColor(World world,
int lightIndex,
GeometricVector normal,
Ray intersection,
Color color)
- Returns the specular and diffuse reflection components of the finish
color.
- Parameters:
- world - A pointer to the world description.
- lightIndex - The index into the world.lights[] array
indicating the light for which the color is being computed.
- normal - The surface normal at the point where the
color is being computed.
- intersection - The ray that intersects the object defining where
the color is being computed.
- color - The base color of the object at the intersection point.
reflectionColor
public Color reflectionColor(World world,
GeometricVector normal,
Ray intersection)
- Returns the pure reflection component of the finish color.
- Parameters:
- world - A pointer to the world description.
- normal - The surface normal at the point where the
color is being computed.
- intersection - The ray that intersects the object defining where
the color is being computed.
refractionColor
public Color refractionColor(World world,
GeometricVector normal,
Ray intersection)
- Returns the pure refraction component of the finish color.
- Parameters:
- world - A pointer to the world description.
- normal - The surface normal at the point where the
color is being computed.
- intersection - The ray that intersects the object defining where
the color is being computed.
All Packages Class Hierarchy This Package Previous Next Index