Age | Commit message (Collapse) | Author |
|
|
|
|
|
Fix SDL_MapRGB and implement SDL_MapRGBA.
|
|
Also provide a test case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double values, and fix one extra byte being needlessly allocated while we are at it
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Instead, read it in as a uniform, so that the same shader can be reused
with different density values.
|
|
Fog support for immediate mode
|
|
|
|
Emscripten filesystem api
|
|
|
|
|
|
This makes the fog a bit more precise, and matches how native OpenGL
calculates the fog value. But it also means that it would be a bit more
expensive to calculate because it is calculated once per pixel.
|
|
|
|
custom behavior like adjusting resolution
|
|
|
|
|
|
|
|
|
|
|
|
The length of the vector should give us more precise fogs, but ancient
OpenGL only uses the z component, so that's what we need to use here as
well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This prevents a bunch of warning messages for things which we don't
support.
|