Game Development Reference
In-Depth Information
FastMath.pow(sunHeight, 4));
} else {
color.interpolate(eveningColor, nightColor,
FastMath.pow(sunHeight, 4));
}
((Geometry)spatial).getMaterial().setColor("Color",
color);
6. Going back to the application class, we create a box shaped Geometry
called sky
7. for the control with 10f sides.
8. Like the sun geometry, sky should have the Sky QueueBucket , Shad-
owMode.Offand CullHint.Never settings applied to it.
9. In addition, we should call getAdditionalRenderState and set
FaceCullMode to FaceCullMode.Off .
Search WWH ::




Custom Search