One can now mark a texture param in a material definition as linear by using -Linear at the end of the parameter declaration (case insensitive). An Image bound to a material texture param in a linear color space will have its ColorSpace set to linear when bound to the material by mat.setTexture("name", texture); Added the -LINEAR flag to all texture param that needed it in stock materials (lighting.j3md, terrainLighting.j3md, different Filter materials).experimental
parent
e4ba4e9e9e
commit
8ff6f8df24
@ -0,0 +1,40 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2009-2012 jMonkeyEngine |
||||||
|
* All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are |
||||||
|
* met: |
||||||
|
* |
||||||
|
* * Redistributions of source code must retain the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer. |
||||||
|
* |
||||||
|
* * Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* |
||||||
|
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors |
||||||
|
* may be used to endorse or promote products derived from this software |
||||||
|
* without specific prior written permission. |
||||||
|
* |
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
||||||
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
||||||
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
||||||
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
||||||
|
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||||||
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||||
|
*/ |
||||||
|
package com.jme3.texture.image; |
||||||
|
|
||||||
|
|
||||||
|
public enum ColorSpace{ |
||||||
|
|
||||||
|
sRGB, |
||||||
|
Linear |
||||||
|
|
||||||
|
} |
@ -1,353 +1,353 @@ |
|||||||
MaterialDef Phong Lighting { |
MaterialDef Phong Lighting { |
||||||
|
|
||||||
MaterialParameters { |
MaterialParameters { |
||||||
|
|
||||||
// Compute vertex lighting in the shader |
// Compute vertex lighting in the shader |
||||||
// For better performance |
// For better performance |
||||||
Boolean VertexLighting |
Boolean VertexLighting |
||||||
|
|
||||||
// Use more efficent algorithms to improve performance |
// Use more efficent algorithms to improve performance |
||||||
Boolean LowQuality |
Boolean LowQuality |
||||||
|
|
||||||
// Improve quality at the cost of performance |
// Improve quality at the cost of performance |
||||||
Boolean HighQuality |
Boolean HighQuality |
||||||
|
|
||||||
// Output alpha from the diffuse map |
// Output alpha from the diffuse map |
||||||
Boolean UseAlpha |
Boolean UseAlpha |
||||||
|
|
||||||
// Alpha threshold for fragment discarding |
// Alpha threshold for fragment discarding |
||||||
Float AlphaDiscardThreshold (AlphaTestFallOff) |
Float AlphaDiscardThreshold (AlphaTestFallOff) |
||||||
|
|
||||||
// Normal map is in BC5/ATI2n/LATC/3Dc compression format |
// Normal map is in BC5/ATI2n/LATC/3Dc compression format |
||||||
Boolean LATC |
Boolean LATC |
||||||
|
|
||||||
// Use the provided ambient, diffuse, and specular colors |
// Use the provided ambient, diffuse, and specular colors |
||||||
Boolean UseMaterialColors |
Boolean UseMaterialColors |
||||||
|
|
||||||
// Activate shading along the tangent, instead of the normal |
// Activate shading along the tangent, instead of the normal |
||||||
// Requires tangent data to be available on the model. |
// Requires tangent data to be available on the model. |
||||||
Boolean VTangent |
Boolean VTangent |
||||||
|
|
||||||
// Use minnaert diffuse instead of lambert |
// Use minnaert diffuse instead of lambert |
||||||
Boolean Minnaert |
Boolean Minnaert |
||||||
|
|
||||||
// Use ward specular instead of phong |
// Use ward specular instead of phong |
||||||
Boolean WardIso |
Boolean WardIso |
||||||
|
|
||||||
// Use vertex color as an additional diffuse color. |
// Use vertex color as an additional diffuse color. |
||||||
Boolean UseVertexColor |
Boolean UseVertexColor |
||||||
|
|
||||||
// Ambient color |
// Ambient color |
||||||
Color Ambient (MaterialAmbient) |
Color Ambient (MaterialAmbient) |
||||||
|
|
||||||
// Diffuse color |
// Diffuse color |
||||||
Color Diffuse (MaterialDiffuse) |
Color Diffuse (MaterialDiffuse) |
||||||
|
|
||||||
// Specular color |
// Specular color |
||||||
Color Specular (MaterialSpecular) |
Color Specular (MaterialSpecular) |
||||||
|
|
||||||
// Specular power/shininess |
// Specular power/shininess |
||||||
Float Shininess (MaterialShininess) : 1 |
Float Shininess (MaterialShininess) : 1 |
||||||
|
|
||||||
// Diffuse map |
// Diffuse map |
||||||
Texture2D DiffuseMap |
Texture2D DiffuseMap |
||||||
|
|
||||||
// Normal map |
// Normal map |
||||||
Texture2D NormalMap |
Texture2D NormalMap -LINEAR |
||||||
|
|
||||||
// Specular/gloss map |
// Specular/gloss map |
||||||
Texture2D SpecularMap |
Texture2D SpecularMap |
||||||
|
|
||||||
// Parallax/height map |
// Parallax/height map |
||||||
Texture2D ParallaxMap |
Texture2D ParallaxMap -LINEAR |
||||||
|
|
||||||
//Set to true is parallax map is stored in the alpha channel of the normal map |
//Set to true is parallax map is stored in the alpha channel of the normal map |
||||||
Boolean PackedNormalParallax |
Boolean PackedNormalParallax |
||||||
|
|
||||||
//Sets the relief height for parallax mapping |
//Sets the relief height for parallax mapping |
||||||
Float ParallaxHeight : 0.05 |
Float ParallaxHeight : 0.05 |
||||||
|
|
||||||
//Set to true to activate Steep Parallax mapping |
//Set to true to activate Steep Parallax mapping |
||||||
Boolean SteepParallax |
Boolean SteepParallax |
||||||
|
|
||||||
// Texture that specifies alpha values |
// Texture that specifies alpha values |
||||||
Texture2D AlphaMap |
Texture2D AlphaMap -LINEAR |
||||||
|
|
||||||
// Color ramp, will map diffuse and specular values through it. |
// Color ramp, will map diffuse and specular values through it. |
||||||
Texture2D ColorRamp |
Texture2D ColorRamp |
||||||
|
|
||||||
// Texture of the glowing parts of the material |
// Texture of the glowing parts of the material |
||||||
Texture2D GlowMap |
Texture2D GlowMap |
||||||
|
|
||||||
// Set to Use Lightmap |
// Set to Use Lightmap |
||||||
Texture2D LightMap |
Texture2D LightMap |
||||||
|
|
||||||
// Set to use TexCoord2 for the lightmap sampling |
// Set to use TexCoord2 for the lightmap sampling |
||||||
Boolean SeparateTexCoord |
Boolean SeparateTexCoord |
||||||
|
|
||||||
// The glow color of the object |
// The glow color of the object |
||||||
Color GlowColor |
Color GlowColor |
||||||
|
|
||||||
// Parameters for fresnel |
// Parameters for fresnel |
||||||
// X = bias |
// X = bias |
||||||
// Y = scale |
// Y = scale |
||||||
// Z = power |
// Z = power |
||||||
Vector3 FresnelParams |
Vector3 FresnelParams |
||||||
|
|
||||||
// Env Map for reflection |
// Env Map for reflection |
||||||
TextureCubeMap EnvMap |
TextureCubeMap EnvMap |
||||||
|
|
||||||
// the env map is a spheremap and not a cube map |
// the env map is a spheremap and not a cube map |
||||||
Boolean EnvMapAsSphereMap |
Boolean EnvMapAsSphereMap |
||||||
|
|
||||||
//shadows |
//shadows |
||||||
Int FilterMode |
Int FilterMode |
||||||
Boolean HardwareShadows |
Boolean HardwareShadows |
||||||
|
|
||||||
Texture2D ShadowMap0 |
Texture2D ShadowMap0 |
||||||
Texture2D ShadowMap1 |
Texture2D ShadowMap1 |
||||||
Texture2D ShadowMap2 |
Texture2D ShadowMap2 |
||||||
Texture2D ShadowMap3 |
Texture2D ShadowMap3 |
||||||
//pointLights |
//pointLights |
||||||
Texture2D ShadowMap4 |
Texture2D ShadowMap4 |
||||||
Texture2D ShadowMap5 |
Texture2D ShadowMap5 |
||||||
|
|
||||||
Float ShadowIntensity |
Float ShadowIntensity |
||||||
Vector4 Splits |
Vector4 Splits |
||||||
Vector2 FadeInfo |
Vector2 FadeInfo |
||||||
|
|
||||||
Matrix4 LightViewProjectionMatrix0 |
Matrix4 LightViewProjectionMatrix0 |
||||||
Matrix4 LightViewProjectionMatrix1 |
Matrix4 LightViewProjectionMatrix1 |
||||||
Matrix4 LightViewProjectionMatrix2 |
Matrix4 LightViewProjectionMatrix2 |
||||||
Matrix4 LightViewProjectionMatrix3 |
Matrix4 LightViewProjectionMatrix3 |
||||||
//pointLight |
//pointLight |
||||||
Matrix4 LightViewProjectionMatrix4 |
Matrix4 LightViewProjectionMatrix4 |
||||||
Matrix4 LightViewProjectionMatrix5 |
Matrix4 LightViewProjectionMatrix5 |
||||||
Vector3 LightPos |
Vector3 LightPos |
||||||
Vector3 LightDir |
Vector3 LightDir |
||||||
|
|
||||||
Float PCFEdge |
Float PCFEdge |
||||||
Float ShadowMapSize |
Float ShadowMapSize |
||||||
|
|
||||||
// For hardware skinning |
// For hardware skinning |
||||||
Int NumberOfBones |
Int NumberOfBones |
||||||
Matrix4Array BoneMatrices |
Matrix4Array BoneMatrices |
||||||
} |
} |
||||||
|
|
||||||
Technique { |
Technique { |
||||||
|
|
||||||
LightMode MultiPass |
LightMode MultiPass |
||||||
|
|
||||||
VertexShader GLSL100: Common/MatDefs/Light/Lighting.vert |
VertexShader GLSL100: Common/MatDefs/Light/Lighting.vert |
||||||
FragmentShader GLSL100: Common/MatDefs/Light/Lighting.frag |
FragmentShader GLSL100: Common/MatDefs/Light/Lighting.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
NormalMatrix |
NormalMatrix |
||||||
WorldViewMatrix |
WorldViewMatrix |
||||||
ViewMatrix |
ViewMatrix |
||||||
CameraPosition |
CameraPosition |
||||||
WorldMatrix |
WorldMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
LATC : LATC |
LATC : LATC |
||||||
VERTEX_COLOR : UseVertexColor |
VERTEX_COLOR : UseVertexColor |
||||||
VERTEX_LIGHTING : VertexLighting |
VERTEX_LIGHTING : VertexLighting |
||||||
ATTENUATION : Attenuation |
ATTENUATION : Attenuation |
||||||
MATERIAL_COLORS : UseMaterialColors |
MATERIAL_COLORS : UseMaterialColors |
||||||
V_TANGENT : VTangent |
V_TANGENT : VTangent |
||||||
MINNAERT : Minnaert |
MINNAERT : Minnaert |
||||||
WARDISO : WardIso |
WARDISO : WardIso |
||||||
LOW_QUALITY : LowQuality |
LOW_QUALITY : LowQuality |
||||||
HQ_ATTENUATION : HighQuality |
HQ_ATTENUATION : HighQuality |
||||||
|
|
||||||
DIFFUSEMAP : DiffuseMap |
DIFFUSEMAP : DiffuseMap |
||||||
NORMALMAP : NormalMap |
NORMALMAP : NormalMap |
||||||
SPECULARMAP : SpecularMap |
SPECULARMAP : SpecularMap |
||||||
PARALLAXMAP : ParallaxMap |
PARALLAXMAP : ParallaxMap |
||||||
NORMALMAP_PARALLAX : PackedNormalParallax |
NORMALMAP_PARALLAX : PackedNormalParallax |
||||||
STEEP_PARALLAX : SteepParallax |
STEEP_PARALLAX : SteepParallax |
||||||
ALPHAMAP : AlphaMap |
ALPHAMAP : AlphaMap |
||||||
COLORRAMP : ColorRamp |
COLORRAMP : ColorRamp |
||||||
LIGHTMAP : LightMap |
LIGHTMAP : LightMap |
||||||
SEPARATE_TEXCOORD : SeparateTexCoord |
SEPARATE_TEXCOORD : SeparateTexCoord |
||||||
|
|
||||||
USE_REFLECTION : EnvMap |
USE_REFLECTION : EnvMap |
||||||
SPHERE_MAP : SphereMap |
SPHERE_MAP : SphereMap |
||||||
|
|
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
Technique PreShadow { |
Technique PreShadow { |
||||||
|
|
||||||
VertexShader GLSL100 : Common/MatDefs/Shadow/PreShadow.vert |
VertexShader GLSL100 : Common/MatDefs/Shadow/PreShadow.vert |
||||||
FragmentShader GLSL100 : Common/MatDefs/Shadow/PreShadow.frag |
FragmentShader GLSL100 : Common/MatDefs/Shadow/PreShadow.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
WorldViewMatrix |
WorldViewMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
COLOR_MAP : ColorMap |
COLOR_MAP : ColorMap |
||||||
DISCARD_ALPHA : AlphaDiscardThreshold |
DISCARD_ALPHA : AlphaDiscardThreshold |
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
|
|
||||||
ForcedRenderState { |
ForcedRenderState { |
||||||
FaceCull Off |
FaceCull Off |
||||||
DepthTest On |
DepthTest On |
||||||
DepthWrite On |
DepthWrite On |
||||||
PolyOffset 5 3 |
PolyOffset 5 3 |
||||||
ColorWrite Off |
ColorWrite Off |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
Technique PostShadow15{ |
Technique PostShadow15{ |
||||||
VertexShader GLSL150: Common/MatDefs/Shadow/PostShadow15.vert |
VertexShader GLSL150: Common/MatDefs/Shadow/PostShadow15.vert |
||||||
FragmentShader GLSL150: Common/MatDefs/Shadow/PostShadow15.frag |
FragmentShader GLSL150: Common/MatDefs/Shadow/PostShadow15.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
WorldMatrix |
WorldMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
HARDWARE_SHADOWS : HardwareShadows |
HARDWARE_SHADOWS : HardwareShadows |
||||||
FILTER_MODE : FilterMode |
FILTER_MODE : FilterMode |
||||||
PCFEDGE : PCFEdge |
PCFEDGE : PCFEdge |
||||||
DISCARD_ALPHA : AlphaDiscardThreshold |
DISCARD_ALPHA : AlphaDiscardThreshold |
||||||
COLOR_MAP : ColorMap |
COLOR_MAP : ColorMap |
||||||
SHADOWMAP_SIZE : ShadowMapSize |
SHADOWMAP_SIZE : ShadowMapSize |
||||||
FADE : FadeInfo |
FADE : FadeInfo |
||||||
PSSM : Splits |
PSSM : Splits |
||||||
POINTLIGHT : LightViewProjectionMatrix5 |
POINTLIGHT : LightViewProjectionMatrix5 |
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
|
|
||||||
ForcedRenderState { |
ForcedRenderState { |
||||||
Blend Modulate |
Blend Modulate |
||||||
DepthWrite Off |
DepthWrite Off |
||||||
PolyOffset -0.1 0 |
PolyOffset -0.1 0 |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
Technique PostShadow{ |
Technique PostShadow{ |
||||||
VertexShader GLSL100: Common/MatDefs/Shadow/PostShadow.vert |
VertexShader GLSL100: Common/MatDefs/Shadow/PostShadow.vert |
||||||
FragmentShader GLSL100: Common/MatDefs/Shadow/PostShadow.frag |
FragmentShader GLSL100: Common/MatDefs/Shadow/PostShadow.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
WorldMatrix |
WorldMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
HARDWARE_SHADOWS : HardwareShadows |
HARDWARE_SHADOWS : HardwareShadows |
||||||
FILTER_MODE : FilterMode |
FILTER_MODE : FilterMode |
||||||
PCFEDGE : PCFEdge |
PCFEDGE : PCFEdge |
||||||
DISCARD_ALPHA : AlphaDiscardThreshold |
DISCARD_ALPHA : AlphaDiscardThreshold |
||||||
COLOR_MAP : ColorMap |
COLOR_MAP : ColorMap |
||||||
SHADOWMAP_SIZE : ShadowMapSize |
SHADOWMAP_SIZE : ShadowMapSize |
||||||
FADE : FadeInfo |
FADE : FadeInfo |
||||||
PSSM : Splits |
PSSM : Splits |
||||||
POINTLIGHT : LightViewProjectionMatrix5 |
POINTLIGHT : LightViewProjectionMatrix5 |
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
|
|
||||||
ForcedRenderState { |
ForcedRenderState { |
||||||
Blend Modulate |
Blend Modulate |
||||||
DepthWrite Off |
DepthWrite Off |
||||||
PolyOffset -0.1 0 |
PolyOffset -0.1 0 |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
Technique PreNormalPass { |
Technique PreNormalPass { |
||||||
|
|
||||||
VertexShader GLSL100 : Common/MatDefs/SSAO/normal.vert |
VertexShader GLSL100 : Common/MatDefs/SSAO/normal.vert |
||||||
FragmentShader GLSL100 : Common/MatDefs/SSAO/normal.frag |
FragmentShader GLSL100 : Common/MatDefs/SSAO/normal.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
WorldViewMatrix |
WorldViewMatrix |
||||||
NormalMatrix |
NormalMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
DIFFUSEMAP_ALPHA : DiffuseMap |
DIFFUSEMAP_ALPHA : DiffuseMap |
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
Technique PreNormalPassDerivative { |
Technique PreNormalPassDerivative { |
||||||
|
|
||||||
VertexShader GLSL100 : Common/MatDefs/MSSAO/normal.vert |
VertexShader GLSL100 : Common/MatDefs/MSSAO/normal.vert |
||||||
FragmentShader GLSL100 : Common/MatDefs/MSSAO/normal.frag |
FragmentShader GLSL100 : Common/MatDefs/MSSAO/normal.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
WorldViewMatrix |
WorldViewMatrix |
||||||
NormalMatrix |
NormalMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
DIFFUSEMAP_ALPHA : DiffuseMap |
DIFFUSEMAP_ALPHA : DiffuseMap |
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
Technique GBuf { |
Technique GBuf { |
||||||
|
|
||||||
VertexShader GLSL100: Common/MatDefs/Light/GBuf.vert |
VertexShader GLSL100: Common/MatDefs/Light/GBuf.vert |
||||||
FragmentShader GLSL100: Common/MatDefs/Light/GBuf.frag |
FragmentShader GLSL100: Common/MatDefs/Light/GBuf.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
NormalMatrix |
NormalMatrix |
||||||
WorldViewMatrix |
WorldViewMatrix |
||||||
WorldMatrix |
WorldMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
VERTEX_COLOR : UseVertexColor |
VERTEX_COLOR : UseVertexColor |
||||||
MATERIAL_COLORS : UseMaterialColors |
MATERIAL_COLORS : UseMaterialColors |
||||||
V_TANGENT : VTangent |
V_TANGENT : VTangent |
||||||
MINNAERT : Minnaert |
MINNAERT : Minnaert |
||||||
WARDISO : WardIso |
WARDISO : WardIso |
||||||
|
|
||||||
DIFFUSEMAP : DiffuseMap |
DIFFUSEMAP : DiffuseMap |
||||||
NORMALMAP : NormalMap |
NORMALMAP : NormalMap |
||||||
SPECULARMAP : SpecularMap |
SPECULARMAP : SpecularMap |
||||||
PARALLAXMAP : ParallaxMap |
PARALLAXMAP : ParallaxMap |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
Technique { |
Technique { |
||||||
LightMode FixedPipeline |
LightMode FixedPipeline |
||||||
} |
} |
||||||
|
|
||||||
Technique Glow { |
Technique Glow { |
||||||
|
|
||||||
VertexShader GLSL100: Common/MatDefs/Misc/Unshaded.vert |
VertexShader GLSL100: Common/MatDefs/Misc/Unshaded.vert |
||||||
FragmentShader GLSL100: Common/MatDefs/Light/Glow.frag |
FragmentShader GLSL100: Common/MatDefs/Light/Glow.frag |
||||||
|
|
||||||
WorldParameters { |
WorldParameters { |
||||||
WorldViewProjectionMatrix |
WorldViewProjectionMatrix |
||||||
} |
} |
||||||
|
|
||||||
Defines { |
Defines { |
||||||
NEED_TEXCOORD1 |
NEED_TEXCOORD1 |
||||||
HAS_GLOWMAP : GlowMap |
HAS_GLOWMAP : GlowMap |
||||||
HAS_GLOWCOLOR : GlowColor |
HAS_GLOWCOLOR : GlowColor |
||||||
|
|
||||||
NUM_BONES : NumberOfBones |
NUM_BONES : NumberOfBones |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
Loading…
Reference in new issue