content/hifi-public/scripts/shaders/shadertoyWrapper.fs
Dale Glass 0d14e5a379 Initial data.
Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them
has been replaced with a symlink.

Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still
be present.
2022-02-13 18:59:11 +01:00

32 lines
No EOL
824 B
GLSL

vec2 iResolution = iWorldScale.xz;
vec2 iMouse = vec2(0);
////////////////////////////////////////////////////////////////////////////////////
//
// REPLACE BELOW
//
// Replace the contents of this section with a shadertoy that includes a mainImage
// function
//
////////////////////////////////////////////////////////////////////////////////////
void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
fragColor = vec4(0, 0, 1, 1);
}
////////////////////////////////////////////////////////////////////////////////////
//
// REPLACE ABOVE
//
////////////////////////////////////////////////////////////////////////////////////
vec4 getProceduralColor() {
vec4 result;
vec2 position = _position.xz;
position += 0.5;
mainImage(result, position * iWorldScale.xz);
return result;
}