summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/28-wireframe/uniforms.sh
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/28-wireframe/uniforms.sh')
-rw-r--r--3rdparty/bgfx/examples/28-wireframe/uniforms.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/28-wireframe/uniforms.sh b/3rdparty/bgfx/examples/28-wireframe/uniforms.sh
new file mode 100644
index 00000000000..330555ee50d
--- /dev/null
+++ b/3rdparty/bgfx/examples/28-wireframe/uniforms.sh
@@ -0,0 +1,12 @@
+/*
+ * Copyright 2016 Dario Manesku. All rights reserved.
+ * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
+ */
+
+uniform vec4 u_params[3];
+#define u_camPos u_params[0].xyz
+#define u_unused0 u_params[0].w
+#define u_wfColor u_params[1].xyz
+#define u_wfOpacity u_params[1].w
+#define u_drawEdges u_params[2].x
+#define u_wfThickness u_params[2].y