Skip to content

Commit

Permalink
Shader related files loaded as classpath files now.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaphore committed Aug 12, 2019
1 parent 2d7113a commit 437a96d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['../assets', '../../gdx-vfx/effects/assets']
assets.srcDirs = ['../assets']
jniLibs.srcDirs = ['libs']
}

Expand Down
2 changes: 1 addition & 1 deletion gdx-vfx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
subprojects {
group = "com.crashinvaders.vfx"
version = '0.1'
version = '0.2'
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public static ShaderProgram fromFile(String vertexFileName, String fragmentFileN
log += "...";
Gdx.app.log(TAG, "Compiling " + log);

String vpSrc = Gdx.files.internal(basePath + vertexFileName + ".vert").readString();
String fpSrc = Gdx.files.internal(basePath + fragmentFileName + ".frag").readString();
String vpSrc = Gdx.files.classpath(basePath + vertexFileName + ".vert").readString();
String fpSrc = Gdx.files.classpath(basePath + fragmentFileName + ".frag").readString();

ShaderProgram program = ShaderLoader.fromString(vpSrc, fpSrc, vertexFileName, fragmentFileName, defines);
return program;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public LensFlareEffect2(Settings settings, Pixmap.Format fboFormat, Texture text
} else {
// Load default lens color texture if none supplied.
ownsLensColorTexture = true;
lensColorTexture = new Texture(Gdx.files.internal("vfx-lens-color.png"));
lensColorTexture = new Texture(Gdx.files.classpath("vfx-lens-color.png"));
lens.setLensColorTexture(lensColorTexture);
}
}
Expand Down

0 comments on commit 437a96d

Please sign in to comment.