com.brackeen.javagamebook.graphics3D
Class ShadedTexturedPolygonRenderer
java.lang.Object
com.brackeen.javagamebook.graphics3D.PolygonRenderer
com.brackeen.javagamebook.graphics3D.FastTexturedPolygonRenderer
com.brackeen.javagamebook.graphics3D.ShadedTexturedPolygonRenderer
- public class ShadedTexturedPolygonRenderer
- extends FastTexturedPolygonRenderer
The ShadedTexturedPolygonRenderer class is a PolygonRenderer
that renders ShadedTextured dynamically with one light source.
By default, the ambient light intensity is 0.5 and there
is no point light.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadedTexturedPolygonRenderer
public ShadedTexturedPolygonRenderer(Transform3D camera,
ViewWindow viewWindow)
ShadedTexturedPolygonRenderer
public ShadedTexturedPolygonRenderer(Transform3D camera,
ViewWindow viewWindow,
boolean clearViewEveryFrame)
getLightSource
public PointLight3D getLightSource()
- Gets the light source for this renderer.
setLightSource
public void setLightSource(PointLight3D lightSource)
- Sets the light source for this renderer.
getAmbientLightIntensity
public float getAmbientLightIntensity()
- Gets the ambient light intensity.
setAmbientLightIntensity
public void setAmbientLightIntensity(float i)
- Sets the ambient light intensity, generally between 0 and
1.