Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/draw/modes/shaders/object_camera_image_frag.glsl')
-rw-r--r--source/blender/draw/modes/shaders/object_camera_image_frag.glsl25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/draw/modes/shaders/object_camera_image_frag.glsl b/source/blender/draw/modes/shaders/object_camera_image_frag.glsl
deleted file mode 100644
index 7804ebdb8c9..00000000000
--- a/source/blender/draw/modes/shaders/object_camera_image_frag.glsl
+++ /dev/null
@@ -1,25 +0,0 @@
-in vec2 texCoord_interp;
-out vec4 fragColor;
-
-uniform sampler2D image;
-uniform float alpha;
-uniform bool imagePremultiplied;
-
-void main()
-{
-#ifdef DRW_STATE_DO_COLOR_MANAGEMENT
- /* render engine has already applied the view transform. We sample the
- * camera images as srgb*/
- vec4 color = texture_read_as_srgb(image, imagePremultiplied, texCoord_interp);
-
-#else
- /* Render engine renders in linearrgb. We sample the camera images as
- * linearrgb */
- vec4 color = texture_read_as_linearrgb(image, imagePremultiplied, texCoord_interp);
-#endif
-
- color.a *= alpha;
- color.rgb *= color.a;
-
- fragColor = color;
-}