![]() Los Angeles mental ray® User Group |
![]() | ||||||||||||
| |||||||||||||
Resources Sections General Install/Setup Options Settings Performance Optimizations mi Scene File FG/AO/GI Subsurface Scattering Shiny Stuff mrfm (Maya) Shader Writing Hair and Geometry Shaders | Hair and Geometry ShadersWhen working with hair primitives from within a geometry shader using placeholder callback functions, you do need to add something extra. There is an admittedly hard to find special note regarding hair primitives and the placeholder callback. Check page 264 of the 2nd edition of the Programming mental ray Handbook. If you're refering to on-line manual, it should be at the very end of the Geometry Shaders section in the Using and Writing Shaders chapter 3. From the more detailed description with an example on this site, we make a feather using a geometry shader and hair primitives. In the geometry shader function that references the callback, we see: |