From fdf3b1f61be84621f5efb58dad730371b26453b9 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 13 Sep 2017 21:42:21 -0400 Subject: Add beginnings of glTF parser and loader. * chickadee/render/asset.scm: New file. * chickadee/render/scene.scm: New file. * data/shaders/pbr/pbr-frag.glsl: New file. * data/shaders/pbr/pbr-vert.glsl: New file. --- data/shaders/pbr/pbr-frag.glsl | 5 +++++ data/shaders/pbr/pbr-vert.glsl | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 data/shaders/pbr/pbr-frag.glsl create mode 100644 data/shaders/pbr/pbr-vert.glsl (limited to 'data/shaders') diff --git a/data/shaders/pbr/pbr-frag.glsl b/data/shaders/pbr/pbr-frag.glsl new file mode 100644 index 0000000..9699da6 --- /dev/null +++ b/data/shaders/pbr/pbr-frag.glsl @@ -0,0 +1,5 @@ +#version 330 + +void main (void) { + gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); +} diff --git a/data/shaders/pbr/pbr-vert.glsl b/data/shaders/pbr/pbr-vert.glsl new file mode 100644 index 0000000..d3d7eca --- /dev/null +++ b/data/shaders/pbr/pbr-vert.glsl @@ -0,0 +1,9 @@ +#version 330 + +in vec3 position; +in vec3 normal; +uniform mat4 mvp; + +void main(void) { + gl_Position = mvp * vec4(position.xyz, 1.0); +} -- cgit v1.2.3