getrayweight VEX function

Returns an approximation to the contribution of the ray to the final pixel color.

Contexts: displace, fog, light, photon, shadow, surface

  1. float getrayweight()

Returns an approximation to the contribution of the ray to the final pixel color. Often, this is a better metric for judging contribution to the final pixel color than getraylevel. However, this relies on prior shaders giving good estimates on the contribution to their shading (see reflectlight).