mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 11:11:37 +00:00
[vulkan] Render all the requested lights
Starting at start and ending at count doesn't end as well as one might like.
This commit is contained in:
parent
e4ed868023
commit
6fe127dd0b
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ main (void)
|
|||
vec3 light = vec3 (0);
|
||||
|
||||
uint start = bitfieldExtract (queue, 0, 16);
|
||||
uint count = bitfieldExtract (queue, 16, 16);
|
||||
uint end = start + bitfieldExtract (queue, 16, 16);
|
||||
|
||||
for (uint i = start; i < count; i++) {
|
||||
for (uint i = start; i < end; i++) {
|
||||
uint id = lightIds[i];
|
||||
LightData l = lights[id];
|
||||
vec3 dir = l.position.xyz - l.position.w * p;
|
||||
|
|
Loading…
Reference in a new issue