* Fix spelling error in Unshaded material Seperate => Separate, hopefully no-one was using it as otherwise it would break a lot of things
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7553 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
02502ef491
commit
39e3e2d11f
@ -1,6 +1,6 @@
|
|||||||
uniform vec4 m_Color;
|
uniform vec4 m_Color;
|
||||||
|
|
||||||
#if defined(HAS_GLOWMAP) || defined(HAS_COLORMAP) || (defined(HAS_LIGHTMAP) && !defined(SEPERATE_TEXCOORD))
|
#if defined(HAS_GLOWMAP) || defined(HAS_COLORMAP) || (defined(HAS_LIGHTMAP) && !defined(SEPARATE_TEXCOORD))
|
||||||
#define NEED_TEXCOORD1
|
#define NEED_TEXCOORD1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ void main(){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAS_LIGHTMAP
|
#ifdef HAS_LIGHTMAP
|
||||||
#ifdef SEPERATE_TEXCOORD
|
#ifdef SEPARATE_TEXCOORD
|
||||||
color.rgb *= texture2D(m_LightMap, texCoord2).rgb;
|
color.rgb *= texture2D(m_LightMap, texCoord2).rgb;
|
||||||
#else
|
#else
|
||||||
color.rgb *= texture2D(m_LightMap, texCoord1).rgb;
|
color.rgb *= texture2D(m_LightMap, texCoord1).rgb;
|
||||||
|
@ -5,7 +5,7 @@ MaterialDef Unshaded {
|
|||||||
Texture2D LightMap
|
Texture2D LightMap
|
||||||
Color Color : Color
|
Color Color : Color
|
||||||
Boolean VertexColor
|
Boolean VertexColor
|
||||||
Boolean SeperateTexCoord
|
Boolean SeparateTexCoord
|
||||||
|
|
||||||
// Texture of the glowing parts of the material
|
// Texture of the glowing parts of the material
|
||||||
Texture2D GlowMap
|
Texture2D GlowMap
|
||||||
@ -22,7 +22,7 @@ MaterialDef Unshaded {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Defines {
|
Defines {
|
||||||
SEPERATE_TEXCOORD : SeperateTexCoord
|
SEPARATE_TEXCOORD : SeparateTexCoord
|
||||||
HAS_COLORMAP : ColorMap
|
HAS_COLORMAP : ColorMap
|
||||||
HAS_LIGHTMAP : LightMap
|
HAS_LIGHTMAP : LightMap
|
||||||
HAS_VERTEXCOLOR : VertexColor
|
HAS_VERTEXCOLOR : VertexColor
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
uniform mat4 g_WorldViewProjectionMatrix;
|
uniform mat4 g_WorldViewProjectionMatrix;
|
||||||
attribute vec3 inPosition;
|
attribute vec3 inPosition;
|
||||||
|
|
||||||
#if defined(HAS_COLORMAP) || (defined(HAS_LIGHTMAP) && !defined(SEPERATE_TEXCOORD))
|
#if defined(HAS_COLORMAP) || (defined(HAS_LIGHTMAP) && !defined(SEPARATE_TEXCOORD))
|
||||||
#define NEED_TEXCOORD1
|
#define NEED_TEXCOORD1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ attribute vec3 inPosition;
|
|||||||
varying vec2 texCoord1;
|
varying vec2 texCoord1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SEPERATE_TEXCOORD
|
#ifdef SEPARATE_TEXCOORD
|
||||||
attribute vec2 inTexCoord2;
|
attribute vec2 inTexCoord2;
|
||||||
varying vec2 texCoord2;
|
varying vec2 texCoord2;
|
||||||
#endif
|
#endif
|
||||||
@ -25,7 +25,7 @@ void main(){
|
|||||||
texCoord1 = inTexCoord;
|
texCoord1 = inTexCoord;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SEPERATE_TEXCOORD
|
#ifdef SEPARATE_TEXCOORD
|
||||||
texCoord2 = inTexCoord2;
|
texCoord2 = inTexCoord2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user