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 |
Expand RoD / expand_rod | Boolean | Off | |
Expand Right / expand_right | Float | 0 | |
Expand Left / expand_left | Float | 0 | |
Expand Up / expand_up | Float | 0 | |
Expand Down / expand_down | Float | 0 | |
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) | |||
{ | |||
vec2 uv = fragCoord / iResolution.xy; | |||
fragColor = texture(iChannel0, uv); | |||
} | |||
Use source file / use_shader_source_file | Boolean | Off | |
Camera / camera | Choice | - | |
Custom Camera / customCam | Camera | ||
Camera Transform / camTransform | |||
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 |