This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
OldPascalProjects/OpenGL и OpenCL/OpenGL/Rot Triangle 1.vertex.glsl
2024-03-10 20:32:51 +03:00

19 lines
268 B
GLSL

#version 460
attribute vec2 position;
attribute vec3 color;
uniform float rot_k;
void main()
{
gl_Position.x = position.x*rot_k;
gl_Position.y = position.y;
gl_Position.z = 0.0f;
gl_Position.w = 1.0f;
gl_FrontColor.rgb = color;
gl_FrontColor.a = 1.0f;
}