summaryrefslogtreecommitdiffstats
path: root/src/demos/dualDepthPeeling/GLSLProgramObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/dualDepthPeeling/GLSLProgramObject.java')
-rw-r--r--src/demos/dualDepthPeeling/GLSLProgramObject.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/demos/dualDepthPeeling/GLSLProgramObject.java b/src/demos/dualDepthPeeling/GLSLProgramObject.java
index 85038c1..68d0e9a 100644
--- a/src/demos/dualDepthPeeling/GLSLProgramObject.java
+++ b/src/demos/dualDepthPeeling/GLSLProgramObject.java
@@ -1,3 +1,5 @@
+package demos.dualDepthPeeling;
+
// Translated from C++ Version see below:
//
@@ -116,7 +118,10 @@ public class GLSLProgramObject
public void attachVertexShader(GL2 gl, String filename)
{
- URL fileURL = getClass().getClassLoader().getResource(File.separator + "shaders" + File.separator + filename);
+ URL fileURL = getClass().getClassLoader().getResource(
+ File.separator + "demos" +
+ File.separator + "dualDepthPeeling" +
+ File.separator + "shaders" + File.separator + filename);
if ( fileURL != null )
{
String content = "";
@@ -177,7 +182,10 @@ public class GLSLProgramObject
public void attachFragmentShader(GL2 gl, String filename)
{
- URL fileURL = getClass().getClassLoader().getResource(File.separator + "shaders" + File.separator + filename);
+ URL fileURL = getClass().getClassLoader().getResource(
+ File.separator + "demos" +
+ File.separator + "dualDepthPeeling" +
+ File.separator + "shaders" + File.separator + filename);
if ( fileURL != null )
{
String content = "";