From ecbe4b105868b3aa05e0734e88cb650379708dbf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 6 Mar 2012 10:33:20 +0000 Subject: [PATCH] From Farshild Laskari, "The vertex shader for the point stateset of PrecipitationEffect was not properly computing the clip vertex. It needed to apply a modelview transformation to the clip vertex. Attached is the fix." --- src/osgParticle/PrecipitationEffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgParticle/PrecipitationEffect.cpp b/src/osgParticle/PrecipitationEffect.cpp index 56d24f9b6..35cf404fc 100644 --- a/src/osgParticle/PrecipitationEffect.cpp +++ b/src/osgParticle/PrecipitationEffect.cpp @@ -635,7 +635,7 @@ void PrecipitationEffect::setUpGeometries(unsigned int numParticles) " gl_PointSize = ceil(pointSize);\n" " \n" " colour.a = 0.05+(pointSize*pointSize)/(gl_PointSize*gl_PointSize);\n" - " gl_ClipVertex = v_current;\n" + " gl_ClipVertex = gl_ModelViewMatrix * v_current;\n" "}\n"; char fragmentShaderSource[] =