您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
395 B

  1. #version 450 core
  2. #pragma include ./shared.glsl
  3. #pragma include ../misc/camera.glsl
  4. const float GLOW_SIZE_FACTOR = 4.00;
  5. in vec3 inPosition;
  6. uniform mat4 uModel;
  7. out FragmentData fragmentData;
  8. void main() {
  9. fragmentData.texCoords = inPosition.xy * GLOW_SIZE_FACTOR + vec2(0.5);
  10. gl_Position = uCamera.projection * uCamera.view * uModel * vec4(inPosition * GLOW_SIZE_FACTOR, 1.0);
  11. }