12 lines
319 B
Bash
12 lines
319 B
Bash
//星空着色器
|
|
uniform mat4 uMVPMatrix; //总变换矩阵
|
|
uniform float uPointSize;//点尺寸
|
|
attribute vec3 aPosition; //顶点位置
|
|
|
|
void main()
|
|
{
|
|
//根据总变换矩阵计算此次绘制此顶点位置
|
|
gl_Position = uMVPMatrix * vec4(aPosition,1);
|
|
//
|
|
gl_PointSize=uPointSize;
|
|
} |