$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Renderer Configuration

Core rendering settings (MSAA, Buffers, Feature Flags). More...

Macros

#define USE_TRANSPARENT_BILLBOARDS
 Enable High Quality Transparent Sphere Rendering. More...
 

Enumerations

enum  { DEFAULT_SAMPLES = 1 }
 Multisample Anti-Aliasing (MSAA) sample count. More...
 

Variables

static const unsigned int DEFAULT_STENCIL_MASK = 0xFF
 Value for all bits enabled in a stencil mask. More...
 

Detailed Description

Core rendering settings (MSAA, Buffers, Feature Flags).

Macro Definition Documentation

◆ USE_TRANSPARENT_BILLBOARDS

#define USE_TRANSPARENT_BILLBOARDS

Enable High Quality Transparent Sphere Rendering.

If Defined:

  • Spheres are rendered as Transparent billboards (GL_BLEND enabled).
  • Requires CPU-side sorting (Back-to-Front) every frame in app_render().
  • Uses sphere_sorting.c module.
  • Alpha channel allows true see-through glass effects.

If Undefined (Legacy/Fast Calculation):

  • Spheres are rendered as Opaque (GL_DEPTH_TEST enabled, Write enabled).
  • No sorting required (Fast).
  • Alpha channel is hijacked to store Luminance for FXAA optimization.
See also
sphere_rendering.md

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Multisample Anti-Aliasing (MSAA) sample count.

Used in app_init() to configure the GLFW window buffer.

  • 1: No MSAA (Aliased, fastest).
  • 4: Standard Quality.
  • 8 or 16: High Quality (Costly).
Note
Only affects the main framebuffer (forward rendering geometry). Does not affect offscreen buffers (Post-Process, IBL) which are single-sampled.
Enumerator
DEFAULT_SAMPLES 

Variable Documentation

◆ DEFAULT_STENCIL_MASK

const unsigned int DEFAULT_STENCIL_MASK = 0xFF
static

Value for all bits enabled in a stencil mask.