Realtime Compositor: Immediately realize transformations #112332

Merged
Omar Emara merged 6 commits from OmarEmaraDev/blender:realize-transformation into main 2023-10-12 11:04:59 +02:00
Showing only changes of commit cd2214350a - Show all commits

View File

@ -46,7 +46,10 @@ static Domain compute_realized_transformation_domain(const Domain &domain)
const float3x3 transformation = math::from_loc_rot_scale<float3x3>(translation, rotation, scale);
return Domain(math::min(int2(math::ceil(size)), int2(GPU_max_texture_size())), transformation);
const int2 domain_size = math::clamp(
int2(math::round(size)), int2(1), int2(GPU_max_texture_size()));
return Domain(domain_size, transformation);
}
void transform(Context &context,