Glow OpenGL shader ... NOOB!

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
papaonn
Posts: 30
Joined: Thu Jan 30, 2014 5:38 pm

Re: Glow OpenGL shader ... NOOB!

Post by papaonn »

hmm .. it is 2 shaders seperately, so how do i actually achieve a multi-shading technique in irrlicht?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Glow OpenGL shader ... NOOB!

Post by mongoose7 »

You can serially select any number of shaders. As in the snippet, the shader is selected before the render is called.

Is this in custom scene node? The calls to smgr->drawAll are sure to cause a problem somewhere. Or, to put it another way, the code looks like neither custom scene node code nor render target code.
papaonn
Posts: 30
Joined: Thu Jan 30, 2014 5:38 pm

Re: Glow OpenGL shader ... NOOB!

Post by papaonn »

i am not sure, could you provide me a sample of code that display 2 shaders? any simple one will do..
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Glow OpenGL shader ... NOOB!

Post by mongoose7 »

You can't run two shaders on the same node in the same pass. Is your problem that you are you trying to use two materials? If you think you can combine two passes into one, well, you can't.
Post Reply