Changeset 9412

Show
Ignore:
Timestamp:
12/19/08 17:12:40 (5 years ago)
Author:
robert
Message:

Added setting of the gl_ClipVertex to enable clip planes to affect preciptation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgParticle/PrecipitationEffect.cpp

    r8868 r9412  
    554554            "    \n" 
    555555            "    gl_Position = gl_ProjectionMatrix * v1;\n" 
     556            "    gl_ClipVertex = v1;\n" 
    556557            "}\n"; 
    557558 
     
    625626            "    \n" 
    626627            "    gl_Position = gl_ProjectionMatrix * v1;\n" 
     628            "    gl_ClipVertex = v1;\n" 
    627629            "}\n"; 
    628630 
     
    682684            "    \n" 
    683685            "    colour.a = 0.05+(pointSize*pointSize)/(gl_PointSize*gl_PointSize);\n" 
     686            "    gl_ClipVertex = v_current;\n" 
    684687            "}\n"; 
    685688