Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_shader.h
| Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | typedef enum eGPUBuiltinShader { | ||||
| * Take a 3D position for each vertex and output only depth. | * Take a 3D position for each vertex and output only depth. | ||||
| * | * | ||||
| * \param pos: in vec3 | * \param pos: in vec3 | ||||
| */ | */ | ||||
| GPU_SHADER_3D_DEPTH_ONLY, | GPU_SHADER_3D_DEPTH_ONLY, | ||||
| GPU_SHADER_3D_CLIPPED_UNIFORM_COLOR, | GPU_SHADER_3D_CLIPPED_UNIFORM_COLOR, | ||||
| /* basic image drawing */ | /* basic image drawing */ | ||||
| GPU_SHADER_2D_IMAGE_OVERLAYS_MERGE, | GPU_SHADER_2D_IMAGE_OVERLAYS_MERGE, | ||||
| GPU_SHADER_2D_IMAGE_OVERLAYS_STEREO_MERGE, | |||||
| GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR, | GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR, | ||||
| GPU_SHADER_2D_IMAGE_MASK_UNIFORM_COLOR, | GPU_SHADER_2D_IMAGE_MASK_UNIFORM_COLOR, | ||||
| /** | /** | ||||
| * Draw texture with alpha. Take a 3D position and a 2D texture coordinate for each vertex. | * Draw texture with alpha. Take a 3D position and a 2D texture coordinate for each vertex. | ||||
| * | * | ||||
| * \param alpha: uniform float | * \param alpha: uniform float | ||||
| * \param image: uniform sampler2D | * \param image: uniform sampler2D | ||||
| * \param texCoord: in vec2 | * \param texCoord: in vec2 | ||||
| ▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines | |||||