diff options
Diffstat (limited to 'intermediate')
-rw-r--r-- | intermediate/monkey.glb | bin | 40636 -> 40752 bytes | |||
-rw-r--r-- | intermediate/surface_depthonly.glsl | 43 |
2 files changed, 43 insertions, 0 deletions
diff --git a/intermediate/monkey.glb b/intermediate/monkey.glb Binary files differindex 3e8fd29..4452d96 100644 --- a/intermediate/monkey.glb +++ b/intermediate/monkey.glb diff --git a/intermediate/surface_depthonly.glsl b/intermediate/surface_depthonly.glsl new file mode 100644 index 0000000..f53a937 --- /dev/null +++ b/intermediate/surface_depthonly.glsl @@ -0,0 +1,43 @@ +#ifdef DESC +[program] +type: graphics +vertex: main +fragment: main + +[binding] +name: mesh +rate: vertex +[attribute] +name: position +type: vec3 + +[struct] +name: MVP +[variable] +name: model +type: mat4 +[variable] +name: view_projection +type: mat4 + +[cbuffer] +name: c_mvp +type: MVP +stage: vertex + +#endif + +#ifdef VERTEX_SHADER + +void main() { + vec4 pos = c_mvp.model * vec4(position, 1.0); + gl_Position = c_mvp.view_projection * pos; +} + +#endif + +#ifdef FRAGMENT_SHADER + +void main() {} + +#endif |