Class RGBCubeDemo
java.lang.Object
eu.svjatoslav.sixth.e3d.examples.RGBCubeDemo
Demo showing a 3D cube of colored square plates where each axis represents a color channel.
Creates a 10x10x10 grid of square plates arranged as flat XY planes. Each plate is rendered as two textured triangles using a solid-color texture with a black border. Color is determined by the plate's 3D grid position:
- X position → Red intensity (0-255)
- Y position → Green intensity (0-255)
- Z position → Blue intensity (0-255)
The black border around each plate visually separates individual cells. The result is a volumetric RGB color cube that can be explored by flying around.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RGBCubeDemo
public RGBCubeDemo()
-
-
Method Details
-
main
Entry point for the RGB cube demo.- Parameters:
args- command line arguments (ignored)
-