Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::programs::DropShadowParams Struct Reference

Uniform straight flood color and pixel offset, split per axis by SplitPixelShift. More...

#include "donner/gpu/shader/programs/DropShadow.h"

Public Attributes

float color [4]
 Straight RGBA flood color; the shader premultiplies.
int32_t shiftX
 Whole-pixel base of the shadow offset along x.
int32_t shiftY
 Whole-pixel base of the shadow offset along y.
float weightX
 Constant blend weight along x.
float weightY
 Constant blend weight along y.

Detailed Description

Uniform straight flood color and pixel offset, split per axis by SplitPixelShift.

Member Data Documentation

◆ color

float donner::gpu::shader::programs::DropShadowParams::color[4]

Straight RGBA flood color; the shader premultiplies.

◆ shiftX

int32_t donner::gpu::shader::programs::DropShadowParams::shiftX

Whole-pixel base of the shadow offset along x.

◆ shiftY

int32_t donner::gpu::shader::programs::DropShadowParams::shiftY

Whole-pixel base of the shadow offset along y.

◆ weightX

float donner::gpu::shader::programs::DropShadowParams::weightX

Constant blend weight along x.

◆ weightY

float donner::gpu::shader::programs::DropShadowParams::weightY

Constant blend weight along y.


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