mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
17 lines
362 B
GLSL
17 lines
362 B
GLSL
attribute vec2 positionAttribute;
|
|
attribute vec4 colorAttribute;
|
|
attribute vec2 texCoordAttribute;
|
|
|
|
uniform mat4 modelViewProjectionMatrix;
|
|
|
|
varying vec4 frontColor;
|
|
|
|
varying vec3 normal;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = modelViewProjectionMatrix * vec4(positionAttribute, 0.0, 1.0);
|
|
frontColor = colorAttribute;
|
|
normal = vec3(texCoordAttribute, 1.0);
|
|
}
|