diff options
Diffstat (limited to 'res/shaders/simple_shader.vert')
-rwxr-xr-x | res/shaders/simple_shader.vert | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/res/shaders/simple_shader.vert b/res/shaders/simple_shader.vert index 30e7a79..8a28a59 100755 --- a/res/shaders/simple_shader.vert +++ b/res/shaders/simple_shader.vert @@ -3,20 +3,17 @@ layout (location = 0) in vec3 position; layout (location = 1) in vec3 normal; layout (location = 2) in vec2 uv; +layout (location = 3) in float tex; layout (location = 0) out vec3 fragColor; layout (location = 1) out vec2 fragUv; +layout (location = 2) out float fragTex; layout (binding = 0) uniform GlobalUbo { mat4 projectionViewMatrix; vec3 directionToLight; } ubo; -layout (binding = 2) uniform Deez { - mat4 projectionViewMatrix; - vec3 directionToLight; -} deez; - layout (push_constant) uniform Push { mat4 modelMatrix; mat4 normalMatrix; @@ -33,4 +30,5 @@ void main() { fragColor = lightIntensity * vec3(1); fragUv = uv; + fragTex = tex; }
\ No newline at end of file |