/
redgpu
/
raygpu
Обзор
Документация
Войти
/
redgpu
/
raygpu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
resources/lightmap.fs
23 строки
629 B
manuel
GLSL is cooked
02 апр 2025, 10:27
02 апр 2025, 10:27
4645898
Код
Авторство
О чём код?
#version 460 // Input vertex attributes (from vertex shader) layout(location=0) in vec2 fragTexCoord; layout(location=1) in vec2 fragTexCoord2; layout(location=2) in vec3 fragPosition; layout(location=3) in vec4 fragColor; // Input uniform values layout(binding=2) uniform sampler2D texture0; layout(binding=3) uniform sampler2D texture1; // Output fragment color layout(location=0) out vec4 finalColor; void main() { // Texel color fetching from texture sampler vec4 texelColor = texture(texture0, fragTexCoord); vec4 texelColor2 = texture(texture1, fragTexCoord2); finalColor = texelColor * texelColor2; }