Back to shaders

Shader test bench

Solid Color.fs

vidvox-isf-files color glsl runnable fragment MIT
Source
runnable fragment

Complete GLSL fragment shader. Stronghold runs it directly when the browser can compile it.

Code

uniform vec4 Color;
precision mediump float;
/*{
    "CATEGORIES": [
        "Color",
        "Utility"
    ],
    "CREDIT": "by Carter Rosenberg",
    "DESCRIPTION": "demonstrates the use of color-type image inputs",
    "INPUTS": [
        {
            "DEFAULT": [
                1,
                0,
                0,
                1
            ],
            "NAME": "Color",
            "TYPE": "color"
        }
    ],
    "ISFVSN": "2"
}
*/

void main()
{
	gl_FragColor = Color;
}