DKGL2 sample codes

mesh.frag 269B

12345678910111213
  1. #version 450
  2. layout (binding = 1) uniform sampler2D samplerColor;
  3. layout (location = 0) in vec3 fragColor;
  4. layout (location = 1) in vec2 fragTexCoord;
  5. layout (location = 0) out vec4 outFragColor;
  6. void main()
  7. {
  8. outFragColor = texture(samplerColor, fragTexCoord);
  9. }