File: light-basic-tex.frag

package info (click to toggle)
vkmark 2025.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,500 kB
  • sloc: cpp: 28,949; ansic: 39; python: 20; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 313 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 420 core

layout(binding = 1) uniform sampler2D MaterialTexture0;

layout(location = 0) in vec4 in_color;
layout(location = 1) in vec2 in_texcoord;

layout(location = 0) out vec4 frag_color;

void main(void)
{
    vec4 texel = texture(MaterialTexture0, in_texcoord);
    frag_color = texel * in_color;
}