Explore tens of thousands of sets crafted by our community.
Shader Programming Keywords
20
Flashcards
0/20
sampler2D
Represents a 2D texture for texture sampling in shaders.
vec2
A 2-component floating-point vector.
out
Qualifies an output variable from a shader stage to the next stage.
gl_ClipDistance
Output array variable from the vertex shader that sets the distance from each clip plane.
discard
Terminates the current fragment processing, effectively not drawing the fragment.
smooth
Interpolation qualifier for varying variables, resulting in smooth shading across primitives.
uniform
Declares global variables that can be changed at most once per draw call.
vec3
A 3-component floating-point vector.
flat
Interpolation qualifier that specifies no interpolation across a primitive.
gl_FragCoord
Built-in input variable containing the window-relative coordinates of the current fragment.
precision
Defines the precision level for floating-point variables.
mat4
A 4x4 floating-point matrix.
varying
Used for passing data from vertex shaders to fragment shaders smoothly interpolated.
void
Indicator of a function that does not return a value.
attribute
Specifies input variables for vertex shaders from buffers.
gl_Position
Output variable from the vertex shader that sets the position of the vertex.
in
Qualifies an input variable to a shader stage from the previous stage.
vec4
A 4-component floating-point vector.
layout
Defines how data will be organized and accessed in shader storages like uniform blocks or buffer objects.
gl_FragColor
Output variable representing the color of a pixel in fragment shaders.
© Hypatia.Tech. 2024 All rights reserved.