Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // envoi de l'id sur le stencil
- glPushAttrib(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); {
- glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); //desactive modif couleur
- glEnable(GL_STENCIL_TEST);
- glDepthMask(GL_FALSE);
- glStencilFunc(GL_ALWAYS, id_, 0xFF);
- glStencilOp(GL_KEEP, //stencil fail
- GL_KEEP, //stencil pass, depth fail
- GL_REPLACE); //stencil pass, depth pass
- glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
- glScalef(1.02, 1.02, 1.02);
- liste_->dessiner();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement