Search found 2 matches
- Mon Jul 03, 2017 8:50 am
- Forum: Advanced Help
- Topic: Clipplanes with shaders (OpenGL)
- Replies: 2
- Views: 641
Re: Clipplanes with shaders (OpenGL)
Ah, thx. Googled that and it works fine for me with gl_ClipDistance[0] = ... . Just one small question left: Is there any gl_* thingy i can use for the clipPlane pos and normal (that might be set by using irrlichts setClipPlane()) or do i have to use an uniform vec for that?
- Sun Jul 02, 2017 10:17 pm
- Forum: Advanced Help
- Topic: Clipplanes with shaders (OpenGL)
- Replies: 2
- Views: 641
Clipplanes with shaders (OpenGL)
Hi, I'm running into a problem when using a clipplane and the custom ISceneNode renders my vertices (video::S3DVertex) with a shader material. I'm setting my clipplane via core::plane3df clipPlane = core::plane3df(0.0, -0.530, 0.0, 0.0, 1.0, 0.0); driver->setClipPlane(0, clipPlane, true); which...