1
0
mirror of synced 2024-12-19 19:06:02 +01:00
OpenTaiko/OpenTaiko/Shaders/Common.glsl.vert
Takkkom 97a408c607
Net7 2 (#492)
* net7にアップデート

* fix

* oops

* Readmeを追加
2023-09-18 08:11:17 +09:00

21 lines
436 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPosition;
layout (location = 1) in vec2 aTexCoord;
uniform mat4 mvp;
uniform vec4 textureRect;
uniform mat4 camera;
out vec2 texcoord;
void main()
{
vec4 position = vec4(aPosition, 1.0);
position = mvp * position * camera;
gl_Position = position;
texcoord = textureRect.xy;
texcoord.xy += aTexCoord.xy * textureRect.zw;
}