Files
Vulkan-Samples/shaders/texture_loading/glsl/bg.frag
T
2025-09-15 22:03:51 +08:00

11 lines
284 B
GLSL

#version 450
layout(binding = 0) uniform sampler2D backgroundTexture; // Binding 0
layout(location = 0) in vec2 inUV;
layout(location = 0) out vec4 outColor;
void main() {
//outColor = texture(backgroundTexture, inUV);
outColor = vec4(1.0, 0.0, 0.0, 1.0); // 输出红色
}