28 this->m_inputProgram =
nullptr;
42 if (inputColor[3] > 0.0f) {
43 inputColor[0] /= inputColor[3];
44 inputColor[1] /= inputColor[3];
45 inputColor[2] /= inputColor[3];
49 output[0] = inputColor[0] > 0.0f ? inputColor[0] * inputColor[0] : 0.0f;
50 output[1] = inputColor[1] > 0.0f ? inputColor[1] * inputColor[1] : 0.0f;
51 output[2] = inputColor[2] > 0.0f ? inputColor[2] * inputColor[2] : 0.0f;
54 if (inputColor[3] > 0.0f) {
55 output[0] *= inputColor[3];
56 output[1] *= inputColor[3];
57 output[2] *= inputColor[3];
63 this->m_inputProgram =
nullptr;
70 this->m_inputProgram =
nullptr;
85 if (inputColor[3] > 0.0f) {
86 inputColor[0] /= inputColor[3];
87 inputColor[1] /= inputColor[3];
88 inputColor[2] /= inputColor[3];
91 output[0] = inputColor[0] > 0.0f ?
sqrtf(inputColor[0]) : 0.0f;
92 output[1] = inputColor[1] > 0.0f ?
sqrtf(inputColor[1]) : 0.0f;
93 output[2] = inputColor[2] > 0.0f ?
sqrtf(inputColor[2]) : 0.0f;
96 if (inputColor[3] > 0.0f) {
97 output[0] *= inputColor[3];
98 output[1] *= inputColor[3];
99 output[2] *= inputColor[3];
105 this->m_inputProgram =
nullptr;
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
void deinitExecution() override
void initExecution() override
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
void deinitExecution() override
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
GammaUncorrectOperation()
void initExecution() override
void readSampled(float result[4], float x, float y, PixelSampler sampler)
void addInputSocket(DataType datatype, ResizeMode resize_mode=ResizeMode::Center)
void addOutputSocket(DataType datatype)
SocketReader * getInputSocketReader(unsigned int inputSocketindex)