DKGL2 sample codes

texture.frag 265B

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