Lephe
3a3f607303
This basic model supports a couple of options, but mostly designed for three targets: * gint on fx-CG 50, with a custom XRAM-streaming rendering engine that is (to my knowledge) more powerful than all other existing options; * The standard SDL/OpenGL combo for desktop platforms, using modern OpenGL 3.3 and some basic shaders. * The web platform with emscripten and its OpenGL ES 2.0 API that maps to WebGL 1.0. OpenGL ES 2.0 code could also be used for mobile platforms if this ever comes up. The current code only includes setting up the program's main loop (update/render) as well as basic rendering. The framework of gint's rendering engine is drawn ("shader"-based rendering in XRAM). On the OpenGL side, some utilities are defined, including a primitive layer of shader code compatibility for OpenGL 3.3 vs. OpenGL ES 2.0. Actual rendering is still at prototype stage.
9 lines
103 B
GLSL
9 lines
103 B
GLSL
#version 100
|
|
|
|
#define in varying
|
|
|
|
#define _GL(expr)
|
|
#define _GLES(expr) expr
|
|
|
|
precision mediump float;
|