* Updated Particle.j3md so it works on pre GLSL 1.2 graphics cards

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7229 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
sha..rd 2011-04-11 19:11:02 +00:00
parent 666a800ecd
commit 3b9cf4cd35
2 changed files with 22 additions and 4 deletions

View File

@ -1,7 +1,3 @@
// TODO: Fix this so normal particles don't need it.
// Only needed for certain GPUs.
//#version 120
#ifdef USE_TEXTURE #ifdef USE_TEXTURE
uniform sampler2D m_Texture; uniform sampler2D m_Texture;
varying vec4 texCoord; varying vec4 texCoord;

View File

@ -36,6 +36,28 @@ MaterialDef Point Sprite {
} }
} }
Technique {
VertexShader GLSL100 : Common/MatDefs/Misc/Particle.vert
FragmentShader GLSL100 : Common/MatDefs/Misc/Particle.frag
WorldParameters {
WorldViewProjectionMatrix
WorldViewMatrix
WorldMatrix
CameraPosition
}
RenderState {
Blend AlphaAdditive
DepthWrite Off
}
Defines {
USE_TEXTURE : Texture
}
}
Technique FixedFunc { Technique FixedFunc {
RenderState { RenderState {
Blend AlphaAdditive Blend AlphaAdditive