fragment.fs 194 B

123456789101112
  1. #version 430
  2. layout (binding = 0) uniform sampler3D samp;
  3. in vec3 varTextureG;
  4. out vec4 color;
  5. void main(void) {
  6. float f = texture(samp, varTextureG).r;
  7. color = vec4(f, f, f, 1.0);
  8. }