From beb5033747245f30ee7439162b1a6ba0d8ac605c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Bouquet?= Date: Sun, 14 Aug 2016 11:09:18 +0200 Subject: [PATCH] added GLSL compat to the pbr shader --- .../src/main/resources/Common/MatDefs/Light/PBRLighting.frag | 2 ++ .../src/main/resources/Common/MatDefs/Light/PBRLighting.vert | 2 ++ 2 files changed, 4 insertions(+) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag index 94444ec8c..27ea29aa4 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag @@ -1,7 +1,9 @@ +#import "Common/ShaderLib/GLSLCompat.glsllib" #import "Common/ShaderLib/Parallax.glsllib" #import "Common/ShaderLib/PBR.glsllib" #import "Common/ShaderLib/Lighting.glsllib" + varying vec2 texCoord; #ifdef SEPARATE_TEXCOORD varying vec2 texCoord2; diff --git a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.vert b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.vert index 04e787dcc..77782456b 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.vert +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.vert @@ -1,6 +1,8 @@ +#import "Common/ShaderLib/GLSLCompat.glsllib" #import "Common/ShaderLib/Instancing.glsllib" #import "Common/ShaderLib/Skinning.glsllib" + uniform vec4 m_BaseColor; uniform vec4 g_AmbientLightColor;