Class LightSourceDemo
java.lang.Object
eu.svjatoslav.sixth.e3d.examples.essentials.LightSourceDemo
Demo showcasing light sources and their effect on shaded surfaces.
This demo displays a white sphere illuminated by two colored light sources: a bright yellow light on the right side and a dim blue light on the left side. The white sphere base color allows the light colors to mix visibly on the surface, demonstrating how multiple light sources contribute to shading.
Run this demo:
java -cp target/sixth-3d-demos.jar eu.svjatoslav.sixth.e3d.examples.essentials.LightSourceDemo
Key concepts demonstrated:
- LightSource creation with position, color, and intensity
- LightSourceMarker for visualizing light positions
- ShadingEnabled on SolidPolygonSphere
- Ambient light configuration
- Multiple lights adding their contributions
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LightSourceDemo
public LightSourceDemo()
-
-
Method Details
-
main
Entry point for the light sources demo.- Parameters:
args- command line arguments (ignored)
-