Geometry shader demo program.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

geometry.vert 264B

123456789101112
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. layout(location = 0) in vec3 inPosition;
  4. layout(location = 1) in vec3 inColor;
  5. layout(location = 0) out vec3 outColor;
  6. void main() {
  7. gl_Position = vec4(inPosition, 1.0);
  8. outColor = inColor;
  9. }