wrote some render-functions and shaders

- rudimentary vertex and fragment-shader in shaders/..
- created new Render-Module (unfinished and untested)
This commit is contained in:
Stefan Dresselhaus
2014-01-02 03:35:38 +01:00
parent 673a0f786a
commit 2ff7534ede
6 changed files with 141 additions and 2 deletions

View File

@ -81,6 +81,7 @@ lookupVertex map' x y =
(cr, cg, cb) = colorLookup map' (x,y)
(vx, vy, vz) = coordLookup (x,y) $ heightLookup map' (x,y)
(nx, ny, nz) = (0.0, 1.0, 0.0) :: (GLfloat, GLfloat, GLfloat)
--TODO: calculate normals correctly!
in
[
(vx, cr, nx),