31 this->m_inputOperation =
nullptr;
32 this->m_useClamp =
false;
46 #define BLENDER_ZMAX 10000.0f
55 float source_min, source_max;
56 float dest_min, dest_max;
70 if (
fabsf(source_max - source_min) < 1e-6f) {
76 value = (value - source_min) / (source_max - source_min);
77 value = dest_min + value * (dest_max - dest_min);
86 if (this->m_useClamp) {
87 if (dest_max > dest_min) {
88 CLAMP(value, dest_min, dest_max);
91 CLAMP(value, dest_max, dest_min);
100 this->m_inputOperation =
nullptr;
101 this->m_sourceMinOperation =
nullptr;
102 this->m_sourceMaxOperation =
nullptr;
103 this->m_destMinOperation =
nullptr;
104 this->m_destMaxOperation =
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
Group RGB to Bright Vector Camera CLAMP
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
void deinitExecution() override
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)
static bNodeSocketTemplate inputs[]