Skip to content
0.2.0-dev Download ZIP
34 lines ·563 B Raw
1#include "_included.glsl"
2
3#[modes]
4
5mode_ninepatch = #define USE_NINEPATCH
6/* clang-format off */
7#[specializations]
8
9DISABLE_LIGHTING = false
10
11#[vertex]
12
13precision highp float;
14precision highp int;
15/* clang-format on */
16layout(location = 0) in highp vec3 vertex;
17
18out highp vec4 position_interp;
19
20void main() {
21 position_interp = vec4(vertex.x, 1, 0, 1);
22}
23
24#[fragment]
25
26precision highp float;
27precision highp int;
28
29in highp vec4 position_interp;
30
31void main() {
32 highp float depth = ((position_interp.z / position_interp.w) + 1.0);
33 frag_color = vec4(depth);
34}