Commit graph

79 commits

Author SHA1 Message Date
Gunnar Birke
a34a125848 WINTERMUTE: Implement image based shadows in fixed function renderer 2020-08-16 21:01:59 +02:00
Gunnar Birke
c570f4f609 WINTERMUTE: Use correct alpha reference 2020-08-16 21:01:59 +02:00
Gunnar Birke
344354649b WINTERMUTE: Transform light data by camera matrix 2020-08-16 12:23:17 +02:00
Gunnar Birke
b557bb7f60 WINTERMUTE: Use/store actual viewport for 3d rendering/picking 2020-08-11 00:46:55 +02:00
Gunnar Birke
bfa52b67d4 WINTERMUTE: Use window dimensions for 2d viewport 2020-08-11 00:46:55 +02:00
Gunnar Birke
74b2184a5d WINTERMUTE: Correctly convert Direct3D viewport parameters 2020-08-11 00:46:55 +02:00
Gunnar Birke
7dbb176b7f WINTERMUTE: Scale projection matrix entries by window/viewport ratio 2020-08-11 00:46:55 +02:00
Gunnar Birke
079b450436 WINTERMUTE: Render light directions again when debugging geometry 2020-08-10 11:24:28 +02:00
Gunnar Birke
cfc652a828 WINTERMUTE: Remove irrelevant comments, fix comment style 2020-08-10 11:24:28 +02:00
Gunnar Birke
126f3b1100 WINTERMUTE: Move common .3ds mesh code to base, remove normals 2020-08-10 11:24:28 +02:00
Gunnar Birke
532573ecd3 WINTERMUTE: Introduce struct to pass fog parameters 2020-08-10 11:24:28 +02:00
Gunnar Birke
03c942fa18 WINTERMUTE: Move scene geometry render code into renderer 2020-08-10 11:24:28 +02:00
Gunnar Birke
7a1567e045 WINTERMUTE: Factor out common renderer code into base 2020-08-10 11:24:28 +02:00
Gunnar Birke
7ac6aa5337 WINTERMUTE: Remove matrix stack, let renderer care about matrix layout 2020-08-10 11:24:28 +02:00
Gunnar Birke
3864ad1dd8 WINTERMUTE: Render shadow volume using VBOs and shaders 2020-08-10 11:24:28 +02:00
Gunnar Birke
b5943fd177 WINTERMUTE: Refactor lighting, implement shader based lighting 2020-08-10 11:24:28 +02:00
Gunnar Birke
1223595120 WINTERMUTE: Add abstract interfaces for renderer and meshes 2020-08-10 11:24:28 +02:00
Gunnar Birke
e003b1896a WINTERMUTE: Remove unnecessary override 2020-07-28 13:52:22 +02:00
Gunnar Birke
25ea38c3bc WINTERMUTE: Implement fog 2020-07-28 13:52:14 +02:00
Gunnar Birke
a1371d002f WINTERMUTE: Handle camera pointer being null 2020-07-26 22:57:08 +02:00
Gunnar Birke
b938293170 WINTERMUTE: Normalize normal vectors of 3d objects 2020-07-26 22:57:08 +02:00
Gunnar Birke
7d5304df4b WINTERMUTE: Use either scene or custom ambient light depending on flag 2020-07-25 22:19:54 +02:00
Gunnar Birke
7b9174934a WINTERMUTE: Do not use GL_REPLACE for texture environment mode 2020-07-25 22:19:53 +02:00
Gunnar Birke
3346fc3595 WINTERMUTE: Enable lighting in 3d render mode 2020-07-25 22:19:53 +02:00
Gunnar Birke
c2aba90498 WINTERMUTE: Add functions for controlling active lights to renderer 2020-07-25 22:19:52 +02:00
Gunnar Birke
d858359c85 WINTERMUTE: Add interfaces for some shadow rendering functions 2020-07-13 19:43:17 +02:00
Gunnar Birke
afdff6afbb WINTERMUTE: Store game pointer in renderer and surfaces 2020-06-28 22:07:09 +02:00
Gunnar Birke
eeab4b2b78 WINTERMUTE: Set blend mode before rendering sprite 2020-06-28 22:07:09 +02:00
Gunnar Birke
0b16083c13 WINTERMUTE: Factor out ray scene casting into renderer 2020-06-28 22:07:09 +02:00
Gunnar Birke
52f5b02b00 WINTERMUTE: Cosmetic changes, make renderer more consistent with wme 2020-06-27 22:54:40 +02:00
Gunnar Birke
83023eb5f9 WINTERMUTE: Check if global renderer color was set and use it if so 2020-06-27 22:54:40 +02:00
Gunnar Birke
31a810e56f WINTERMUTE: Combine texture with vertex color when drawing sprites 2020-06-27 22:54:40 +02:00
Gunnar Birke
f6de2db40a WINTERMUTE: Use correct index offset when setting color 2020-06-27 22:54:40 +02:00
Gunnar Birke
04eb3ad1ef WINTERMUTE: Use our own opengl texture instead of ResidualVM's one 2020-06-27 22:54:40 +02:00
Gunnar Birke
bb126c18ba WINTERMUTE: Store fov in member variable during 3d setup 2020-06-15 14:12:25 +02:00
Gunnar Birke
4a41bda3f8 WINTERMUTE: Do not turn off depth writing in 2d mode 2020-06-15 14:12:25 +02:00
Gunnar Birke
9ace53a8a8 WINTERMUTE: Add function to project point onto the viewport 2020-06-15 14:12:25 +02:00
Gunnar Birke
2000c7294c WINTERMUTE: Store the last 3d projection matrix in renderer 2020-06-15 14:12:25 +02:00
Gunnar Birke
2646ad0d62 WINTERMUTE: Implement getViewport function 2020-06-15 14:12:25 +02:00
Gunnar Birke
b1cd3fddf5 WINTERMUTE: Add function to set the blend mode 2020-06-15 14:12:25 +02:00
Gunnar Birke
bd14fa499f WINTERMUTE: Add functions to set ambient light 2020-06-15 14:12:25 +02:00
Gunnar Birke
3096d4660c WINTERMUTE: Add functions for pushing and popping matrices 2020-06-15 14:12:25 +02:00
Gunnar Birke
5c2303b9f6 WINTERMUTE: Fix code formatting, cosmetic changes 2020-06-07 18:29:05 +02:00
Gunnar Birke
f961611411 WINTERMUTE: Set correct culling mode for scene geometry 2020-06-07 18:29:05 +02:00
Gunnar Birke
baa5bb228c WINTERMUTE: Fix opengl function call arguments 2020-06-07 18:29:05 +02:00
Gunnar Birke
3c1a6c75c8 WINTERMUTE: Properly setup projection and view matrix 2020-06-07 18:29:05 +02:00
Gunnar Birke
ff3b4177fb WINTERMUTE: Fix formatting, add license headers 2020-06-07 18:29:05 +02:00
Gunnar Birke
e64df162ef WINTERMUTE: Set camera matrix during 3d setup 2020-06-07 18:29:05 +02:00
Gunnar Birke
15896112bf WINTERMUTE: Set far plane distance to 1900 (like wme) 2020-06-07 18:29:05 +02:00
Gunnar Birke
10b26ff2d9 WINTERMUTE: Add function to reset model-view transform 2020-06-07 18:29:05 +02:00