I am implement a virtual Lidar: it sends laser beam and receive the beam back, need to collect distance and intensity.
I’ve complete distance collection: lince trace by channel - > hit result → distance.
But I get stucked collecting the intensity of refelection. My strategy is to use rougness/specular/metalic/opague plus surface norm to beam, these 5 properties to calculate a intensity result and return.
Currently my attempt is to use lince trace by channel - > hit result → hit component → get material from collision face index, but I could find a path to trace the properties I need from here.
Some online tutorial tells to go to material, convert a parameter and use get scalar/vector parameter in my event pager, this approach is not practical to my need, because my virtual Lidar expect to collect result from any actor it hits, I couldn’t afford to do that on every material.