From 485af7cf2aaf929d15bd39655fe86a0df6fbbb4f Mon Sep 17 00:00:00 2001 From: Nehon Date: Fri, 3 Jul 2015 22:58:42 +0200 Subject: [PATCH] TextureFetch shader node now works with glgl1.5 --- .../Common/MatDefs/ShaderNodes/Basic/TextureFetch.j3sn | 1 + .../resources/Common/MatDefs/ShaderNodes/Basic/texture15.frag | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/texture15.frag diff --git a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/TextureFetch.j3sn b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/TextureFetch.j3sn index b4ccd3640..69fdec638 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/TextureFetch.j3sn +++ b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/TextureFetch.j3sn @@ -2,6 +2,7 @@ ShaderNodeDefinitions{ ShaderNodeDefinition TextureFetch { Type: Fragment Shader GLSL100: Common/MatDefs/ShaderNodes/Basic/texture.frag + Shader GLSL150: Common/MatDefs/ShaderNodes/Basic/texture15.frag Documentation{ Fetches a color value in the given texture acording to given texture coordinates @input texture the texture to read diff --git a/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/texture15.frag b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/texture15.frag new file mode 100644 index 000000000..b716c3e89 --- /dev/null +++ b/jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Basic/texture15.frag @@ -0,0 +1,3 @@ +void main(){ + outColor = texture(texture,texCoord); +} \ No newline at end of file