Camera definition and helper functions for view setup.
constexpr Color DEFAULT_COLOR
The default mesh color: a neutral light gray (0.7, 0.7, 0.7).
constexpr Color WHITE
An opaque white color (1, 1, 1, 1).
ShadingMode
How surface normals are interpolated across triangles.
@ SMOOTH
Smooth (Gouraud) shading: normals are interpolated across each triangle, producing a smooth,...
@ FLAT
Flat shading: each triangle uses a single normal, giving a faceted, low-poly look.
ProjectionType
The type of 3D→2D projection used by the camera.
@ PERSPECTIVE
Perspective projection: objects farther away appear smaller.
constexpr Color TRANSPARENT_BLACK
A fully transparent black color (0, 0, 0, 0).
An RGBA color with floating-point components.
All settings that control rendering output.
std::vector< Light > lights
List of light sources.
bool fog_enabled
Enable depth fog (default: false).
Color background_color
Background color (default: opaque white).
float ambient
Ambient light level (default: 0.3).
float fog_start
Distance at which fog begins (in world units).
float shininess
Shininess exponent (default: 0.0 = no specular).
float contrast
Contrast adjustment (default: 1.0 = no change).
int height
Image height in pixels (default: 600).
Color wireframe_color
Color of the wireframe lines (default: black).
int width
Image width in pixels (default: 800).
float ssao_intensity
SSAO darkening intensity (default: 0.8).
std::vector< ClipPlane > clip_planes
Optional clip planes for cross-section views.
Color default_color
Default color for meshes without explicit vertex/face colors.
float far_plane
Far clipping plane distance (default: 10000.0).
bool backface_culling
Enable backface culling (default: true).
Color specular_color
Specular highlight color (default: transparent = no specular).
bool ssao_enabled
Enable SSAO (default: false).
int threads
Number of render threads (default: 0 = auto-detect).
int aa_samples
Anti-aliasing sample count (default: 1 = no AA).
bool wireframe
Draw triangle edges as lines (default: false).
float ssao_radius
SSAO sample radius in pixels (default: 16).
ShadingMode shading
Shading mode (default: SMOOTH).
float near_plane
Near clipping plane distance (default: 0.1).
float fog_end
Distance at which fog is fully opaque (in world units).
ProjectionType projection
Projection type (default: PERSPECTIVE).
Color fog_color
The color that distant objects fade into.
bool invert_normals
Flip all surface normals (default: false).
Fundamental types used throughout the scimesh rendering engine.