|
楼主 |
发表于 2011-1-28 12:31:00
|
显示全部楼层
Re:一个需要Radeon HD5/GeForce GTX4显卡的纯色三角形
vertex shader:
#version 330
in vec4 vertex;
void main(void)
{
gl_Position = vertex;
}
----------------------------------------------------------
fragment shader:
#version 330
layout(location = 0, index = 0) out vec4 fragColor;
void main(void)
{
fragColor = vec4(1.0, 0.0, 0.0, 1.0);
} |
|