mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
7788847b04
* mesh-shader-triangle example: copied from instancing example * mesh-shader-triangle example: move shaders to separate files * mesh-shader example: rename example * mesh-shader example: implement mesh shader generating geometry * mesh-shader example: fix instance data indexing partially, still has struct alignment issues * mesh-shader example: fixed instance buffer alignment issues * remove unnecessary things Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com> * mesh-shader example: cargo fmt * mesh-shader example: rename shaders to end in .glsl * mesh-shader example: added color out variable, docs * mesh-shader example: rename shader again * mesh-shader example: reformat shader code * mesh-shader example: cargo fmt with nightly --------- Co-authored-by: Firestar99 <4696087-firestar99@users.noreply.gitlab.com> Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
10 lines
134 B
GLSL
10 lines
134 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in vec4 in_color;
|
|
|
|
layout(location = 0) out vec4 f_color;
|
|
|
|
void main() {
|
|
f_color = in_color;
|
|
}
|