/
redgpu
/
raygpu
Обзор
Документация
Войти
/
redgpu
/
raygpu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
resources/default.frag
19 строк
659 B
manuel5975p
Some reflection and massive rename
23 май 2025, 17:00
23 май 2025, 17:00
ee65ee5
Код
Авторство
О чём код?
#version 450 #extension GL_ARB_separate_shader_objects : enable // Enable separate sampler objects if needed // Inputs from vertex shader. layout(location = 0) in vec2 frag_uv; layout(location = 1) in vec4 frag_color; // Output fragment color. layout(location = 0) out vec4 outColor; // Texture and sampler, bound separately. layout(binding = 1) uniform texture2D texture0; // Texture (binding = 1) layout(binding = 2) uniform sampler texSampler; // Sampler (binding = 2) void main() { // Sample the texture using the combined sampler. vec4 texColor = texture(sampler2D(texture0, texSampler), frag_uv); outColor = texColor * frag_color; }