I am developing custom particle shader (C++) for MentalRay.
Does anybody know how to get ParticleIndex of particle hited by current ray in the main shader function?
Functions provided in SDK DOCUMENTATION for accessing particle's informations from C++ assume that I have particleIndex.
During render, MentalRay cast ray and if the ray hit particle (on which my shader is assigned) MR will call my main shader function whit proper state structure. How to find index of hited particle?
Please help