» AddonPack.Effects
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

AddonPack.Effects

Here is how you prepare effects for the addonpack:

Provide a Shader Info

To provide the nodelist with information about a shader that others find it easier, you should use the following keywords at the beginning of the shader code:

//@author: yourname
//@help: this shader does very nice things
//@tags: tag1, tag2, tag3 ...
//@credits: the other guys name

Creating Pins

Writing a variable in the toplevel of the shader creates an input pin for you. For simple pin names you do not have to do anything special, just start with a capital letter:

float Alpha;

Creates a pin named 'Alpha' with default value 0.
Or:

float Alpha = 1;

This will create a pin named 'Alpha' with default value 1.
In case you have a more complex name for your pin write it like this:

float Alpha <string uiname="Alpha of Gradient Center";> = 1;

This will create a pin named 'Alpha of Gradient Center' with default value 1.
You can also tell the vvvv GUI to constrain the value:

float Alpha <float uimin=0.0; float uimax=1.0; string uiname="Alpha of Gradient Center";> = 1;

Creating Color Pins

Especially when porting shader-code from public libraries you will often notice that a code like

float4 cAmb <String uiname="Color";>  = {1, 1, 1, 1};

creates only a float input with 4 slices.
Just insert the Semantic

 : COLOR 

to get a 'real' ColorInput.

float4 cAmb : COLOR <String uiname="Color";>  = {1, 1, 1, 1};

Texture Transformations

If you want to transform a texture on a regular shape you would intuitively expect the center of rotation and scaling in the middle of the texture. But the default center of transform is the texture coordinate (0, 0), which is the upper left corner of your texture.
To counteract this, we provide the convenience sematic 'TEXTUREMATRIX' for you:

float4x4 tTex: TEXTUREMATRIX <string uiname="Texture Transform";>;

You should use this semantic every time when you intend to use the transform matrix if this pin to transform texture coordinates.

anonymous user login

Shoutbox

~1d ago

joreg: Workshop on 16 05: Introduction to Shaders. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-introduction-to-shaders-in-vvvv/

~1d ago

bjoern: hello, I am looking for a job / project starting june. get in touch via vvvv specialists available for hire

~8d ago

joreg: Workshop on 09 05: Deepdive into the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-advanced-3d-rendering-in-vvvv-with-stride/

~8d ago

tekcor: Dear vvvv community, I am leaving my personal fundraiser here because I know many of you personally, sending love https://t.ly/iV9l_

~9d ago

joreg: Rewatch the 24th vvvvorldwide meetup here: https://www.youtube.com/live/gNszIiRAjDo?si=0RXF0pW73EUaRqGk

~9d ago

joreg: LINK - the vvvv summer camp 2024 is announced: https://visualprogramming.net/blog/2024/link-the-vvvv-summer-camp-24/

~11d ago

joreg: Tonight, May 3, vvvv meetup in Berlin or via stream: https://visualprogramming.net/blog/2024/24.-vvvv-worldwide-meetup/

~14d ago

joreg: Workshop on 02 05: Intro to the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-intro-to-the-stride-3d-engine-in-vvvv/