KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::RHI_LAYER_DIM Struct Reference

Fade of a whole layer towards a colour, laid out as the push constants of layer_dim.glsl. More...

#include <frame_packet.h>

Public Member Functions

bool operator== (const RHI_LAYER_DIM &aOther) const =default
 

Public Attributes

float toward [3] = { 0.0f, 0.0f, 0.0f }
 
float keep = 1.0f
 1 leaves the layer as it is
 

Detailed Description

Fade of a whole layer towards a colour, laid out as the push constants of layer_dim.glsl.

High contrast uses it to dim an inactive layer, and elements flagged RHI_INSTANCE_UNDIMMED keep their colour.

Definition at line 154 of file frame_packet.h.

Member Function Documentation

◆ operator==()

bool KIGFX::RHI_LAYER_DIM::operator== ( const RHI_LAYER_DIM & aOther) const
default

Member Data Documentation

◆ keep

float KIGFX::RHI_LAYER_DIM::keep = 1.0f

1 leaves the layer as it is

Definition at line 157 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::SetSceneLayerDim().

◆ toward

float KIGFX::RHI_LAYER_DIM::toward[3] = { 0.0f, 0.0f, 0.0f }

Definition at line 156 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::SetSceneLayerDim().


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