whatever
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#version 450
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
|
||||
layout(binding = 1) uniform sampler2D tex;
|
||||
|
||||
layout(location = 0) in vec2 tex_coords;
|
||||
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
//layout(binding = 1) uniform sampler2D tex;
|
||||
|
||||
void main() {
|
||||
out_color = vec4(1.0, 0.0, 0.0, 1.0);// texture(tex, tex_coords);
|
||||
out_color = texture(tex, tex_coords);
|
||||
}
|
||||
@@ -16,6 +16,10 @@ layout(push_constant) uniform PushConstants {
|
||||
mat4 model;
|
||||
} push;
|
||||
|
||||
out gl_PerVertex {
|
||||
vec4 gl_Position;
|
||||
};
|
||||
|
||||
void main() {
|
||||
gl_Position = ubo.projection * ubo.view * push.model * vec4(position, 1.0);
|
||||
tex_coords = uv;
|
||||
|
||||
Reference in New Issue
Block a user