Search Unity

dir light projection * view

Discussion in 'General Graphics' started by Avol, Jun 24, 2016.

  1. Avol

    Avol

    Joined:
    May 27, 2016
    Posts:
    95
    How does the lights view get transformed when the main camera moves? How can I calculate that? Is dir lights projection * view maybe accessible already, so I don't need to waste more CPU for the calculation? Need to transform world space point to dir lights coordinates in a compute shader. From what I understand I can't use #include "UnityCG.cginc" in a compute shader?
     
    Last edited: Jun 24, 2016