Skip to content
Snippets Groups Projects
Commit 83f8eb5b authored by BATON Theau's avatar BATON Theau
Browse files

Resolve texture Bug

parent 5390465c
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 0 deletions
#version 330 core
layout (location = 0) in vec2 aPos;
layout (location = 1) in vec2 aTex;
uniform mat4 uProj;
uniform mat4 uView;
uniform mat4 uModel[128];
uniform float uTime;
out vec2 Texture;
float process(vec2 pos, mat4 model, float time, int id) {
return pos.y + sin(time + id * 0.01);
}
void main() {
Texture = aTex;
gl_Position = uProj * uView * uModel[gl_InstanceID] * vec4(aPos.x, process(aPos, uModel[gl_InstanceID], uTime, gl_InstanceID), 0.0, 1.0);
}
\ No newline at end of file
assets/textures/Cube_Air.png

134 B

assets/textures/Cube_Amber.png

1.79 KiB

assets/textures/Cube_Blue.png

314 B | W: | H:

assets/textures/Cube_Blue.png

282 B | W: | H:

assets/textures/Cube_Blue.png
assets/textures/Cube_Blue.png
assets/textures/Cube_Blue.png
assets/textures/Cube_Blue.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Brown.png

314 B

assets/textures/Cube_Cyan.png

314 B | W: | H:

assets/textures/Cube_Cyan.png

282 B | W: | H:

assets/textures/Cube_Cyan.png
assets/textures/Cube_Cyan.png
assets/textures/Cube_Cyan.png
assets/textures/Cube_Cyan.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Dark_Green.png

314 B

assets/textures/Cube_Grass.png

775 B | W: | H:

assets/textures/Cube_Grass.png

450 B | W: | H:

assets/textures/Cube_Grass.png
assets/textures/Cube_Grass.png
assets/textures/Cube_Grass.png
assets/textures/Cube_Grass.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Gray.png

314 B | W: | H:

assets/textures/Cube_Gray.png

282 B | W: | H:

assets/textures/Cube_Gray.png
assets/textures/Cube_Gray.png
assets/textures/Cube_Gray.png
assets/textures/Cube_Gray.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Grayy.png

1 KiB

assets/textures/Cube_Green.png

314 B | W: | H:

assets/textures/Cube_Green.png

282 B | W: | H:

assets/textures/Cube_Green.png
assets/textures/Cube_Green.png
assets/textures/Cube_Green.png
assets/textures/Cube_Green.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Greeny.png

1.43 KiB

assets/textures/Cube_Inverted.png

314 B

assets/textures/Cube_Inverted_2.png

314 B

assets/textures/Cube_Lava.png

776 B

assets/textures/Cube_Magenta.png

314 B

assets/textures/Cube_Orange.png

314 B | W: | H:

assets/textures/Cube_Orange.png

282 B | W: | H:

assets/textures/Cube_Orange.png
assets/textures/Cube_Orange.png
assets/textures/Cube_Orange.png
assets/textures/Cube_Orange.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Pink.png

314 B | W: | H:

assets/textures/Cube_Pink.png

282 B | W: | H:

assets/textures/Cube_Pink.png
assets/textures/Cube_Pink.png
assets/textures/Cube_Pink.png
assets/textures/Cube_Pink.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Purple.png

314 B | W: | H:

assets/textures/Cube_Purple.png

282 B | W: | H:

assets/textures/Cube_Purple.png
assets/textures/Cube_Purple.png
assets/textures/Cube_Purple.png
assets/textures/Cube_Purple.png
  • 2-up
  • Swipe
  • Onion skin
assets/textures/Cube_Red.png

314 B | W: | H:

assets/textures/Cube_Red.png

282 B | W: | H:

assets/textures/Cube_Red.png
assets/textures/Cube_Red.png
assets/textures/Cube_Red.png
assets/textures/Cube_Red.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment