Search Issue Tracker

Fixed in 2018.2.X

Votes

0

Found in

2018.2.0a1

Issue ID

988349

Regression

No

[HDRP][Metal] Point and spot lights are incorrectly clipped at certain angles

Shadows/Lights

-

Steps to reproduce:

1. Open the linked project (or set up a project for HDRP usage from https://github.com/Unity-Technologies/ScriptableRenderPipeline)
2. Make sure Metal Support for editor is enabled
3. Open 'BasicProfiling' scene
4. Navigate to one of the planes that are lit up using point or spot lights
5. Look at those planes from various angles in scene or game view
6. Notice the lights are clipped too early (see screenshot)

Same happens if you build that scene with Metal graphics API.

Workaround:
Modify an if statement structure at line 277 in Assets/ScriptableRenderPipeline/ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/scrbound.compute from

if(g_isOrthographic==0 && length(center)>radius)
{
}

to

if(g_isOrthographic==0)
{
if(length(center)>radius)
{
}
}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.