From 789daa62958573738fa6561e57c5956068d1710c Mon Sep 17 00:00:00 2001 From: Nehon Date: Tue, 24 Jan 2017 20:17:19 +0100 Subject: [PATCH] Fixed warning that were coming out of the particle.j3md. Also fixed the preshadow technique --- .../Common/MatDefs/Misc/Particle.j3md | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Misc/Particle.j3md b/jme3-core/src/main/resources/Common/MatDefs/Misc/Particle.j3md index a327f43b96..ee5479d938 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Misc/Particle.j3md +++ b/jme3-core/src/main/resources/Common/MatDefs/Misc/Particle.j3md @@ -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{ @@ -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