User Shaders

What is a shader?

The pixel and vertex shader editor within vvvv allow you to program many more looks than the usual 3d look. Shaders are a rapidly developing field in algorithmic graphic and motion design. VVVV includues a couple of the standard shading models like Flat, Gouraud, Phong and Blinn, but they are many more possible uses for shaders. VVVV shaders are programmed in the so called "High Level Shader Language" (HLSL), which allows to express complicated things in short expressions. You can change and modify vvvv´s shader just by right clicking on the effect node.

For writing your own shader you may want to start with Template.fx, which just holds some standard lines you will probably need.

More info: Effects Framework or VS 1.0 Pixelshader for Newbies Tutorial See the ShaderSnippets page for a collection of simple hlsl examples.

To add your own shader here (look here before)

User Contributed Shaders





PS 2.0
Colourises an image with another textures colour
FalseColour.zip
(08.09.09 by catweasel? )





Cel (EX9.Effect)

VS 1.1 PS 2.0
kind of Outline Shader
see Project Page: Cel (EX9.Effect)

Cel.zip
(01.09.09 by kalle )



SiftHSV (EX9.Effect)

VS 1.1 PS 2.0
feed a reference texture and define a reference color.
see Project Page: SiftHSV (EX9.Effect)

pixels matching reference color will be replaced with either a "match" color or texture; the remaining pixels with either a "nonmatch" color or texture
SiftHSV.zip
(30.08.09 by kalle )



AlphaVideo.fx

VS 1.1 PS 2.0
Two ways of getting an alpha channel into your postprocessed video.

alpha_video.zip
(22.07.09 by frank )




Carpaint.fx

VS 1.1 PS 2.0
Two colored carpaint like shading with reflection.

carpaint.zip (2.90 Mb)
(18.04.09 by tonfilm and u7angel )





BUMPS.fx

VS 3.0 PS 3.0
Bump Mapping techniques.
  • sphere, cone3D, cone, parallax_occlusion, relief, normal, displacement, parallax, mip, texture
TIP:Change displacement value while holding control

BUMPTECHS.rar (1814.38 Kb)
(30.03.09 by wrongelectron)





Velvety Shader.fx

VS 3.0 PS 3.0
Velvety shader from nVidia shader library.

Velvety shader.rar (122.81 Kb)
(27.01.09 by dottore)





Per Vertex lighting.fx

VS 1.0 PS 1.0
Per vertex lighting with no specular.
Leave Pixel shader free.

DS_Per_Vertex_Lighting.rar
(20.01.09 by Digital Slaves)




Dual_Point_Fresnel.fx

VS 2.0 PS 2.b
Dual Point Shader combine with frenel lighting.

Dual_Point_Fresnel.rar
(6.12.08 by Digital Slaves)




X_Ray.fx

VS 2.0 PS 2.0
Simple X_Ray shader base from ATI / AMD

X_Ray.rar
(6.12.08 by Digital Slaves)




Muffy.fx

VS 1.1 PS 2.0
Texture distorsion shader

Muffy.rar
(15.11.08 by Digital Slaves)




Fake_Wave.fx

VS 1.1 PS 2.0
Fake wave effect using halo dot texture

Fake_Wave.rar
(15.11.08 by Digital Slaves)




Elektricty.fx

VS 1.1 PS 2.0
Elektricity effect from ATI

Elektricity.rar
(15.11.08 by Digital Slaves)




SoftShadows.fx

VS 1.0 PS 3.0
Shadow mapping shader using a floating point depth texture. performs PCF (Percentage-Closer Filtering) to soften shadow edges.

SoftShadows.zip
(26.10.08 by flux)




Glow (EX9.Effect).v4p

Glow (EX9.Effect Cubetexture).v4p

VS 1.0 PS 2.0
in fact these are effects wrapped into modules. i recommend to put them into your MODULESfolder, not into the EFFECTS.
then they get listed in the nodelist...

Glow.zip
(11.06.08 by kalle)




Flame.fx

VS 1.0 PS 2.0

Flame shader. Source AMD / ATI

Flame.rar
(21.05.08 by Digital Slaves)




Technicolor.fx

VS 1.0 PS 2.0

OldSchool video effect. 3 effects for 3 styles. All credits to Vade.

Technicolor.zip
(26.04.08 by Desaxismundi)




LineCubic PhongDirectional.fx

VS 3.0 PS 2.0

ribbon with 16 control points, cubic interpolation inbetween, phong shaded

LineCubic.zip (4.57 Kb)
(13.02.08 by woei)




PointSprites.fx

VS 1.0 PS 1.0

Point sprite renders a screen aligned quad for every vertex streamed to the shader, thus minimizing cpu cycles and drawing calls to the gpu.

PointSprites.zip (8.8 Kb)
(20.02.08 by viktor)




Curve PhongDirectional.fx

VS 1.1 PS 2.0

Just like CurveSimple but with phong-shading, and some more options

Curve PhongDirectional.zip (4.61 Kb)
(13.02.08 by woei)




VertexNoise.fx

VS 2.0 PS 2.0

Perlin noise applied to a sphere. Now works without a texture. Only one technique...Includes a vNoise table.fxh file. Notice : be carefull with the noise matrix transform pin...

VertexNoise.zip (5.49 Kb)
(12.02.08 by Desaxismundi)




Surfaces.fx

VS 1.1 PS 2.0

Surfaces shader without normals calculation...The code is cleaned a bit and splitted into multiple fxs to make life easier...

Surfaces_simple.zip (16.62 Kb)
(06.02.08 by sanch, Desaxismundi, tonfilm)




CubeTexture (PS Template).fx

VS 1.0 PS 2.0

5 techniques:

basic cube texturing
coloured cube texturing
simple reflection
simple refraction
reflection and refraction
CubeTexture (PS Template).zip (10.95 Kb)
(28.12.07 by kalle)




Superformulaphongdirectionnal2d3d.fx

Adaptation of the superformula surface from Joan Geilis.
First 2d transformation with the formula and then a 3d transformation over the 2d one.
PS 3.0

superformula 2d 3d.zip (5.10 Kb)
(30.11.07 by sanch and vvvv junkie)



Displace.fx

Displace vertexshader from texture color.
PS 3.0 works only with nvidia card

displace.zip (15.86 Kb)
(30.11.07 by sanch)



Reflections.fx

Metal and plastic reflection effect using a cubemap texture...from Nvidia.
VS 2.0 & PS 2.0

Reflections.zip (1.45 Mb)
(23.11.07 byDesaxismundi)





meta.fx

2D metaball pixel shader with 4 hard coded blob inputs
could use some improvement like spreading inputs
has a soft edge and a hard edge technique
VS 1.0 & PS 2.0

meta.zip (3.75 Kb)
(02.11.07 by viktor)





MetaballsSpreaded.fx

2D metaball pixel shader, spreaded, using textures to input blobs positions and diameters + color
Includes a help file.
PS 3.0

MetaballsSpreaded.zip (7.09 Kb)
(12.04.08 by michel and gregsn)





CurveSimple.fx

simple vertexshader replacement for line(ex9.geometry): fog and curvature coded inside
VS 1.0 & PS 1.0

CurveSimple.zip (3.75 Kb)
(02.11.07 by woei)





TexCtrlInvert.fx

Control invert effect by texture input.
VS 1.1 & PS 1.4

TexCtrlInvert.zip (3.54 Kb)
(24.10.07 by Desaxismundi)





Negative.fx

Very Simple Variation of Constant.fx
origin in this thread
VS 1.0 & PS 1.0

Negative.zip (2.95 Kb)
(24.10.07 by kalle and ArsRobota)





GouraudDirectional_FogInside.fx

Deep color implementation inside GouraudDirectional.
VS 1.1 & PS 1.4

GouraudDirectional_FogInside.zip (4.82 Kb)
(23.10.07 by Desaxismundi)






Deep Color.fx

Shows how to implement some kind of fog inside VS by returning scene depth as a grayscale...From Nvidia...
VS 1.1 .No PS.

DeepColor.zip (7.83 Kb)
(23.10.07 by Desaxismundi)





checker3d.fx

3D Checkerboard effect, created by procedural texturing.
Texture is pre-calculated, using the HLSL virtual machine (VM).
As an "extra," the check pattern is also applied to the specular
value, to make the variation between materials stronger.
from Nvidia shader library.
Includes a simple help patch.
VS 2.0 & PS 2.0

Checker3d.rar (15.9 Kb)
(23.10.07 by dottore)





MrWiggle.fx

Simple sinusoidal vertex animation on a phong-shaded plastic surface. The highlight is done in VERTEX shading — not as a texture. Textured/Untextured versions are supplied Do not let your kids play with this shader, you will not get your computer back for a while. (2 technique/s).
from Nvidia shader library.
Includes a help patch.
VS 1.1 & PS 1.1

MrWiggle.rar (20.3 Kb)
(22.10.07 by dottore)





Background Substraction.fx

This shader is inspired by background substraction of Eyesweb. It cuts out foreground by luminance difference to background. Works with bright and dark background as far as contrast between fore- and background is big enough.
Includes a help file.
VS 1.1 & PS 2.0

BackgroundSubstraction.zip (3.96 Kb)
(03.10.07 by frank)





Bubble.fx

Vertex noise (1D, 2D or 3D) combined with reflection/refraction shading.
VS 3.0 & PS 2.0

Bubble.zip (1022 Kb)
(25.10.07 by Desaxismundi)





Vnoise_Tentacle_PhongDirectional.fx

Vertex noise applied to a cone...you can easily change the shape and create a new noisy shader by taking another formula from the surfaces shader.
VS 3.0 & PS 2.a

Vnoise_Tentacle_PhongDirectional.zip (7.46 Kb)
(25.10.07 by Desaxismundi)





Fish-Eye GouraudDirectional.fx

A vertex shader fish-eye effect.
VS 1.0 & PS 1.4

Fish-Eye GouraudDirectional.zip (4.18 Kb)
(02.09.07 by sanch)





SelfAlign.fx

Align 3d objects to the camera. the shader has a second transform input, to transform the object in respect to the camera.
PS 1.4 & 2.0 phong version

SelfAlign.zip (6.72 Kb)
(25.08.07 by tonfilm)





TexCtrlBlur.fx

TexCtrlFade means "Texture Controlled Blur"
control a blur effect simply with a greytexture.
PS 2.0

imagine e.g.to use with DetectObject.dll
for automated realtime facebluring
TexCtrlBlur.zip (101 Kb)
(18.08.07 by kalle)
New with some more blur modes:
TexCtrlBlurAdv.zip (101 Kb)
(28.08.07 by kalle)





Echo4.fx PS 1_4

Echo6.fx PS 2_0

Echo8.fx PS 2_0

name is irritating
texture delays are not generated inside the shaders.
more info at kalle.shader

Echo.zip (11 Kb)
(17.08.07 by kalle)





ShiftHSV.fx

lets you shift Hue,Saturation,Value separate.
PS 2.a

ShiftHSV.zip (46 Kb)
(17.08.07 by kalle)





GoochShadingCutThrough.fx

This shader implements Gooch-Shading and the possibility to Slice an object along any arbitrary plane.
PS 2.a

GoochCutThrough.zip (5.88 Kb)
(09.08.07 by milo)






Surfaces_PhongDirectional.fx

55 mathematical surfaces in one shader!!? (don't worry if it takes a while to load). Normals done in the PS.
VS 1.1 Phong version & PS 2.a

Surfaces.zip (14 Kb)
(25.07.07 by sanch, Desaxismundi, tonfilm)





Transitions_basic.fx

A few examples to demonstrate the use of pixel shader to make images transitions.
VS 1.1 & PS 2.0

Transitions_basic.zip (345 Kb)
(23.07.07 by Desaxismundi)





TexCtrlFade.fx

TexCtrlFade means "Texture Controlled Fade"
fade between Source1 and Source2 with the ControlTexture.

makes a simple multiFX-VideoMixer in a shader, it should even work on old machines!
PS 1.0

TexCtrlFade.zip (101 Kb)
(18.07.07 by kalle)





vBomb.fx

An animated perlin noise vertex shader.
This is the texture based version (including 1D, 2D and 3D noise Techniques)
VS 2.0 & PS 2.0

vBomb.zip (9.54 Kb)
(06.07.07 by Desaxismundi)





IsoRaytrace.fx

This shader is a basic isosurface raytracing environment. you can try your own isosurfaces by simply replacing one little function in the shader code. with helpfile.
PS 3.0

IsoRaytrace.zip (7.41 Kb)
(18.06.07 by tonfilm)





Toony.fx

Toon like shading with arbitrary color tables. with helpfile.

PS 2.0

toony.zip (3.90 Kb)
(18.06.07 by tonfilm)





-BG+Key.fx

means: minus Background plus Key
be your own Newspresenter. Background Subtraction and Keying without "Bluebox" in one shader. with helpfile.
PS 2.0

-BG+Key.zip (119 Kb)
(22.03.07 by kalle )





Lyapunov.fx

Lyapunov Exponent Shader. Includes a help file.
PS 3.0 and PS 2.b

lyapunov.zip (7.98 Kb)
(18.02.07 by tonfilm)





ClassicFractals.fx

Classic Mandelbort and Julia fractals on GPU.
Includes a Julia C-browser as help file.
PS 3.0

fractal.zip (4.03 Kb)
(09.02.07 by tonfilm)





Gradients.fx

Create anything from ordinary linear gradients, to psychedelic morphing interference patterns.
Includes a help file.
PS 2.0

Gradients.zip (4.45 Kb)
(11.07.06 by Ernst Hot)





superformula vertexshader.fx

It´s a first implementation of the superformula from Johan Gielis inside a vertexshader a complete version will come soon.
Includes a help file.
PS 2.0

superformula.zip (5.47 Kb)
(02.06.06 by tonfilm, gregsn and sanch)





Emboss.fx

Like relief filter in photoshop.
Includes a help file.
PS 1.4

emboss.zip (22.57 Kb)
(10.04.06 by tonfilm)





QuaternionJuliaSet.fx

Quaternion julia set fractal on GPU. Original code in CG by Keenan Crane.
Includes a help file.
PS 3.0

QJuliaSet.zip (8.48 Kb)
(08.04.06 by tonfilm)





Anaglyph.fx

Creates anaglyph (red-green-stereoscopic) texture from two textures (leftview, rightview).
Includes a help file.

Anaglyph.zip (8.39Kb)
(23.02.06 by marc_s)





BackgroundSuppression.fx

Simple shader for background suppression or 'shading correction' (correcting real world scene with uneven lighting) with different methods.
Includes a help file


BackgroundSuppression.zip (8.00Kb)

(23.02.06 by marc_s)





RectMask.fx

uses two inputpoints to setup a rectangular mask.
Includes a help file.

RectMask.zip (22,3 Kb)
(22.03.06 by woei)





ColorKeying.fx

this is a color keying shader with simple rgb range threshold for PS 1.4 cards ! i was thinking it's impossible, but ... :)
was coded for a vvvv user who asked me for a bluebox solution with vvvv, so the help patch is like this. if you have a PS 2.0 card, better take catweasels ChromaKey below.
Includes a help file
PS 1.4

bluebox.zip (31.55 Kb)
(16.03.06 by tonfilm)





Levels.fx

A pixel sahder 2.0 implementation of the Gimps/Photoshops Levels dialogue.
Includes a help file
VS 1.1 & PS 2.0

Levels.zip (22.55 Kb)
(25.02.06 by mtallen)





PolarCoordinates.fx

A pixel sahder which replicates the Photoshop plug-in of the same name. Converts the texture coordinates from cartesian space to circular space. Includes a help file. Updated 24.02.06 with a better help file, and inputs to control various parameters on the shader.
Includes a help file
VS 1.1 & PS 2.0

PolarCoordinates.zip (23.29 Kb)
(23.02.06 by mtallen)





Hue_Saturation.fx

A pixel sahder which exposes hue, saturation and Lightness sliders for the incoming texture. There are 2 techniques, one which keeps the relative hue of the incoming pixels, the other just takes the value from the slider (resulting in a "colorize" effect). Black pixel issue is fixed.
Includes a help file
VS 1.1 & PS 2.0

Hue_Saturation.zip (25.61 Kb)
(20.02.06 by mtallen)





Blend.fx

A pixel shader wich takes two files as inputs and blends them together using a bunch of different blend modes from photoshop, and even some photoshop should include. There is an input for the second files transparency. Includes a help file. The help file uses 2 movies as input, but the movies are not included.
Includes a help file.
VS 1.1 & PS 2.0

Blend.zip (5.38 Kb)
(20.02.06 by mtallen)





Mask.fx

A pixel shader wich takes two files as inputs and uses the second files luminosity as alpha for the first file. It does not replace the first files alpha, just adds to it. There are also inputs for mask amount and overall transparency
Includes a help file.
VS 1.1 & PS 2.0

Mask.zip (25.7 Kb)
(20.02.06 by mtallen)





ShaderTransforms.fx

A shader which shows how to use an include file and to transform vertex positions.
includes a help file.
VS 1.1 & PS 1.0

VertexShaderTransforms.zip (3.24 Kb)
(02.12.05 by tonfilm)





VolumetricShader.fx

With this shader you can easyly create smoke, fluids, clouds or flame effects. Very funny ;)
Includes a help file.
PS 2.0

VolumetricShader.zip (1114 Kb)
(26.07.05 by sanch)






Lumakey.fx

a shader with two techniques runnig on PS 1.4 (or higher) cards. the tex input is masked by the brightness of the mask input. you have low and high threshold (0..1) to select the masking range.
Includes a help file.
PS 1.4

LumaKey.zip (24.2 Kb)
(17.06.05 by tonfilm)





Chromakey.fx

Chroma key with hue, range and brightness clip controls.
Includes a help file.
PS 1.4

ChromaKey.zip (45.8 Kb)
(09.06.05 by catweasel)





Halftone.fx

A shader with 6 differents styles: the classic halftone and a halftone with overlap, a halftone with the texture image in each dot.
Includes a help file
PS 2.0

Halftone.zip (22.3 Kb)
(03.06.05 by sanch and ((userpagegregsn|gregsn) ))





Stranger.fx

Make a strange color transformation on textures
Includes a help file
PS 2.0

Stranger.zip (21.8 Kb)
(03.06.05 by tonfilm)






GaussianBlur.fx

Applies a gaussian blur on the texture.
Includes a help file
PS 2.0

GaussianBlur.zip (30.7 Kb)
(20.05.05 by sanch)





Radial Blur.fx

Applies a radial blur on a texture
Includes a help file

PS 2.0

RadialBlur.zip (30.3 Kb)
(20.05.05 by sanch)





Bloom.fx

Creates a bloom effect on a texture.
Includes a help file.
PS 2.0

Bloom.zip (31 Kb)
(20.05.05 by sanch)





Spot.fx

Create a spot light effect on a texture.
Includes a help file
PS 2.0

Spot.zip (30.7 Kb)
(20.05.05 by sanch)





Wipe.fx

You can use this shader to create a transition effect between two textures with a black and white mask. There are 2 techniques: normal wipe and deform texture coordinate wipe.
Includes a help file
PS 2.0

Wipe Transition.zip (61.9 Kb)
(20.05.05 by (sanch)





Deform by texture.fx

This shader deforms the first texture coordinates with the brightness of the second texture. Creates very funy effect like a lens effect when using an appropriate texture. The second texture must be very smooth for a good effect.
Includes a help file
PS 2.0

DeformByTexture.zip (58.5 Kb)
(20.05.05 by sanch)






Distance.fx

This shader caculates the distance between a mesh and the camera and translates the distance in color on the mesh. This shader is used to create a depth of field effect.
Includes a help file
PS 2.0

Distance.zip (180 Kb)
(20.05.05 by tonfilm)





Depth of field.fx (beta 8.1 only)

Create the effect depth of field.
It's a first version not perfect
a second version coming soon.
Includes a help file
PS 2.0

DOF combine.zip (186 Kb)
(01.06.05 by (sanch)





RGB adjust with luma key.fx

Updated to include and example patch, with PS_1_4 and 2, versions, only difference is there is more contrast with PS 2.
No help file
PS 1.4

RGBContrastFX.zip (85.5 Kb)
(19.05.05 by catweasel)





ColorChange.fx

very simple shader to change the RGB channels of a texture (and/or a mesh). good for people who want to start writing their own shader effects (very short code, easy to understand).
No help file.
VS 1.1 & PS 1.4 or higher

ColorChange.fx (3.13 Kb)
(17.05.05 by tonfilm)



HLSL snippets

a collection of HLSL code snippets sorted along their functionality.
ShaderSnippets
helpful, in case you need to combine or build your very own special thing



FAQ

How to post a shader?

  1. Use the v mesh or the V texture as a sample to render your shader
  2. Open up the Shader Gallery to upload your shader files. Then, click here to upload a pertinent screenshot.
  3. After uploading, you'll get a link that can be included in a vvvviki page. It looks like this: YourShader.fx (260.24 Kb)
  4. Add your shader to the list below. Use an existing entry as template to post the Link to your Shader here. Please specify: name of your shader, a short describtion, the download link, your name and a date.

I understand that user shaders are stored in a tikiwiki filegallery. How can I access that Shader Gallery?

follow this link: Shader Gallery

How should the help patches for your shader be prepared? Helppatches for Shaders should be named like this:

if your shaders name is e.g. FooBar.fx your helppatch should be named FooBar help.v4p.
just add a [SPACE] and "help" to that name, not an underscore or brackets.

How should should i deal with any textures i need for my demo patch?

If you want to use some of the textures which are provided with vvvv, you can make use of the node SystemFolder (File) to be sure that those texture is found on any other vvvv-users computer.


How can I check my graphic cards works with a specific shader version?

Test your graphics card for supported shader versions with the patch in the following forums thread:
Shader Version Test



elkallemajor, 21:45 UTC, 08.02.10: found a solution and posted it in the forum.
joreg, 17:32 UTC, 08.02.10: works fine for me on 7. please start a forumthread describing your problem in detail.
elkallemajor, 16:28 UTC, 08.02.10: addflow in windows 7 not working. has anyone ideas?
aivenhoe, 16:06 UTC, 08.02.10: hello dieterbohlen. unfrotunately again, im not there.. :-(
sven, 15:55 UTC, 08.02.10: [Link]
manuel, 20:36 UTC, 07.02.10: http://vimeo.com/8837024
tonfilm, 04:25 UTC, 07.02.10: [Link]
skyliner, 21:37 UTC, 06.02.10: :)
fibo, 19:41 UTC, 06.02.10: @skyliner: enjoying pistacccccioo :)))
zoph, 18:13 UTC, 06.02.10: Ive an odd Timeliner problem. See forum, would appreciate if anyone could help me soon


Read More…