Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/dist/shaders/deferred/ambient.frag

11 lines
310 B
GLSL
Raw Normal View History

2024-01-03 16:05:02 -05:00
layout(location = 0) out vec4 outColor;
layout(location = 0) in vec2 uv;
layout(binding = 0) uniform sampler2D albedoSampler;
layout(binding = 1) uniform sampler2D materialSampler;
void main() {
outColor = vec4(vec3(0.01) * texture(albedoSampler, uv).rgb + vec3(texture(materialSampler, uv).b), 1.0);
}