Skip to content

Commit

Permalink
Fixed an issue where CustomShaderDesktopLauncher could not find resou…
Browse files Browse the repository at this point in the history
…rces (#126)

* Fixed an issue where CustomShaderDesktopLauncher could not find resources

Fixed an issue where CustomShaderDesktopLauncher could not find resources

* fixed Box2dLightTest

fixed Box2dLightTest
  • Loading branch information
nanshaws authored Aug 26, 2024
1 parent 02e7449 commit 79880af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions test/tests/Box2dLightCustomShaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public class Box2dLightCustomShaderTest extends InputAdapter implements Applicat

@Override
public void create() {
bg = new Texture(Gdx.files.internal("data/bg-deferred.png"));
bgN = new Texture(Gdx.files.internal("data/bg-deferred-n.png"));
bg = new Texture(Gdx.files.internal("test/data/bg-deferred.png"));
bgN = new Texture(Gdx.files.internal("test/data/bg-deferred-n.png"));

MathUtils.random.setSeed(Long.MIN_VALUE);

Expand All @@ -95,10 +95,10 @@ public void create() {
font.setColor(Color.RED);

TextureRegion marbleD = new TextureRegion(new Texture(
Gdx.files.internal("data/marble.png")));
Gdx.files.internal("test/data/marble.png")));

TextureRegion marbleN = new TextureRegion(new Texture(
Gdx.files.internal("data/marble-n.png")));
Gdx.files.internal("test/data/marble-n.png")));

marble = new DeferredObject(marbleD, marbleN);
marble.width = RADIUS * 2;
Expand Down Expand Up @@ -135,8 +135,8 @@ public void create() {
/** BOX2D LIGHT STUFF END */


objectReg = new TextureRegion(new Texture(Gdx.files.internal("data/object-deferred.png")));
objectRegN = new TextureRegion(new Texture(Gdx.files.internal("data/object-deferred-n.png")));
objectReg = new TextureRegion(new Texture(Gdx.files.internal("test/data/object-deferred.png")));
objectRegN = new TextureRegion(new Texture(Gdx.files.internal("test/data/object-deferred-n.png")));

for (int x = 0; x < 4; x++) {
for (int y = 0; y < 3; y++) {
Expand Down
4 changes: 2 additions & 2 deletions test/tests/Box2dLightTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public void create() {
font.setColor(Color.RED);

textureRegion = new TextureRegion(new Texture(
Gdx.files.internal("data/marble.png")));
bg = new Texture(Gdx.files.internal("data/bg.png"));
Gdx.files.internal("test/data/marble.png")));
bg = new Texture(Gdx.files.internal("test/data/bg.png"));

createPhysicsWorld();
Gdx.input.setInputProcessor(this);
Expand Down

0 comments on commit 79880af

Please sign in to comment.