ScrapExplorer - Gradient.glsl

Home / misc / GLSL Lines: 1 | Size: 380 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/* GLSL Examples 2 * A collection of GLSL examples for use with the Shader toy website and other 3 * GLSL environments. 4 * By: 0x4248 5 * 6 * Gradient 7 * A simple gradient shader using the UV coordinates. 8 */ 9 10void mainImage(out vec4 fragColor, in vec2 fragCoord) { 11 vec2 uv = fragCoord.xy / iResolution.xy; 12 13 vec3 color = vec3(uv.x, uv.y, 0.5); 14 15 fragColor = vec4(color, 1.0); 16} 17
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.