Игра Маджонг | Mahjong game
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
471B

  1. varying vec3 position;
  2. varying vec3 normal;
  3. varying vec2 texCoord;
  4. void main()
  5. {
  6. // Translate vertex coordinates from model/object space to screen one.
  7. gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
  8. // Pass vertex coordinates and normal into camera/eye space.
  9. position = vec3(gl_ModelViewMatrix * gl_Vertex);
  10. normal = vec3(gl_ModelViewMatrix * vec4(gl_Normal, 0.0));
  11. // Pass texture coordinate.
  12. texCoord = gl_MultiTexCoord0.xy;
  13. }