Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::ChartShaderPresetOptions Struct Reference

#include <chart_shader_presets.hpp>

Public Attributes

canvas::Color color = canvas::Color::rgba8(150, 155, 165)
 Material colour (sRGB) for bevel, inset-channel, tube and the base of centre-highlight.
canvas::Color accent = canvas::Color::rgba8(100, 170, 255)
 Emissive colour (sRGB) for light-pipe, glow and the highlight of centre-highlight.
float light_angle_deg = 120.0f
 Direction the light comes from, in screen degrees counter-clockwise from the right: 90 is from above, 270 from below.
float light_elevation_deg = 45.0f
 Height of the light above the surface, 0 (grazing) to 90 (overhead).
bool pressed = false
 bevel only: a pressed bevel sinks instead of rising, which reverses which edge catches the light.
ChartProfile profile = ChartProfile::round
 Cross-section for tube and light-pipe.
float bevel_width = 0.35f
 Fraction of the half width the bevel or channel wall occupies, (0, 1].
float intensity = 1.0f
 Strength of the highlight, specular or glow, >= 0. Zero removes it.
float glow_sigma = 6.0f
 glow: Gaussian falloff outside the band, in local units, from 0 to kChartGlowSigmaMax.

Member Data Documentation

◆ accent

canvas::Color pulp::view::ChartShaderPresetOptions::accent = canvas::Color::rgba8(100, 170, 255)

Emissive colour (sRGB) for light-pipe, glow and the highlight of centre-highlight.

◆ bevel_width

float pulp::view::ChartShaderPresetOptions::bevel_width = 0.35f

Fraction of the half width the bevel or channel wall occupies, (0, 1].

◆ color

canvas::Color pulp::view::ChartShaderPresetOptions::color = canvas::Color::rgba8(150, 155, 165)

Material colour (sRGB) for bevel, inset-channel, tube and the base of centre-highlight.

◆ glow_sigma

float pulp::view::ChartShaderPresetOptions::glow_sigma = 6.0f

glow: Gaussian falloff outside the band, in local units, from 0 to kChartGlowSigmaMax.

◆ intensity

float pulp::view::ChartShaderPresetOptions::intensity = 1.0f

Strength of the highlight, specular or glow, >= 0. Zero removes it.

◆ light_angle_deg

float pulp::view::ChartShaderPresetOptions::light_angle_deg = 120.0f

Direction the light comes from, in screen degrees counter-clockwise from the right: 90 is from above, 270 from below.

The chart reports its direction in device orientation, so the light stays fixed on screen when the canvas is rotated.

◆ light_elevation_deg

float pulp::view::ChartShaderPresetOptions::light_elevation_deg = 45.0f

Height of the light above the surface, 0 (grazing) to 90 (overhead).

◆ pressed

bool pulp::view::ChartShaderPresetOptions::pressed = false

bevel only: a pressed bevel sinks instead of rising, which reverses which edge catches the light.

◆ profile

ChartProfile pulp::view::ChartShaderPresetOptions::profile = ChartProfile::round

Cross-section for tube and light-pipe.


The documentation for this struct was generated from the following file: