Skip to content

Commit

Permalink
Fixed warning that were coming out of the particle.j3md. Also fixed t…
Browse files Browse the repository at this point in the history
…he preshadow technique
  • Loading branch information
Nehon committed Jan 24, 2017
1 parent 659ed8f commit 789daa6
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions jme3-core/src/main/resources/Common/MatDefs/Misc/Particle.j3md
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,28 @@ MaterialDef Point Sprite {

Technique PreShadow {

VertexShader GLSL100 : Common/MatDefs/Misc/Particle.vert
FragmentShader GLSL100 : Common/MatDefs/Misc/Particle.frag
VertexShader GLSL100 : Common/MatDefs/Shadow/PreShadow.vert
FragmentShader GLSL100 : Common/MatDefs/Shadow/PreShadow.frag

WorldParameters {
WorldViewProjectionMatrix
WorldViewMatrix
WorldMatrix
CameraPosition
WorldViewProjectionMatrix
WorldViewMatrix
ViewProjectionMatrix
ViewMatrix
}

Defines {
USE_TEXTURE : Texture
PRE_SHADOW
COLOR_MAP : Texture
}

ForcedRenderState {
DepthWrite On
ColorWrite Off
FaceCull Off
DepthTest On
DepthWrite On
PolyOffset 5 3
ColorWrite Off
}

}

Technique SoftParticles{
Expand Down Expand Up @@ -140,14 +143,6 @@ MaterialDef Point Sprite {
}
}

Technique {
RenderState {
Blend AlphaAdditive
// DepthWrite Off
// AlphaTestFalloff 0.01
}
}

Technique Glow {

VertexShader GLSL100: Common/MatDefs/Misc/Unshaded.vert
Expand Down

0 comments on commit 789daa6

Please sign in to comment.