diff options
Diffstat (limited to 'src/gpu/effect.h')
| -rw-r--r-- | src/gpu/effect.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h index 5d835ad..30e43d1 100644 --- a/src/gpu/effect.h +++ b/src/gpu/effect.h @@ -47,16 +47,17 @@ class Effect { return false; } - // Helper: get initialized CommonPostProcessUniforms based on current dimensions - // If aspect_ratio < 0, computes from width_/height_ - CommonPostProcessUniforms get_common_uniforms(float time = 0.0f, - float beat_time = 0.0f, - float beat_phase = 0.0f, - float intensity = 0.0f, - float aspect_ratio = -1.0f) const { + // Helper: get initialized CommonPostProcessUniforms based on current + // dimensions If aspect_ratio < 0, computes from width_/height_ + CommonPostProcessUniforms + get_common_uniforms(float time = 0.0f, float beat_time = 0.0f, + float beat_phase = 0.0f, float intensity = 0.0f, + float aspect_ratio = -1.0f) const { return { .resolution = {static_cast<float>(width_), static_cast<float>(height_)}, - .aspect_ratio = aspect_ratio < 0.0f ? static_cast<float>(width_) / static_cast<float>(height_) : aspect_ratio, + .aspect_ratio = aspect_ratio < 0.0f ? static_cast<float>(width_) / + static_cast<float>(height_) + : aspect_ratio, .time = time, .beat_time = beat_time, .beat_phase = beat_phase, |
