Skip to content

Shadertoy


Controls

Parameter / Script Name Type Default Function
Red / process_red Boolean On Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Green / process_green Boolean On Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Blue / process_blue Boolean On Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Alpha / process_alpha Boolean On Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Output Format / output_format_mode Choice Composition Format
Format / format_preset Choice HD (1920x1080)
Format / formatRect -500, -500, 500, 500
Pixel aspect / par Float 1
Use current time / use_current_time Boolean On
iTime / time Float 0
iMouse / mouse_pos Float 2D 0, 0
Gamma correction / gamma_correction Boolean Off
Uniform Parameters / userParams -
Preprocessor Parameters / preprocessorParams -
Source file / shader_source_file File
Source code / shader_source
void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
// Normalized pixel coordinates (from 0 to 1)
vec2 uv = fragCoord/iResolution.xy;
// Time varying pixel color
vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));

// Output to screen
fragColor = vec4(col,1.0);

} | | | Use source file / use_shader_source_file | Boolean | Off | | | Camera / camera | Choice | - | | | Custom Camera / customCam | Camera | | | | Camera Transform / camTransform | | | | | Source (iChannel0) / source | Image | - | | | iChannel0 wrap / channel_0_wrap | Choice | Repeat | | | iChannel0 filter / channel_0_filter | Choice | Linear | | | iChannel1 / channel_1 | Image | - | | | iChannel1 wrap / channel_1_wrap | Choice | Repeat | | | iChannel1 filter / channel_1_filter | Choice | Linear | | | iChannel2 / channel_2 | Image | - | | | iChannel2 wrap / channel_2_wrap | Choice | Repeat | | | iChannel2 filter / channel_2_filter | Choice | Linear | | | iChannel3 / channel_3 | Image | - | | | iChannel3 wrap / channel_3_wrap | Choice | Repeat | | | iChannel3 filter / channel_3_filter | Choice | Linear | |