diff options
Diffstat (limited to 'res/shaders/simple_shader.frag')
-rwxr-xr-x | res/shaders/simple_shader.frag | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/res/shaders/simple_shader.frag b/res/shaders/simple_shader.frag new file mode 100755 index 0000000..b11a5a8 --- /dev/null +++ b/res/shaders/simple_shader.frag @@ -0,0 +1,19 @@ +#version 450 + +layout (location = 0) in vec3 fragColor; + +layout (location = 0) out vec4 outColor; + +layout(set = 0, binding = 0) uniform GlobalUbo { + mat4 projectionViewMatrix; + vec3 directionToLight; +} ubo; + +layout(push_constant) uniform Push { + mat4 transform; + mat4 normalMatrix; +} push; + +void main() { + outColor = vec4(fragColor, 1.0); +}
\ No newline at end of file |