2021-05-30 19:38:26 +02:00
|
|
|
#version 430
|
|
|
|
|
|
|
|
in PipelineData {
|
|
|
|
vec4 position;
|
|
|
|
vec2 texture_coordinate;
|
|
|
|
} fs_in;
|
|
|
|
|
2021-05-30 20:33:10 +02:00
|
|
|
layout (binding = 0) uniform sampler2D heightmap;
|
2021-05-30 19:38:26 +02:00
|
|
|
|
|
|
|
out vec4 color;
|
|
|
|
|
|
|
|
void main() {
|
2021-05-30 20:33:10 +02:00
|
|
|
vec4 diffuse_texel = texture(heightmap, fs_in.texture_coordinate);
|
|
|
|
color = vec4(diffuse_texel);
|
2021-05-30 19:38:26 +02:00
|
|
|
}
|