• Advertisement
Sign in to follow this  

Different shaders on different objects (GLSL)

This topic is 2703 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, is it possible apply different shaders to different object in a scene at the same time
By example, I have 2 shaders (normal mapping and car-paint effect) and I want to put it the first only in the walls on my scene and second in my main object (a car). How I can do that? I'm working in GLSL.
Thanks in advance

esmitt

Share this post


Link to post
Share on other sites
Advertisement
Hm :)

Bind(shader1);
RenderWall();
Bind(shader2);
RenderCar();

?

Share this post


Link to post
Share on other sites
Oh, thank you. I tried it that way, but I have problems with my transformations.
I have to try again!
thx again
esmitt

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement