Hannes Janetzek
|
55030c1166
|
refactor: dont pass matrices with MapPosition -> use GLRender.Matrices
|
2013-10-09 01:55:53 +02:00 |
|
Hannes Janetzek
|
7c6ec614a2
|
make TileManager non-static
|
2013-10-09 01:55:52 +02:00 |
|
Hannes Janetzek
|
f2b7a9fdf8
|
formatting
|
2013-10-09 01:55:52 +02:00 |
|
Hannes Janetzek
|
8fb7dc831c
|
building model shading
|
2013-10-09 01:55:52 +02:00 |
|
Hannes Janetzek
|
c21b5b629b
|
building color tweaks
|
2013-10-09 01:55:51 +02:00 |
|
Hannes Janetzek
|
373d45e008
|
building color
|
2013-10-09 01:55:51 +02:00 |
|
Hannes Janetzek
|
e99a4279bf
|
keep track of GL_BLEND state: GLState.blend(enable)
|
2013-10-09 01:55:51 +02:00 |
|
Hannes Janetzek
|
9fa87855fe
|
no need for synchronized in ExtrusionOverlay
|
2013-10-09 01:55:50 +02:00 |
|
Hannes Janetzek
|
bb22ecd7e3
|
extract Layer drawing utilities from RenderOverlay into BasicOverlay
|
2013-10-09 01:55:50 +02:00 |
|
Hannes Janetzek
|
be748138ac
|
- use Stencil instead of Depth for clipping test
to avoid drawing everything with polygonOffset
- add GLState.useProgram
|
2013-10-09 01:55:50 +02:00 |
|
Hannes Janetzek
|
5f6025206d
|
building color tweaks
|
2013-10-09 01:55:49 +02:00 |
|
Hannes Janetzek
|
9705811f7b
|
fix way too much z-offset used for roof outline
|
2013-10-09 01:55:49 +02:00 |
|
Hannes Janetzek
|
21584637ed
|
cleanup
|
2013-10-09 01:55:48 +02:00 |
|
Hannes Janetzek
|
dabfe680a9
|
one single light direction from north
|
2013-10-09 01:55:48 +02:00 |
|
Hannes Janetzek
|
b8287f9ecf
|
move near plane back, fixes clipping issue with most large buildings
|
2013-10-09 01:55:48 +02:00 |
|
Hannes Janetzek
|
007ab2e3bf
|
fix z-fighting on overlapping buildings:
- modify projection matrix to add offset, glPolygonOffset is not that reliable
|
2013-10-09 01:55:48 +02:00 |
|
Hannes Janetzek
|
a9f5525c50
|
trying to get polygon offset right...
|
2013-10-09 01:55:48 +02:00 |
|
Hannes Janetzek
|
bfe8cf2889
|
use setTileMatrix utility function
|
2013-10-09 01:55:48 +02:00 |
|
Hannes Janetzek
|
1c11cd1780
|
building shader experiments
|
2013-10-09 01:55:47 +02:00 |
|
Hannes Janetzek
|
088f3e2385
|
enable glDepthMask before clearing depth buffer:
- fixes building rendering on nexus and asus tablet
|
2013-10-09 01:55:47 +02:00 |
|
Hannes Janetzek
|
1807f0b9dc
|
animate buildings
|
2013-10-09 01:55:47 +02:00 |
|
Hannes Janetzek
|
d0ad2f3bd4
|
- LineClipper added start(x0,y0), clipNext(x1,y1) 'state' clipping mode
- use vec4 array for extrusion colors -> set color only once for all tiles
- use full range for direction vector in extrusion vertex
|
2013-10-09 01:55:47 +02:00 |
|
Hannes Janetzek
|
05e6490d3a
|
cleanups
|
2013-10-09 01:55:47 +02:00 |
|
Hannes Janetzek
|
ed39f9fe34
|
buildings: decrease contrast with z-distance
|
2013-10-09 01:52:20 +02:00 |
|
Hannes Janetzek
|
885eec73d5
|
cleanup, less bright buildings
|
2013-10-09 01:52:20 +02:00 |
|
Hannes Janetzek
|
7cc32f1572
|
use GLState for depth and stencil test
|
2013-10-09 01:52:20 +02:00 |
|
Hannes Janetzek
|
e50ea0c2ba
|
refactor: move rendering of base layers to separate class
- keep track of GL state in GLState
|
2013-10-09 01:52:20 +02:00 |
|
Hannes Janetzek
|
99ce02a9bd
|
-rename BuildingOverlay -> ExtrusionOverlay,
even if there is probably nothing else to extrude
- started to draw extrusion layer for proxy tiles
- fixed depth offsetting..
|
2013-10-09 01:52:20 +02:00 |
|