52 unsigned int preferredResolution[2])
55 unsigned int tempPreferredResolution[2] = {0, 0};
56 unsigned int tempResolution[2];
60 if ((tempResolution[0] != 0) && (tempResolution[1] != 0)) {
72 CLAMP(color[0], 0.0f, 1.0f);
84 output[0] = inputValue1[0] + inputValue2[0];
100 output[0] = inputValue1[0] - inputValue2[0];
110 float inputValue1[4];
111 float inputValue2[4];
116 output[0] = inputValue1[0] * inputValue2[0];
126 float inputValue1[4];
127 float inputValue2[4];
132 if (inputValue2[0] == 0) {
136 output[0] = inputValue1[0] / inputValue2[0];
147 float inputValue1[4];
148 float inputValue2[4];
163 float inputValue1[4];
164 float inputValue2[4];
179 float inputValue1[4];
180 float inputValue2[4];
195 float inputValue1[4];
196 float inputValue2[4];
211 float inputValue1[4];
212 float inputValue2[4];
227 float inputValue1[4];
228 float inputValue2[4];
243 float inputValue1[4];
244 float inputValue2[4];
249 if (inputValue1[0] <= 1 && inputValue1[0] >= -1) {
264 float inputValue1[4];
265 float inputValue2[4];
270 if (inputValue1[0] <= 1 && inputValue1[0] >= -1) {
285 float inputValue1[4];
286 float inputValue2[4];
301 float inputValue1[4];
302 float inputValue2[4];
307 if (inputValue1[0] >= 0) {
308 output[0] =
pow(inputValue1[0], inputValue2[0]);
311 float y_mod_1 = fmod(inputValue2[0], 1);
313 if (y_mod_1 > 0.999f || y_mod_1 < 0.001f) {
329 float inputValue1[4];
330 float inputValue2[4];
335 if (inputValue1[0] > 0 && inputValue2[0] > 0) {
350 float inputValue1[4];
351 float inputValue2[4];
356 output[0] =
MIN2(inputValue1[0], inputValue2[0]);
366 float inputValue1[4];
367 float inputValue2[4];
372 output[0] =
MAX2(inputValue1[0], inputValue2[0]);
382 float inputValue1[4];
383 float inputValue2[4];
388 output[0] = round(inputValue1[0]);
398 float inputValue1[4];
399 float inputValue2[4];
404 output[0] = inputValue1[0] < inputValue2[0] ? 1.0f : 0.0f;
414 float inputValue1[4];
415 float inputValue2[4];
420 output[0] = inputValue1[0] > inputValue2[0] ? 1.0f : 0.0f;
430 float inputValue1[4];
431 float inputValue2[4];
436 if (inputValue2[0] == 0) {
440 output[0] = fmod(inputValue1[0], inputValue2[0]);
451 float inputValue1[4];
465 float inputValue1[4];
479 float inputValue1[4];
493 float inputValue1[4];
494 float inputValue2[4];
509 float inputValue1[4];
523 float inputValue1[4];
537 float inputValue1[4];
541 output[0] = inputValue1[0] -
floor(inputValue1[0]);
551 float inputValue1[4];
555 if (inputValue1[0] > 0) {
570 float inputValue1[4];
574 if (inputValue1[0] > 0) {
589 float inputValue1[4];
603 float inputValue1[4];
617 float inputValue1[4];
621 output[0] = (inputValue1[0] >= 0.0f) ?
floor(inputValue1[0]) :
ceil(inputValue1[0]);
631 float inputValue1[4];
632 float inputValue2[4];
637 if (inputValue1[0] == 0 || inputValue2[0] == 0) {
641 output[0] =
floorf(inputValue1[0] / inputValue2[0]) * inputValue2[0];
652 float inputValue1[4];
653 float inputValue2[4];
654 float inputValue3[4];
660 output[0] =
wrapf(inputValue1[0], inputValue2[0], inputValue3[0]);
670 float inputValue1[4];
671 float inputValue2[4];
686 float inputValue1[4];
687 float inputValue2[4];
688 float inputValue3[4];
694 output[0] = (
fabsf(inputValue1[0] - inputValue2[0]) <=
MAX2(inputValue3[0], 1e-5f)) ? 1.0f :
705 float inputValue1[4];
706 float inputValue2[4];
707 float inputValue3[4];
713 output[0] = inputValue1[0] * inputValue2[0] + inputValue3[0];
723 float inputValue1[4];
724 float inputValue2[4];
725 float inputValue3[4];
741 float inputValue1[4];
742 float inputValue2[4];
743 float inputValue3[4];
_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
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]) override
SocketReader * m_inputValue1Operation
void clampIfNeeded(float color[4])
SocketReader * m_inputValue3Operation
void initExecution() override
SocketReader * m_inputValue2Operation
void deinitExecution() override
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void readSampled(float result[4], float x, float y, PixelSampler sampler)
NodeOperationInput * getInputSocket(unsigned int index)
void addInputSocket(DataType datatype, ResizeMode resize_mode=ResizeMode::Center)
void addOutputSocket(DataType datatype)
void setResolutionInputSocketIndex(unsigned int index)
set the index of the input socket that will determine the resolution of this operation
virtual void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
determine the resolution of this node
SocketReader * getInputSocketReader(unsigned int inputSocketindex)
MINLINE float smoothminf(float a, float b, float c)
MINLINE float pingpongf(float value, float scale)
MINLINE float compatible_signf(float f)
MINLINE float wrapf(float value, float max, float min)
INLINE Rall1d< T, V, S > sinh(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > cos(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > cosh(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > pow(const Rall1d< T, V, S > &arg, double m)
INLINE Rall1d< T, V, S > log(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > tanh(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > asin(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > atan(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > acos(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > sin(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > tan(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > atan2(const Rall1d< T, V, S > &y, const Rall1d< T, V, S > &x)
ccl_device_inline float2 floor(const float2 &a)
ccl_device_inline float2 fabs(const float2 &a)
ccl_device_inline float3 ceil(const float3 &a)