diff options
Diffstat (limited to 'data/shaders')
-rw-r--r-- | data/shaders/pbr/pbr-frag.glsl | 5 | ||||
-rw-r--r-- | data/shaders/pbr/pbr-vert.glsl | 9 |
2 files changed, 14 insertions, 0 deletions
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); +} |