Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Getting Light data (colour and intensity) on a 3D position

Discussion in 'General Graphics' started by ScrambledFox, Mar 8, 2019.

  1. ScrambledFox

    ScrambledFox

    Joined:
    Dec 14, 2018
    Posts:
    1
    Hello community,

    I'm working on a light installation and was wondering if it is possible to use the unity light system to get colour data in the 3d scene.

    I've been looking at raycasting to the light sources and 'faking' it, but since the installation is quite huge, I would need to do 691200 calculations (192 * 12 led strips * 10 leds) every second to get the data for every separate LED. So that's not possible. And filtering for which LED to get data for would probably also take too long.

    Can this be done via shaders? Can this be done at all? Or should I disregard the lighting engine and create a custom 'light source'?

    Thanks!
    Joris