Calculate the seed value for a specific temporal and spatial tile.
(
self,
first_seed,
start_index,
vertical_tiles,
horizontal_tiles,
v,
h,
seed_offset,
)
| 555 | return tile_weights |
| 556 | |
| 557 | def _calculate_tile_seed( |
| 558 | self, |
| 559 | first_seed, |
| 560 | start_index, |
| 561 | vertical_tiles, |
| 562 | horizontal_tiles, |
| 563 | v, |
| 564 | h, |
| 565 | seed_offset, |
| 566 | ): |
| 567 | """Calculate the seed value for a specific temporal and spatial tile.""" |
| 568 | return ( |
| 569 | first_seed |
| 570 | + start_index * (vertical_tiles * horizontal_tiles) |
| 571 | + v * horizontal_tiles |
| 572 | + h |
| 573 | + seed_offset |
| 574 | ) |
| 575 | |
| 576 | def _get_per_tile_value(self, value_list, tile_index): |
| 577 | """Get a value from a per-tile configuration list, using the last value if the list is shorter.""" |
no outgoing calls
no test coverage detected