Shadows settings for cameras in cam file

Discussion in 'Car Modding' started by Marek Lesniak, Feb 22, 2012.

  1. Marek Lesniak

    Marek Lesniak Car Team Staff Member

    Joined:
    Oct 6, 2010
    Messages:
    1,585
    Likes Received:
    101
    For each set of camera parameters, we have this (values differ slightly between various cameras):
    MinShadowRange=(0.5)
    MaxShadowRange=(250.0)
    ShadowSplitRatio=(0.920)
    ShadowParams=(0.0001, 0.0, 2.0)
    ShadowParams=(0.0001, 0.0, 8.7)
    ShadowParams=(0.0001, 0.0, 36.0)
    ShadowParams=(0.0001, 0.0, 150.0)

    MinShadowRange - must be greater than 0, otherwise shadows won't be shown. Didn't notice any other influence (0.1, 10.0 or whatever... as long as it's lower than MaxShadowRange - nothing change).
    MaxShadowRange - maximum range from camera target within which shadows will be generated.

    Im more curious about those two:
    ShadowSplitRatio
    ShadowParams=(a, b, c)

    What is their function and what a,b and c mean for ShadowParams?

    I tried for myself to see how they behave with different values and it looks that ShadowSplitRatio have some effect on shadow quality/blur but apart from that, I couldn't come up with a reasonable explanation.
     
    Last edited by a moderator: Feb 22, 2012

Share This Page