public class RaytracingRenderer extends AbstractRenderer
Constructor and Description |
---|
RaytracingRenderer(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
com.google.gwt.canvas.client.Canvas |
getCanvas() |
void |
render(Scene scene,
Camera camera) |
void |
setClearColor(Color color,
double alpha)
Sets the the background color, using
Color for the color and alpha for the opacity. |
void |
setSize(int width,
int height) |
getAbsoluteAspectRation, getAbsoluteHeight, getAbsoluteWidth, getClearAlpha, getClearColor, isAutoClear, setAutoClear, setClearColor, setClearColor, setClearColor
public com.google.gwt.canvas.client.Canvas getCanvas()
public void setSize(int width, int height)
setSize
in class AbstractRenderer
public void setClearColor(Color color, double alpha)
AbstractRenderer
Color
for the color and alpha for the opacity.setClearColor
in class AbstractRenderer
color
- the Color
instance.alpha
- the opacity of the scene's background color, range 0.0 (invisible) to 1.0 (opaque).public void clear()
clear
in class AbstractRenderer
public void render(Scene scene, Camera camera)
render
in class AbstractRenderer