diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-09-21 08:53:40 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-09-21 08:53:40 +0300 |
commit | 701c3e499f61f9400b5f1c570fbbe04dfa21f158 (patch) | |
tree | 26cc9c429d6643e360c800fbd794904c6ad10ecf /source/blender/draw | |
parent | f5b6b825980fc59cc54e69fbc1e967eebee1ad43 (diff) |
Cleanup: correct naming IMAGE_Z_DEPTH
IMAGE_DEPTH is used for bit depth.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/image/shaders/engine_image_vert.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/image/shaders/engine_image_vert.glsl b/source/blender/draw/engines/image/shaders/engine_image_vert.glsl index dbc8105bcf5..044cbc9b37f 100644 --- a/source/blender/draw/engines/image/shaders/engine_image_vert.glsl +++ b/source/blender/draw/engines/image/shaders/engine_image_vert.glsl @@ -2,7 +2,7 @@ #define SIMA_DRAW_FLAG_DO_REPEAT (1 << 4) -#define DEPTH_IMAGE 0.75 +#define IMAGE_Z_DEPTH 0.75 uniform int drawFlags; @@ -16,7 +16,7 @@ void main() vec3 image_pos = pos * 0.5 + 0.5; if ((drawFlags & SIMA_DRAW_FLAG_DO_REPEAT) != 0) { - gl_Position = vec4(pos.xy, DEPTH_IMAGE, 1.0); + gl_Position = vec4(pos.xy, IMAGE_Z_DEPTH, 1.0); uvs = point_view_to_object(image_pos).xy; } else { @@ -26,7 +26,7 @@ void main() * to detect if a transparency texture or the background color should be drawn. * Vertices are between 0.0 and 0.2, Edges between 0.2 and 0.4 * actual pixels are at 0.75, 1.0 is used for the background. */ - position.z = DEPTH_IMAGE; + position.z = IMAGE_Z_DEPTH; gl_Position = position; uvs = world_pos.xy; } |