Added amalia kiss reflex on pyramids

This commit is contained in:
Willem Cazander 2022-03-21 13:50:34 +01:00
parent 9cda88d23b
commit e363c3b162
2 changed files with 13 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View file

@ -51,7 +51,7 @@ public class ScreenDesktop1 extends AbstractScreenDesktop {
mpb.rect(-20f,-1f,-20f, -20f,-1f,20f, 20f,-1f,20f, 20f,-1f,-20f, 0,1,0); mpb.rect(-20f,-1f,-20f, -20f,-1f,20f, 20f,-1f,20f, 20f,-1f,-20f, 0,1,0);
background = modelBuilder.end(); background = modelBuilder.end();
pyramidImage = new Texture(Gdx.files.internal("background/doom-credits.png")); pyramidImage = new Texture(Gdx.files.internal("background/amalia-kiss-reflex.png"));
//Material material2 = new Material(ColorAttribute.createDiffuse(.2f,.2f,.7f,1f)); //Material material2 = new Material(ColorAttribute.createDiffuse(.2f,.2f,.7f,1f));
Material material = new Material(TextureAttribute.createDiffuse(pyramidImage)); Material material = new Material(TextureAttribute.createDiffuse(pyramidImage));
@ -87,21 +87,21 @@ public class ScreenDesktop1 extends AbstractScreenDesktop {
modelBuilder.begin(); modelBuilder.begin();
MeshPartBuilder mpb = modelBuilder.part(name, GL20.GL_TRIANGLES, attr, material); MeshPartBuilder mpb = modelBuilder.part(name, GL20.GL_TRIANGLES, attr, material);
v1.set(new Vector3(-width,0, width), normal, null, new Vector2(1,0)); v1.set(new Vector3(-width,0, width), normal, null, new Vector2(1,1));
v2.set(new Vector3(width,0, width), normal, null, new Vector2(0,1)); v2.set(new Vector3(width,0, width), normal, null, new Vector2(0,.6f));
v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,1)); v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,0));
mpb.triangle(v1, v2, v3); mpb.triangle(v1, v2, v3);
v1.set(new Vector3(width,0, width), normal, null, new Vector2(1,0)); v1.set(new Vector3(width,0, width), normal, null, new Vector2(1,1));
v2.set(new Vector3(width,0, -width), normal, null, new Vector2(0,1)); v2.set(new Vector3(width,0, -width), normal, null, new Vector2(0,.6f));
v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,1)); v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,0));
mpb.triangle(v1, v2, v3); mpb.triangle(v1, v2, v3);
v1.set(new Vector3(width,0, -width), normal, null, new Vector2(1,0)); v1.set(new Vector3(width,0, -width), normal, null, new Vector2(1,1));
v2.set(new Vector3(-width,0, -width), normal, null, new Vector2(0,1)); v2.set(new Vector3(-width,0, -width), normal, null, new Vector2(0,.6f));
v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,1)); v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,0));
mpb.triangle(v1, v2, v3); mpb.triangle(v1, v2, v3);
v1.set(new Vector3(-width,0, -width), normal, null, new Vector2(1,0)); v1.set(new Vector3(-width,0, -width), normal, null, new Vector2(1,1));
v2.set(new Vector3(-width,0, width), normal, null, new Vector2(0,1)); v2.set(new Vector3(-width,0, width), normal, null, new Vector2(0,.6f));
v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,1)); v3.set(new Vector3(0, height, 0), normal, null, new Vector2(1,0));
mpb.triangle(v1, v2, v3); mpb.triangle(v1, v2, v3);
return modelBuilder.end(); return modelBuilder.end();
} }