Re: [osg-users] Clip planes and instanced rendering

2019-04-09 Thread Alberto Luaces
Wojciech Lewandowski writes: > Hi Alberto, > > You may need to add support for clip planes via gl_ClipVertex or > gl_ClipDistance to your shaders (which one depends on GLSL version used -see > https://stackoverflow.com/questions/19125628/how-does-gl-clipvertex-work-relative-to-gl-clipdistance).

Re: [osg-users] Clip planes and instanced rendering

2019-04-09 Thread Wojciech Lewandowski
Hi Alberto, You may need to add support for clip planes via gl_ClipVertex or gl_ClipDistance to your shaders (which one depends on GLSL version used -see https://stackoverflow.com/questions/19125628/how-does-gl-clipvertex-work-relative-to-gl-clipdistance). My experience with these vars was not

[osg-users] Clip planes and instanced rendering

2019-04-09 Thread Alberto Luaces
Hi, I want to set a clipping plane for my scene, but it is not working for instanced geometries. I have not found any resource telling that clipping planes are ignored by GLSL. Simple test: if I make the following modifications to osgforest, diff --git a/examples/osgforest/osgforest.cpp