Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

two-sided unlit polys?



Basic technique question... is there a way I can draw polygons in a single pass without lighting and have the front and back colored differently? Actually I just want the back drawn black.

glMaterial(GL_BACK,...) won't work because I don't want to enable lighting for speed reasons

Anyone know of a way to do this? Or a way to use glMaterial without dropping off the lighting-disabled fast path?

Right now I'm drawing everything twice, using glCullFace to switch the second pass to the back faces.

Thanks for any ideas!
Dan

---
Dan Herman
DigitalFish Films
http://www.digitalfish.com
_______________________________________________
mac-opengl mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-opengl
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.