#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. | |
| 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.
| float pulp::view::ChartShaderPresetOptions::bevel_width = 0.35f |
Fraction of the half width the bevel or channel wall occupies, (0, 1].
| 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.
| float pulp::view::ChartShaderPresetOptions::glow_sigma = 6.0f |
glow: Gaussian falloff outside the band, in local units, from 0 to kChartGlowSigmaMax.
| float pulp::view::ChartShaderPresetOptions::intensity = 1.0f |
Strength of the highlight, specular or glow, >= 0. Zero removes it.
| 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.
| float pulp::view::ChartShaderPresetOptions::light_elevation_deg = 45.0f |
Height of the light above the surface, 0 (grazing) to 90 (overhead).
| bool pulp::view::ChartShaderPresetOptions::pressed = false |
bevel only: a pressed bevel sinks instead of rising, which reverses which edge catches the light.
| ChartProfile pulp::view::ChartShaderPresetOptions::profile = ChartProfile::round |
Cross-section for tube and light-pipe.