You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.2 KiB
26 lines
1.2 KiB
4 years ago
|
# Texture Samplers
|
||
|
|GLSL sampler|OpenGL texture enum|Texture type|
|
||
|
|---|---|---|
|
||
|
gsampler1D | GL_TEXTURE_1D | 1D texture
|
||
|
gsampler2D | GL_TEXTURE_2D | 2D texture
|
||
|
gsampler3D | GL_TEXTURE_3D | 3D texture
|
||
|
gsamplerCube | GL_TEXTURE_CUBE_MAP | Cubemap Texture
|
||
|
gsampler2DRect | GL_TEXTURE_RECTANGLE | Rectangle Texture
|
||
|
gsampler1DArray | GL_TEXTURE_1D_ARRAY | 1D Array Texture
|
||
|
gsampler2DArray | GL_TEXTURE_2D_ARRAY | 2D Array Texture
|
||
|
gsamplerCubeArray | GL_TEXTURE_CUBE_MAP_ARRAY | Cubemap Array Texture
|
||
|
gsamplerBuffer | GL_TEXTURE_BUFFER | Buffer Texture
|
||
|
gsampler2DMS | GL_TEXTURE_2D_MULTISAMPLE | Multisample Texture
|
||
|
gsampler2DMSArray | GL_TEXTURE_2D_MULTISAMPLE_ARRAY | Multisample Array Texture
|
||
|
|
||
|
|
||
|
# Shadow Samplers
|
||
|
|GLSL sampler|OpenGL texture enum|
|
||
|
|---|---|
|
||
|
sampler1DShadow | GL_TEXTURE_1D
|
||
|
sampler2DShadow | GL_TEXTURE_2D
|
||
|
samplerCubeShadow | GL_TEXTURE_CUBE_MAP
|
||
|
sampler2DRectShadow | GL_TEXTURE_RECTANGLE
|
||
|
sampler1DArrayShadow | GL_TEXTURE_1D_ARRAY
|
||
|
sampler2DArrayShadow | GL_TEXTURE_2D_ARRAY
|
||
|
samplerCubeArrayShadow | GL_TEXTURE_CUBE_MAP_ARRAY
|