Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Shadow map resolution API: so close unity, so close

Discussion in '5.4 Beta' started by pvloon, Jun 12, 2016.

  1. pvloon

    pvloon

    Joined:
    Oct 5, 2011
    Posts:
    591
    Huzzah!


    Boooh :/

    Small background here: I need to create some copies of the shadow map and would like to make those copies the same size (* a constant) as the shadow maps of the light. Currently there's no way determine how large these maps are. The new API gets close but since it can return "FromQualitySettings" there's still no way to see how large it is. If I could read from the quality settings I could at least determine the expected size for the shadow map.

    Even better would be to add a Vector2 Light.actualShadowmapSize as unity can decide to size down shadow maps based on memory and such.


    Bug nr: 805056