[scene] Add a render-internal lightid component
The vulkan shadow code needs to associate extra information with the lights, but I don't want such renderer-specific data in the scene.
This commit is contained in:
parent
faa2245220
commit
05f0fe9204
|
@ -52,6 +52,7 @@ enum scene_components {
|
||||||
scene_light,
|
scene_light,
|
||||||
scene_efrags,
|
scene_efrags,
|
||||||
scene_lightstyle,
|
scene_lightstyle,
|
||||||
|
scene_lightid,
|
||||||
|
|
||||||
//FIXME these should probably be private to the sw renderer (and in a
|
//FIXME these should probably be private to the sw renderer (and in a
|
||||||
//group, which needs to be implemented), but need to sort out a good
|
//group, which needs to be implemented), but need to sort out a good
|
||||||
|
|
|
@ -166,6 +166,10 @@ static const component_t scene_components[scene_comp_count] = {
|
||||||
.size = sizeof (int),
|
.size = sizeof (int),
|
||||||
.name = "lightstyle",
|
.name = "lightstyle",
|
||||||
},
|
},
|
||||||
|
[scene_lightid] = {
|
||||||
|
.size = sizeof (uint32_t),
|
||||||
|
.name = "lightid",
|
||||||
|
},
|
||||||
|
|
||||||
[scene_sw_matrix] = {
|
[scene_sw_matrix] = {
|
||||||
.size = sizeof (mat4f_t),
|
.size = sizeof (mat4f_t),
|
||||||
|
|
Loading…
Reference in New Issue