* UnshadedArray shader will attempt to enable the relevant texture array extensions, otherwise it shouldn't work at all (don't know why it did)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10564 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
1aa0f9d7bd
commit
7e6534c1b7
@ -1,3 +1,6 @@
|
|||||||
|
#extension GL_EXT_texture_array : enable
|
||||||
|
#extension GL_EXT_gpu_shader4 : enable
|
||||||
|
|
||||||
uniform vec4 m_Color;
|
uniform vec4 m_Color;
|
||||||
|
|
||||||
#if defined(HAS_GLOWMAP) || defined(HAS_COLORMAP) || (defined(HAS_LIGHTMAP) && !defined(SEPARATE_TEXCOORD))
|
#if defined(HAS_GLOWMAP) || defined(HAS_COLORMAP) || (defined(HAS_LIGHTMAP) && !defined(SEPARATE_TEXCOORD))
|
||||||
@ -5,6 +8,10 @@ uniform vec4 m_Color;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAS_COLORMAP
|
#ifdef HAS_COLORMAP
|
||||||
|
#if !defined(GL_EXT_texture_array) && !defined(GL_EXT_gpu_shader4)
|
||||||
|
#error Texture arrays are not supported, but required for this shader.
|
||||||
|
#endif
|
||||||
|
|
||||||
uniform sampler2DArray m_ColorMap;
|
uniform sampler2DArray m_ColorMap;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user