summaryrefslogtreecommitdiff
path: root/intermediate/surface_depthonly.glsl
blob: 2db5e964d9a14ea3e2d8c2ede3f0668d68489dd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifdef DESC
[program]
type: graphics
vertex: main
fragment: main

[binding]
name: mesh
rate: vertex
[attribute]
name: position
type: vec3

[struct]
name: Model
[variable]
name: model
type: mat4

[struct]
name: VP
[variable]
name: view_projection
type: mat4

[cbuffer]
name: c_vp
type: VP
stage: vertex

[cbuffer]
name: c_model
type: Model
stage: vertex

#endif

#ifdef VERTEX_SHADER

void main() {
	vec4 pos = c_model.model * vec4(position, 1.0);
	gl_Position = c_vp.view_projection * pos;
}

#endif

#ifdef FRAGMENT_SHADER

void main() {}

#endif