56 if (depth1[0] < depth2[0]) {
63 void ZCombineAlphaOperation::executePixelSampled(
float output[4],
75 if (depth1[0] <= depth2[0]) {
83 float fac = color1[3];
84 float ifac = 1.0f - fac;
85 output[0] = fac * color1[0] + ifac * color2[0];
86 output[1] = fac * color1[1] + ifac * color2[1];
87 output[2] = fac * color1[2] + ifac * color2[2];
135 void ZCombineMaskAlphaOperation::executePixelSampled(
float output[4],
148 float fac = (1.0f -
mask[0]) * (1.0f - color1[3]) +
mask[0] * color2[3];
149 float mfac = 1.0f - fac;
151 output[0] = color1[0] * mfac + color2[0] * fac;
152 output[1] = color1[1] * mfac + color2[1] * fac;
153 output[2] = color1[2] * mfac + color2[2] * fac;
void interp_v4_v4v4(float r[4], const float a[4], const float b[4], const float t)
_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 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)
void deinitExecution() override
SocketReader * m_image2Reader
SocketReader * m_maskReader
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
SocketReader * m_image1Reader
void initExecution() override
void deinitExecution() override
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
SocketReader * m_image1Reader
void initExecution() override
SocketReader * m_depth2Reader
SocketReader * m_image2Reader
SocketReader * m_depth1Reader
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)