mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
4c515a81cb
* Make each example its own workspace member * Fix runtime-shader example * Fix shader-include example * Fix teapot example * Fix `run_all.sh` * Fix output files getting saved in cwd * Fix spelling for examples readme filename * Remove wrong leftover dependencies for gl-interop * Fix pipeline-cache example * Clearer .gitignore * Help cargo be less useless
23 lines
665 B
GLSL
23 lines
665 B
GLSL
// Copyright (c) 2017 The vulkano developers
|
|
// Licensed under the Apache License, Version 2.0
|
|
// <LICENSE-APACHE or
|
|
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT
|
|
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>,
|
|
// at your option. All files in the project carrying such
|
|
// notice may not be copied, modified, or distributed except
|
|
// according to those terms.
|
|
//
|
|
// Use your GLSL to Vulkan SPIRV tools to build these files.
|
|
#version 450
|
|
|
|
layout(location = 0) in vec2 position;
|
|
layout(location = 1) in vec3 color;
|
|
|
|
layout(location = 0) out vec3 v_color;
|
|
|
|
void main() {
|
|
v_color = color;
|
|
|
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
}
|