wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
bgi_gl_shaders.h File Reference

Embedded GLSL source strings for the BGI OpenGL rendering pipeline. More...

Go to the source code of this file.

Detailed Description

Embedded GLSL source strings for the BGI OpenGL rendering pipeline.

Three shader programs:

  1. Page-texture program — draws the 2D BGI page buffer as a fullscreen RGBA quad.
  2. Flat Phong program — per-face Phong shading using the flat GLSL qualifier.
  3. Smooth Phong program — per-vertex (Gouraud) Phong shading with interpolated normals.
  4. Line program — depth-tested coloured line segments (no lighting).

All solid shaders implement a two-light Phong model: