Aucune description

cube.frag 327B

1234567891011121314
  1. #version 450
  2. layout (set = 0, binding = 2) uniform sampler2D samplerColorMap;
  3. layout (location = 0) in vec3 inNormal;
  4. layout (location = 1) in vec3 inColor;
  5. layout (location = 2) in vec2 inUV;
  6. layout (location = 0) out vec4 outFragColor;
  7. void main()
  8. {
  9. outFragColor = texture(samplerColorMap, inUV) * vec4(inColor, 1.0);
  10. }