|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.raytracer.shaders.Shader
apps.lightrays.raytracer.shaders.PhongShader
public class PhongShader
The Class PhongShader.
Constructor Summary | |
---|---|
PhongShader(Scene scene,
Ray incident_ray,
RayHitInfo hit,
SceneObject obj)
Instantiates a new phong shader. |
Method Summary | |
---|---|
void |
getColour(Colour c)
Gets the colour. |
Vector |
reflect()
Reflect. |
Vector |
refract()
Refract. |
Methods inherited from class apps.lightrays.raytracer.shaders.Shader |
---|
getDepth, getIncident_ray, getOptical_properties, setDepth, setIncident_ray, setOptical_properties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhongShader(Scene scene, Ray incident_ray, RayHitInfo hit, SceneObject obj)
scene
- the sceneincident_ray
- the incident_rayhit
- the hitobj
- the objMethod Detail |
---|
public void getColour(Colour c)
Shader
getColour
in class Shader
c
- the cpublic Vector reflect()
public Vector refract()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |