Class WindingOrderDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.essentials.WindingOrderDemo
Demo to test winding order and backface culling documentation.
Creates one triangle with CCW winding (front face) following the docs:
- upper-center → lower-left → lower-right
- Backface culling enabled
Expected: green triangle visible (CCW = front face).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera) Builds the demo scene: one CCW-wound green triangle with backface culling enabled, camera pulled back to see it.static voidEntry point for the winding order demo.
-
Constructor Details
-
WindingOrderDemo
public WindingOrderDemo()Creates a new WindingOrderDemo instance.
-
-
Method Details
-
buildScene
public static void buildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera) Builds the demo scene: one CCW-wound green triangle with backface culling enabled, camera pulled back to see it. Called by bothmain(String[])and the golden-image harness — must stay deterministic (no time, no unseeded randomness).- Parameters:
shapes- scene to add shapes tolighting- lighting to configure (unused here)camera- camera to position
-
main
Entry point for the winding order demo.- Parameters:
args- command line arguments (ignored)
-