WIP: eevee-next-world-irradiance #108304

Closed
Jeroen Bakker wants to merge 79 commits from Jeroen-Bakker:eevee-next-world-irradiance into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 34adebcf43 - Show all commits

View File

@ -378,7 +378,7 @@ void GPU_framebuffer_config_array(GPUFrameBuffer *gpu_fb,
void GPU_framebuffer_default_size(GPUFrameBuffer *gpu_fb, int width, int height)
{
unwrap(gpu_fb)->size_set(width, height);
unwrap(gpu_fb)->default_size_set(width, height);
}
/* ---------- Viewport & Scissor Region ----------- */

View File

@ -137,6 +137,7 @@ class FrameBuffer {
void *userData);
uint get_bits_per_pixel();
/* Sets the size after creation. */
inline void size_set(int width, int height)
{
width_ = width;
@ -144,6 +145,15 @@ class FrameBuffer {
dirty_state_ = true;
}
/* Sets the size for frame-buffer with no attachments. */
inline void default_size_set(int width, int height)
{
width_ = width;
height_ = height;
dirty_attachments_ = true;
dirty_state_ = true;
}
inline void viewport_set(const int viewport[4])
{
if (!equals_v4v4_int(viewport_, viewport)) {