feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -696,10 +696,11 @@ void RenderingLightCuller::debug_print_LUT_as_table() {
|
|||
int s = entry.size();
|
||||
|
||||
for (int p = 0; p < 8; p++) {
|
||||
if (p < s)
|
||||
if (p < s) {
|
||||
sz += itos(entry[p]);
|
||||
else
|
||||
} else {
|
||||
sz += "0"; // just a spacer
|
||||
}
|
||||
|
||||
sz += ", ";
|
||||
}
|
||||
|
|
@ -765,12 +766,14 @@ void RenderingLightCuller::add_LUT(int p_plane_0, int p_plane_1, PointOrder p_pt
|
|||
// All entries of the LUT that have plane 0 set and plane 1 not set.
|
||||
for (uint32_t n = 0; n < 64; n++) {
|
||||
// If bit0 not set...
|
||||
if (!(n & bit0))
|
||||
if (!(n & bit0)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// If bit1 set...
|
||||
if (n & bit1)
|
||||
if (n & bit1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Meets criteria.
|
||||
add_LUT_entry(n, p_pts);
|
||||
|
|
@ -791,8 +794,9 @@ void RenderingLightCuller::compact_LUT_entry(uint32_t p_entry_id) {
|
|||
|
||||
int num_pairs = entry.size() / 2;
|
||||
|
||||
if (num_pairs == 0)
|
||||
if (num_pairs == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
LocalVector<uint8_t> temp;
|
||||
|
||||
|
|
@ -816,8 +820,9 @@ void RenderingLightCuller::compact_LUT_entry(uint32_t p_entry_id) {
|
|||
for (int p = 1; p < num_pairs; p++) {
|
||||
unsigned int bit = 1 << p;
|
||||
// Is it done already?
|
||||
if (BFpairs & bit)
|
||||
if (BFpairs & bit) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// There must be at least 1 free pair.
|
||||
// Attempt to add.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue