From 9f45f78c86f9467450b9ae079325ab9754bd2a10 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sun, 25 May 2014 15:00:01 +0200 Subject: [PATCH] Fixed GammaCorrectionFilter path to j3md and frag files --- .../java/com/jme3/post/filters/GammaCorrectionFilter.java | 2 +- .../main/resources/Common/MatDefs/Post/GammaCorrection.j3md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-effects/src/main/java/com/jme3/post/filters/GammaCorrectionFilter.java b/jme3-effects/src/main/java/com/jme3/post/filters/GammaCorrectionFilter.java index c8262fd84..8401ac2ac 100644 --- a/jme3-effects/src/main/java/com/jme3/post/filters/GammaCorrectionFilter.java +++ b/jme3-effects/src/main/java/com/jme3/post/filters/GammaCorrectionFilter.java @@ -64,7 +64,7 @@ public class GammaCorrectionFilter extends Filter { @Override protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) { - material = new Material(manager, "Materials/Filter/GammaCorrection.j3md"); + material = new Material(manager, "Common/MatDefs/Post/GammaCorrection.j3md"); material.setFloat("InvGamma", 1.0f/gamma); } diff --git a/jme3-effects/src/main/resources/Common/MatDefs/Post/GammaCorrection.j3md b/jme3-effects/src/main/resources/Common/MatDefs/Post/GammaCorrection.j3md index c2791906d..912983554 100644 --- a/jme3-effects/src/main/resources/Common/MatDefs/Post/GammaCorrection.j3md +++ b/jme3-effects/src/main/resources/Common/MatDefs/Post/GammaCorrection.j3md @@ -8,7 +8,7 @@ MaterialDef GammaCorrection { Technique { VertexShader GLSL150: Common/MatDefs/Post/Post15.vert - FragmentShader GLSL150: Materials/Filter/GammaCorrection15.frag + FragmentShader GLSL150: Common/MatDefs/Post/GammaCorrection15.frag WorldParameters { } @@ -20,7 +20,7 @@ MaterialDef GammaCorrection { Technique { VertexShader GLSL100: Common/MatDefs/Post/Post.vert - FragmentShader GLSL100: Materials/Filter/GammaCorrection.frag + FragmentShader GLSL100: Common/MatDefs/Post/GammaCorrection.frag WorldParameters { }