1
0
mirror of https://github.com/terkelg/awesome-creative-coding.git synced 2025-09-09 16:30:40 +02:00

Update shaders.md

This commit is contained in:
Terkel
2016-11-10 22:50:29 -08:00
committed by GitHub
parent 72a0ebac0d
commit 33c9c56816

View File

@@ -20,6 +20,9 @@ vec2 p = gl_FragCoord.xy / iResolution;
### GLSL Vertex Shaders ### GLSL Vertex Shaders
### uniforms:
These are a class of global variable that can be defined in GLSL shaders. They represent values that are uniform (unchanging) over the course of a rendering operation. Their values are set from outside of the shader, and they cannot be changed from within a shader.
### Swizzling ### Swizzling
Beyond being a great name — is a nice feature in GLSL for accessing the properties of a vector. Beyond being a great name — is a nice feature in GLSL for accessing the properties of a vector.
You can get a single float from a vector using .r, .g, .b or .a. For example: You can get a single float from a vector using .r, .g, .b or .a. For example: