Light falloff calculation functions?
Posted: Fri Jun 25, 2021 9:17 am
good morning guys, i was wondering what's the light falloff function been used in luxcore?
i want to add something like a point light helper to help visualize a rough range where the light will reach in the 3d editing,so I need to fetch the relation of light intensity and distance to help draw a virtual sphere. did some search on google, notice that luxcore had an irradiance contour plugin but I guess only works after rendering(which does not suit my need since I need to visualize the range while working on the scene.)
digging into the sourcecode, I find it confusing for me to understand the math in it. could anyone help with providing a explain or simply a function so that I could get the light fall off range?
thanks in advance
i want to add something like a point light helper to help visualize a rough range where the light will reach in the 3d editing,so I need to fetch the relation of light intensity and distance to help draw a virtual sphere. did some search on google, notice that luxcore had an irradiance contour plugin but I guess only works after rendering(which does not suit my need since I need to visualize the range while working on the scene.)
digging into the sourcecode, I find it confusing for me to understand the math in it. could anyone help with providing a explain or simply a function so that I could get the light fall off range?
thanks in advance