VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Attributes | List of all members
ParticleShaderParams Struct Reference

Structure holding the state for shaders used in ParticleRenderItem. More...

Public Attributes

QRectF updateRegion
 Subsection of the frame buffer and viewport which needs to get rendered. More...
 
float aspectRatio = 0.0f
 Aspect ratio of the viewport. More...
 
float alpha = 0.0f
 Overall transparency of the rendered effect. More...
 
float zoomFactor = 0.0f
 Amount of zoom relative to a reference zoom amount. More...
 
float highlightWidth = 0.0f
 Width of the highlight produced by the inner bevel effect. More...
 
float highlightAlpha = 0.0f
 Transparency of the highlight effect. More...
 
QColor tintColor
 Base color of the inner shadow effect, which tints colors beneath this effect. More...
 
QPointF shadowOffset
 Offset of the inner shadow in world coordinates. More...
 
float shadowAlpha = 0.0f
 Transparency of the inner shadow effect. More...
 
QColor shadowColor
 Color of the shadowed parts of the inner shadow effect. More...
 
TexturePtr texture
 Texture referencing the main FBO. More...
 
TexturePtr specularTexture
 Texture referencing the secondary FBO containing the fake specular lighting. More...
 

Detailed Description

Structure holding the state for shaders used in ParticleRenderItem.

Some shaders may use only use a subset of these states.

Member Data Documentation

float ParticleShaderParams::alpha = 0.0f

Overall transparency of the rendered effect.

float ParticleShaderParams::aspectRatio = 0.0f

Aspect ratio of the viewport.

float ParticleShaderParams::highlightAlpha = 0.0f

Transparency of the highlight effect.

float ParticleShaderParams::highlightWidth = 0.0f

Width of the highlight produced by the inner bevel effect.

0.0f gives no highlight, and larger values give wider highlights. The width of the highlight approaches a limit non-linearly.

float ParticleShaderParams::shadowAlpha = 0.0f

Transparency of the inner shadow effect.

QColor ParticleShaderParams::shadowColor

Color of the shadowed parts of the inner shadow effect.

QPointF ParticleShaderParams::shadowOffset

Offset of the inner shadow in world coordinates.

TexturePtr ParticleShaderParams::specularTexture

Texture referencing the secondary FBO containing the fake specular lighting.

TexturePtr ParticleShaderParams::texture

Texture referencing the main FBO.

QColor ParticleShaderParams::tintColor

Base color of the inner shadow effect, which tints colors beneath this effect.

QRectF ParticleShaderParams::updateRegion

Subsection of the frame buffer and viewport which needs to get rendered.

float ParticleShaderParams::zoomFactor = 0.0f

Amount of zoom relative to a reference zoom amount.