blob: a15c4fbd3b0c276d1f3bcf51044fa1422ebe949b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
layout(binding = 1) uniform usampler2DRect materialData;
include(`meshIn.glsl')
include(`materialDetail.glsl')
include(`getMaterialDetail.glsl')
out vec3 FragPos;
out vec2 TexCoords;
flat out MaterialDetail Material;
void
main()
{
TexCoords = texCoord;
Material = getMaterialDetail(material);
FragPos = position;
}
|