pebble-engine 0.2.2

A modular, ECS-style graphics/app framework for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 460
layout(location = 0) out vec4 fragColor;

layout(location = 0) in vec3 vPos;
layout(location = 1) in vec2 vTexCoords;

layout(set = 0, binding = 0) uniform texture2D tAlbedo;
layout(set = 0, binding = 1) uniform sampler sAlbedo;

void main() {
    vec3 color = texture(sampler2D(tAlbedo, sAlbedo), vTexCoords).rgb;
    fragColor = vec4(color, 1.0f);
}