More work on level lights.

This commit is contained in:
Dario 2021-04-11 20:50:44 -03:00
parent 179193f0d5
commit bdfc5dcf26
4 changed files with 1170 additions and 24 deletions

View File

@ -43,7 +43,7 @@
0.20000000298023224,
0.800000011920929
],
"flickerIntensity": 0.0,
"flickerIntensity": 0.07500000298023224,
"groupBits": 64,
"pointRadius": 25.0,
"position": [
@ -559,7 +559,7 @@
0.20000000298023224,
0.0
],
"flickerIntensity": 0.0,
"flickerIntensity": 0.07500000298023224,
"groupBits": 64,
"pointRadius": 25.0,
"position": [
@ -630,7 +630,7 @@
"attenuationExponent": 2.0,
"attenuationRadius": 100.0,
"diffuseColor": [
0.80000000298023224,
0.800000011920929,
0.800000011920929,
0.0
],
@ -661,7 +661,7 @@
"attenuationExponent": 2.0,
"attenuationRadius": 100.0,
"diffuseColor": [
0.80000000298023224,
0.800000011920929,
0.800000011920929,
0.0
],

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,8 @@
"presets" : [
{
"name": "Simple",
"lightSampleSettings": []
"lightSampleSettings": [
]
},
{
"name": "Soft",

View File

@ -2027,6 +2027,11 @@ void gfx_run(Gfx *commands) {
}
void gfx_end_frame(void) {
#ifdef GFX_SEPARATE_PROJECTIONS
gd_set_identity_mat4(&matrices.view_matrix);
gd_set_identity_mat4(&matrices.inv_view_matrix);
#endif
if (!dropped_frame) {
gfx_rapi->finish_render();
gfx_wapi->swap_buffers_end();