Built-in GLSL shaders and uniform parameters for Carousel effects.
static std::string_view parallax()
Return the GLSL source for the PARALLAX style.
static std::string_view blurUnfocused()
Return the GLSL source for the BLUR_UNFOCUSED style.
static std::string_view glowCenter()
Return the GLSL source for the GLOW_CENTER style.
static void applyUniforms(sf::Shader &shader, Style style, const Params ¶ms)
Push the appropriate Params fields as uniforms to shader.
static std::string_view zoomPulse()
Return the GLSL source for the ZOOM_PULSE style.
static std::string_view reflection()
Return the GLSL source for the REFLECTION style.
static std::string_view grayscaleEdges()
Return the GLSL source for the GRAYSCALE_EDGES style.
static std::string_view rotation3D()
Return the GLSL source for the ROTATION_3D style.
static std::string_view coverflow3D()
Return the GLSL source for the COVERFLOW_3D style.
static std::string_view waveDistortion()
Return the GLSL source for the WAVE_DISTORTION style.
static std::string_view depthOfField()
Return the GLSL source for the DEPTH_OF_FIELD style.
static std::string_view sepiaTone()
Return the GLSL source for the SEPIA_TONE style.
static std::string_view vignette()
Return the GLSL source for the VIGNETTE style.
static std::string_view slideAngle()
Return the GLSL source for the SLIDE_ANGLE style.
Style
Available built-in visual styles.
static std::string_view fadeEdges()
Return the GLSL source for the FADE_EDGES style.
static std::string_view colorTint()
Return the GLSL source for the COLOR_TINT style.
static std::string_view scaleCenter()
Return the GLSL source for the SCALE_CENTER style.
Vector2< float > Vector2f
All uniform parameters shared across the built-in shaders.
float intensity
General intensity multiplier.
float glowStrength
Glow intensity factor.
float blurAmount
Blur radius in pixels for unfocused items.
float fadeWidth
Edge fade width in pixels.
float parallaxStrength
Parallax scroll factor.
float tintStrength
Tint blend factor (0 = no tint, 1 = full).
float focusWidth
Normalized width of the in-focus zone.
float totalWidth
Total carousel width in pixels.
float reflectionHeight
Reflection zone height (normalized).
float time
Elapsed time in seconds (updated per frame).
float minScale
Minimum scale applied to off-center items.
sf::Glsl::Vec3 tintColor
RGB tint color.
float amplitude
Wave distortion amplitude (normalized).
float strength
General effect strength multiplier.
float pulseAmount
Pulse scale magnitude.
float colorWidth
Colored band width (normalized).
float skewAmount
Horizontal skew factor.
float pulseSpeed
Pulse animation speed in cycles per second.
float centerX
Normalized horizontal center (0–1).
sf::Vector2f textureSize
Render texture dimensions in pixels.
float reflectionAlpha
Reflection opacity.
float radius
Vignette radius (normalized, 0–1).
float perspective
Perspective distortion amount.
float scaleWidth
Normalized width of the scale transition zone.
float frequency
Wave distortion frequency.
float centerY
Normalized vertical center (0–1).
float rotationAngle
3D rotation angle in radians.
sf::Glsl::Vec3 glowColor
RGB glow color.
float glowWidth
Glow falloff width (normalized).
float maxScale
Maximum scale applied to the center item.