Added a basic mesh shader example
This commit is contained in:
parent
c79333e085
commit
89fc84bf14
7 changed files with 298 additions and 0 deletions
19
data/shaders/glsl/meshshader/meshshader.frag
Normal file
19
data/shaders/glsl/meshshader/meshshader.frag
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* Copyright (c) 2021, Sascha Willems
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#version 450
|
||||
|
||||
layout (location = 0) in VertexInput {
|
||||
vec4 color;
|
||||
} vertexInput;
|
||||
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vertexInput.color;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue