summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc')
-rw-r--r--3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc15
1 files changed, 15 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc b/3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc
new file mode 100644
index 00000000000..7b27eaa1b32
--- /dev/null
+++ b/3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc
@@ -0,0 +1,15 @@
+$input v_texcoord0, v_color0
+
+/*
+ * Copyright 2011-2017 Branimir Karadzic. All rights reserved.
+ * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
+ */
+
+#include <bgfx_shader.sh>
+
+SAMPLER2D(s_texColor, 0);
+
+void main()
+{
+ gl_FragColor = texture2D(s_texColor, v_texcoord0) * v_color0;
+}