All uniform parameters shared across the built-in shaders. More...
#include <ShaderLibrary.h>
Public Attributes | |
| float | amplitude = 0.02f |
| Wave distortion amplitude (normalized). | |
| float | blurAmount = 2.0f |
| Blur radius in pixels for unfocused items. | |
| float | centerX = 0.5f |
| Normalized horizontal center (0–1). | |
| float | centerY = 0.5f |
| Normalized vertical center (0–1). | |
| float | colorWidth = 0.25f |
| Colored band width (normalized). | |
| float | fadeWidth = 50.0f |
| Edge fade width in pixels. | |
| float | focusWidth = 0.2f |
| Normalized width of the in-focus zone. | |
| float | frequency = 10.0f |
| Wave distortion frequency. | |
| sf::Glsl::Vec3 | glowColor = {1.0f, 1.0f, 0.8f} |
| RGB glow color. | |
| float | glowStrength = 0.3f |
| Glow intensity factor. | |
| float | glowWidth = 0.3f |
| Glow falloff width (normalized). | |
| float | intensity = 0.8f |
| General intensity multiplier. | |
| float | maxScale = 1.5f |
| Maximum scale applied to the center item. | |
| float | minScale = 0.6f |
| Minimum scale applied to off-center items. | |
| float | parallaxStrength = 0.1f |
| Parallax scroll factor. | |
| float | perspective = 0.8f |
| Perspective distortion amount. | |
| float | pulseAmount = 0.05f |
| Pulse scale magnitude. | |
| float | pulseSpeed = 2.0f |
| Pulse animation speed in cycles per second. | |
| float | radius = 0.8f |
| Vignette radius (normalized, 0–1). | |
| float | reflectionAlpha = 0.4f |
| Reflection opacity. | |
| float | reflectionHeight = 0.5f |
| Reflection zone height (normalized). | |
| float | rotationAngle = 0.5f |
| 3D rotation angle in radians. | |
| float | scaleWidth = 0.3f |
| Normalized width of the scale transition zone. | |
| float | skewAmount = 0.3f |
| Horizontal skew factor. | |
| float | strength = 0.5f |
| General effect strength multiplier. | |
| sf::Vector2f | textureSize = {720.0f, 480.0f} |
| Render texture dimensions in pixels. | |
| float | time = 0.0f |
| Elapsed time in seconds (updated per frame). | |
| sf::Glsl::Vec3 | tintColor = {1.0f, 0.8f, 0.6f} |
| RGB tint color. | |
| float | tintStrength = 0.3f |
| Tint blend factor (0 = no tint, 1 = full). | |
| float | totalWidth = 720.0f |
| Total carousel width in pixels. | |
All uniform parameters shared across the built-in shaders.
Not every shader uses every field. Parameters that are irrelevant to the active style are simply ignored. textureSize and totalWidth are updated automatically by Carousel before the shader is applied.
Definition at line 60 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::amplitude = 0.02f |
Wave distortion amplitude (normalized).
Definition at line 93 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::blurAmount = 2.0f |
Blur radius in pixels for unfocused items.
Definition at line 72 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::centerX = 0.5f |
Normalized horizontal center (0–1).
Definition at line 63 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::centerY = 0.5f |
Normalized vertical center (0–1).
Definition at line 64 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::colorWidth = 0.25f |
Colored band width (normalized).
Definition at line 102 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::fadeWidth = 50.0f |
Edge fade width in pixels.
Definition at line 82 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::focusWidth = 0.2f |
Normalized width of the in-focus zone.
Definition at line 73 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::frequency = 10.0f |
Wave distortion frequency.
Definition at line 94 of file ShaderLibrary.h.
| sf::Glsl::Vec3 ml::ShaderLibrary::Params::glowColor = {1.0f, 1.0f, 0.8f} |
RGB glow color.
Definition at line 77 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::glowStrength = 0.3f |
Glow intensity factor.
Definition at line 79 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::glowWidth = 0.3f |
Glow falloff width (normalized).
Definition at line 104 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::intensity = 0.8f |
General intensity multiplier.
Definition at line 103 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::maxScale = 1.5f |
Maximum scale applied to the center item.
Definition at line 68 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::minScale = 0.6f |
Minimum scale applied to off-center items.
Definition at line 67 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::parallaxStrength = 0.1f |
Parallax scroll factor.
Definition at line 99 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::perspective = 0.8f |
Perspective distortion amount.
Definition at line 87 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::pulseAmount = 0.05f |
Pulse scale magnitude.
Definition at line 96 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::pulseSpeed = 2.0f |
Pulse animation speed in cycles per second.
Definition at line 95 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::radius = 0.8f |
Vignette radius (normalized, 0–1).
Definition at line 84 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::reflectionAlpha = 0.4f |
Reflection opacity.
Definition at line 101 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::reflectionHeight = 0.5f |
Reflection zone height (normalized).
Definition at line 100 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::rotationAngle = 0.5f |
3D rotation angle in radians.
Definition at line 88 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::scaleWidth = 0.3f |
Normalized width of the scale transition zone.
Definition at line 69 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::skewAmount = 0.3f |
Horizontal skew factor.
Definition at line 89 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::strength = 0.5f |
General effect strength multiplier.
Definition at line 83 of file ShaderLibrary.h.
| sf::Vector2f ml::ShaderLibrary::Params::textureSize = {720.0f, 480.0f} |
Render texture dimensions in pixels.
Definition at line 107 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::time = 0.0f |
Elapsed time in seconds (updated per frame).
Definition at line 92 of file ShaderLibrary.h.
| sf::Glsl::Vec3 ml::ShaderLibrary::Params::tintColor = {1.0f, 0.8f, 0.6f} |
RGB tint color.
Definition at line 76 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::tintStrength = 0.3f |
Tint blend factor (0 = no tint, 1 = full).
Definition at line 78 of file ShaderLibrary.h.
| float ml::ShaderLibrary::Params::totalWidth = 720.0f |
Total carousel width in pixels.
Definition at line 108 of file ShaderLibrary.h.