mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
[scene] Make the empty world work with lights
Needed visibility and a sky surf flag, otherwise no lights were visible (why does this seem familiar?).
This commit is contained in:
parent
d14b17567e
commit
72cb7d3fdd
1 changed files with 5 additions and 1 deletions
|
@ -46,11 +46,14 @@
|
||||||
|
|
||||||
#include "scn_internal.h"
|
#include "scn_internal.h"
|
||||||
|
|
||||||
|
static byte empty_visdata[] = { 0x01 };
|
||||||
|
|
||||||
static mleaf_t empty_leafs[] = {
|
static mleaf_t empty_leafs[] = {
|
||||||
[1] = {
|
[1] = {
|
||||||
.contents = CONTENTS_EMPTY,
|
.contents = CONTENTS_EMPTY,
|
||||||
.mins = {-INFINITY, -INFINITY, -INFINITY},
|
.mins = {-INFINITY, -INFINITY, -INFINITY},
|
||||||
.maxs = { INFINITY, INFINITY, INFINITY},
|
.maxs = { INFINITY, INFINITY, INFINITY},
|
||||||
|
.compressed_vis = empty_visdata,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -59,7 +62,7 @@ static mnode_t *empty_leaf_parents[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int empty_leaf_flags[] = {
|
static int empty_leaf_flags[] = {
|
||||||
[1] = 0,
|
[1] = SURF_DRAWSKY,
|
||||||
};
|
};
|
||||||
|
|
||||||
static char empty_entities[] = { 0 };
|
static char empty_entities[] = { 0 };
|
||||||
|
@ -75,6 +78,7 @@ static model_t empty_world = {
|
||||||
.nodes = (mnode_t *) &empty_leafs[1],
|
.nodes = (mnode_t *) &empty_leafs[1],
|
||||||
.leafs = empty_leafs,
|
.leafs = empty_leafs,
|
||||||
.entities = empty_entities,
|
.entities = empty_entities,
|
||||||
|
.visdata = empty_visdata,
|
||||||
.leaf_parents = empty_leaf_parents,
|
.leaf_parents = empty_leaf_parents,
|
||||||
.leaf_flags = empty_leaf_flags,
|
.leaf_flags = empty_leaf_flags,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue