Added cards
This commit is contained in:
parent
2a8b38ffc4
commit
f3b4ffd75f
14 changed files with 273 additions and 8 deletions
12
res/card.fs
Normal file
12
res/card.fs
Normal file
|
@ -0,0 +1,12 @@
|
|||
#version 440 core
|
||||
|
||||
in vec2 uvCoord;
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform vec2 offset;
|
||||
uniform sampler2D motive;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = texture(motive, uvCoord + offset);
|
||||
}
|
15
res/card.vs
Normal file
15
res/card.vs
Normal file
|
@ -0,0 +1,15 @@
|
|||
#version 440 core
|
||||
|
||||
layout (location = 0) in vec2 position;
|
||||
layout (location = 1) in vec2 UV;
|
||||
|
||||
out vec2 uvCoord;
|
||||
|
||||
uniform mat4 view;
|
||||
uniform mat4 projection;
|
||||
|
||||
void main()
|
||||
{
|
||||
uvCoord = UV;
|
||||
gl_Position = projection * view * vec4(position, 0.0f, 1.0f);
|
||||
}
|
34
res/card_atlas.json
Normal file
34
res/card_atlas.json
Normal file
|
@ -0,0 +1,34 @@
|
|||
[
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 0,
|
||||
"month": 0,
|
||||
"type": 0,
|
||||
"name_en": "Crane and Sun",
|
||||
"name_jp": "松に鶴"
|
||||
},
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 1,
|
||||
"month": 0,
|
||||
"type": 2,
|
||||
"name_en": "Poetry ribbon",
|
||||
"name_jp": "松に赤短"
|
||||
},
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 2,
|
||||
"month": 0,
|
||||
"type": 3,
|
||||
"name_en": "Pine plain",
|
||||
"name_jp": "松のカス"
|
||||
},
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 3,
|
||||
"month": 0,
|
||||
"type": 3,
|
||||
"name_en": "Pine plain",
|
||||
"name_jp": "松のカス"
|
||||
}
|
||||
]
|
BIN
res/card_atlas.png
Normal file
BIN
res/card_atlas.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 MiB |
Loading…
Add table
Add a link
Reference in a new issue