Commits on Jul 13, 2020

  1. Update Runtime/Passes/AdditionalLightsShadowCasterPass to support poi…

    …nt lights
    
    Like with spot lights, resolution for each shadow map is computed every frame in order to fit all of them in the common shadow atlas.
    
    Some of the current limitations:
    - ShadowBias possibly needs more precise values
    - FovBias possibly needs more precise values
    - Unused shadow faces allocate a slot in the common shadow atlas
    - Draw calls are generated even for shadow frustums that do not contain shadow casters
    - Not tested: Standalone players
    - Not tested: Dynamic scenes
    - Not tested: Performances
    - Not tested: Code path using Structured Buffers to pass shadow information to GPU (during shadow pass and lighting loop)
    - Not tested: Deferred Renderer
    Wilfrid-Unity committed Jul 13, 2020
    Copy the full SHA
    fbb98dc View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2020

  1. Copy the full SHA
    2debb93 View commit details
    Browse the repository at this point in the history
  2. Add comments

    Wilfrid-Unity committed Jul 17, 2020
    Copy the full SHA
    25b1075 View commit details
    Browse the repository at this point in the history
  3. Fix point light shadow normal bias issues

    Normal bias for point lights now behaves similarly as for spot lights
    Wilfrid-Unity committed Jul 17, 2020
    Copy the full SHA
    8cd02df View commit details
    Browse the repository at this point in the history
  4. Include point light shadow fov bias when computing their normal bias …

    …- This makes point light shadows look closer to spot light shadows
    Wilfrid-Unity committed Jul 17, 2020
    Copy the full SHA
    85b55f2 View commit details
    Browse the repository at this point in the history
  5. For punctual lights, use per-vertex light direction when applying sha…

    …dow normal bias - This fixes the issue of shadows that changed when point light was rotated.
    
    Built-In RP uses a similar approach to apply punctual light shadow normal bias. See UnityWorldSpaceLightDir called by UnityClipSpaceShadowCasterPos in UnityCG.cginc:
    https://github.cds.internal.unity3d.com/unity/unity/commit/93015b67a6e1afdfe00867fdd3a336eaa835f54d#diff-c2818feb2f37e566cf36ca5cab57a99eR533
    https://github.cds.internal.unity3d.com/unity/unity/blob/93015b67a6e1afdfe00867fdd3a336eaa835f54d/External/shaderlab/CGIncludes/UnityCG.cginc#L76
    Wilfrid-Unity committed Jul 17, 2020
    Copy the full SHA
    ed8fcbe View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2020

  1. Update comments

    Wilfrid-Unity committed Jul 21, 2020
    Copy the full SHA
    0fbda35 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8f00d96 View commit details
    Browse the repository at this point in the history
  3. Fix in all supported resolutions point light shadow frustum fov biase…

    …s, to avoid missing shadows at cube face boundaries
    Wilfrid-Unity committed Jul 21, 2020
    Copy the full SHA
    5c31178 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2020

  1. Copy the full SHA
    1af0a99 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2020

  1. Point Light Shadows work also when using StructuredBuffers to pass sh…

    …adow data to the lighting shaders + Fixed indexing issue when using non-shadow-casting additional light
    
    Some known issues still happening:
    - If only a single light in the scene is set to use soft shadows, all punctual light shadows will be soft (even if their setting is "Hard")
    - Toggling setting "Soft Shadows" in UniversalRP asset also impacts shape of shadows from punctual light set to cast "Hard Shadows"
    Wilfrid-Unity committed Jul 31, 2020
    Copy the full SHA
    ad82946 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2020

  1. Copy the full SHA
    43cf84f View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1f75e8f View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2020

  1. Update UniversalGraphicsTest scene 105_TransparentReceiveShadows's sp…

    …ot light shadow's Normal Bias to match reference image - Since revision ed8fcbe Normal Bias is applied using actual spot light direction
    Wilfrid-Unity committed Aug 12, 2020
    Copy the full SHA
    3988474 View commit details
    Browse the repository at this point in the history
  2. Apply change ed8fcbe to Terrain shaders too (i.e for punctual lights,…

    … use per-vertex light direction when applying shadow normal bias)
    Wilfrid-Unity committed Aug 12, 2020
    Copy the full SHA
    4f57d78 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    267cd81 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2020

  1. Assign ShadowSplitData info to ShadowDrawingSettings before passing i…

    …t to ScriptableRenderContext.DrawShadows - Reduces the number of shadow casters rendered to the shadow map
    Wilfrid-Unity committed Aug 13, 2020
    Copy the full SHA
    5351da8 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2020

  1. Copy the full SHA
    4a1045c View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3d71582 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    fbbef1a View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2020

  1. Add UniversalGraphicsTest suite scene checking for regressions with a…

    …dditional light shadows
    
    Test fails if "hard shadows" setting is replaced by "soft shadows" setting
    Test fails if "soft shadows" setting is replaced by "hard shadows" setting
    Test fails if "no shadows" setting is replaced by "shadows" setting
    Test fails if one of the punctual lights in the scene is not rendered
    Wilfrid-Unity committed Aug 17, 2020
    Copy the full SHA
    feadf90 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    dded503 View commit details
    Browse the repository at this point in the history