diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-11-05 16:51:55 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-11-10 12:31:53 +0300 |
commit | fa99d3e53b19df5c07999a90115bf52ac7886dc3 (patch) | |
tree | caf63efcb66d84a0334b02d851fb56111fab3289 /source/blender/gpu/shaders | |
parent | 3bd6b80d65baa7d4b17a1e3c0ad6d96d2d2d0429 (diff) |
Fix T92807: Incorrect display planar tracking.
Issue introduced in {7e66616b7e15} where the shader was replaced with a
2d image shader. This patch reverts several commits that removed the 3d
image shader.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl b/source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl new file mode 100644 index 00000000000..613352b4ac8 --- /dev/null +++ b/source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl @@ -0,0 +1,12 @@ + +in vec2 texCoord_interp; +out vec4 fragColor; + +uniform float alpha; +uniform sampler2D image; + +void main() +{ + fragColor = texture(image, texCoord_interp); + fragColor.a *= alpha; +} |