HybridDog
fb4ee6ac93
Fix mip map size calculation for non-square textures
...
The size of a mip map is `max{floor(width / 2 ^ level), 1} x max{floor(height / 2 ^ level), 1}`,
where `width x height` is the size of the full-resolution image,
`level` is the integer mip map level
and the smallest mip map has `1 x 1` resolution.
If `regenerateMipMapLevels` is called with custom mip map data,
the mip map sizes are calculated in this function and separately in `uploadTexture`.
`uploadTexture` calculates a size by `floor(width / 2 ^ level) x floor(height / 2 ^ level)`.
To support non-square textures, after this change,
`uploadTexture` sets the mip map width or height to `1` if it is `0`.
2024-01-05 14:09:50 +01:00
..
2024-01-04 16:48:35 +01:00
2023-12-19 22:56:31 +01:00
2023-10-13 11:36:52 +02:00
2023-10-13 11:36:52 +02:00
2023-10-13 11:36:52 +02:00
2023-10-25 16:54:43 +02:00
2023-10-25 16:54:43 +02:00
2023-10-22 12:19:14 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-04 23:29:59 +02:00
2023-10-04 23:29:59 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-15 12:59:40 +02:00
2023-10-03 20:37:00 +02:00
2023-10-25 16:54:43 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-15 13:38:24 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-11-01 14:40:11 +01:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-12-10 16:29:22 +01:00
2023-10-03 20:37:00 +02:00
2023-10-15 13:49:54 +02:00
2023-10-15 13:49:54 +02:00
2023-10-15 12:59:40 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-15 13:37:26 +02:00
2023-10-04 23:29:59 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-12-17 18:46:08 +01:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-15 13:36:47 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-04 23:29:59 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2024-01-05 14:09:50 +01:00
2023-10-15 13:37:30 +02:00
2023-10-15 13:36:47 +02:00
2023-10-03 20:37:00 +02:00
2023-10-04 23:29:59 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2024-01-04 21:24:50 +01:00
2023-10-15 12:59:40 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-15 13:39:42 +02:00
2023-10-03 20:37:00 +02:00
2023-04-06 12:38:25 +02:00
2023-07-20 16:29:09 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-04 23:29:59 +02:00
2023-10-04 23:29:59 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-04 23:29:59 +02:00
2023-12-19 22:56:31 +01:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00
2023-10-03 20:37:00 +02:00