Ray-surface-scene depth detection implemented.