7#ifndef PHONG_PIXEL_PROCESSOR_H
8#define PHONG_PIXEL_PROCESSOR_H
qreal Kd
Diffuse light coefficient.
void setLightVector(QVector3D light_vector)
qreal Ks
Specular light coefficient.
qreal shiny_exp
Shinyness exponent.
qreal Is
Total specular light.
QVector< quint16 > IlluminatePixelFromHeightmap(quint32 posup, quint32 posdown, quint32 posleft, quint32 posright)
bool diffuseLightIsEnabled
QVector3D reflection_vector
qreal Ia
Total ambient light.
qreal Id
Total diffuse light.
qreal Ka
Ambient light coefficient.
QVector< quint16 > IlluminatePixel()
void normalizeHeightmap()
PhongPixelProcessor(quint32 pixelArea, const KisPropertiesConfigurationSP config)
QVector< double > realheightmap
void initialize(const KisPropertiesConfigurationSP config)
quint8 size
Size of this stuff.
bool specularLightIsEnabled
QVector< quint16 > IlluminatePixelFromNormalmap(qreal r, qreal g, qreal b)
QList< Illuminant > lightSources
Light sources to use (those disabled in the GUI are not present here)