Skip to content

Commit 789daa6

Browse files
committed
Fixed warning that were coming out of the particle.j3md. Also fixed the preshadow technique
1 parent 659ed8f commit 789daa6

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

jme3-core/src/main/resources/Common/MatDefs/Misc/Particle.j3md

+13-18
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,28 @@ MaterialDef Point Sprite {
7272

7373
Technique PreShadow {
7474

75-
VertexShader GLSL100 : Common/MatDefs/Misc/Particle.vert
76-
FragmentShader GLSL100 : Common/MatDefs/Misc/Particle.frag
75+
VertexShader GLSL100 : Common/MatDefs/Shadow/PreShadow.vert
76+
FragmentShader GLSL100 : Common/MatDefs/Shadow/PreShadow.frag
7777

7878
WorldParameters {
79-
WorldViewProjectionMatrix
80-
WorldViewMatrix
81-
WorldMatrix
82-
CameraPosition
79+
WorldViewProjectionMatrix
80+
WorldViewMatrix
81+
ViewProjectionMatrix
82+
ViewMatrix
8383
}
8484

8585
Defines {
86-
USE_TEXTURE : Texture
87-
PRE_SHADOW
86+
COLOR_MAP : Texture
8887
}
8988

9089
ForcedRenderState {
91-
DepthWrite On
92-
ColorWrite Off
90+
FaceCull Off
91+
DepthTest On
92+
DepthWrite On
93+
PolyOffset 5 3
94+
ColorWrite Off
9395
}
96+
9497
}
9598

9699
Technique SoftParticles{
@@ -140,14 +143,6 @@ MaterialDef Point Sprite {
140143
}
141144
}
142145

143-
Technique {
144-
RenderState {
145-
Blend AlphaAdditive
146-
// DepthWrite Off
147-
// AlphaTestFalloff 0.01
148-
}
149-
}
150-
151146
Technique Glow {
152147

153148
VertexShader GLSL100: Common/MatDefs/Misc/Unshaded.vert

0 commit comments

Comments
 (0)