30 this->m_inputMask =
nullptr;
31 this->m_inputValue =
nullptr;
32 this->m_cosine = 0.0f;
40 this->m_cosine =
cos(rad);
41 this->m_sine =
sin(rad);
53 const float dy = (ry - this->m_data->
y) / this->m_aspectRatio;
54 const float dx = rx - this->m_data->
x;
55 rx = this->m_data->
x + (this->m_cosine * dx + this->m_sine * dy);
56 ry = this->m_data->
y + (-this->m_sine * dx + this->m_cosine * dy);
61 float halfHeight = this->m_data->
height / 2.0f;
62 float halfWidth = this->m_data->
width / 2.0f;
63 bool inside = (rx > this->m_data->
x - halfWidth && rx < this->m_data->
x + halfWidth &&
64 ry > this->m_data->
y - halfHeight && ry < this->m_data->
y + halfHeight);
66 switch (this->m_maskType) {
77 output[0] = inputMask[0] - inputValue[0];
86 output[0] = inputMask[0] * inputValue[0];
94 if (inputMask[0] > 0.0f) {
110 this->m_inputMask =
nullptr;
111 this->m_inputValue =
nullptr;
typedef float(TangentPoint)[2]
typedef double(DMatrix)[4][4]
@ CMP_NODE_MASKTYPE_SUBTRACT
@ CMP_NODE_MASKTYPE_MULTIPLY
_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
Group RGB to Bright Vector Camera CLAMP
void initExecution() override
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
void deinitExecution() override
void readSampled(float result[4], float x, float y, PixelSampler sampler)
unsigned int getHeight() const
void addInputSocket(DataType datatype, ResizeMode resize_mode=ResizeMode::Center)
void addOutputSocket(DataType datatype)
unsigned int getWidth() const
SocketReader * getInputSocketReader(unsigned int inputSocketindex)
INLINE Rall1d< T, V, S > cos(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > sin(const Rall1d< T, V, S > &arg)