Used texture function instead of texture2D function for glsl1.5 shaders, as it's deprecated an seems to fail on some hardware

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@11063 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
rem..om 11 years ago
parent 561b1c2ddf
commit 87b84949ab
  1. 8
      engine/src/core-data/Common/ShaderLib/MultiSample.glsllib

@ -46,17 +46,17 @@ vec4 getDepth(in sampler2DMS tex,in vec2 texC){
#endif
vec4 fetchTextureSample(in sampler2D tex,in vec2 texC,in int sample){
return texture2D(tex,texC);
return texture(tex,texC);
}
vec4 getColor(in sampler2D tex, in vec2 texC){
return texture2D(tex,texC);
return texture(tex,texC);
}
vec4 getColorSingle(in sampler2D tex, in vec2 texC){
return texture2D(tex, texC);
return texture(tex, texC);
}
vec4 getDepth(in sampler2D tex,in vec2 texC){
return texture2D(tex,texC);
return texture(tex,texC);
}
Loading…
Cancel
Save