I'm trying to do realtime lighting, and my shadows are acting very strange. When I project a spotlight out from the camera (like a flashlight in a first person game) my shadows show up as 3D skews of the objects, and I can actually clip through them if I move the camera in the right way... if I detach lights from the camera and just have them sit in one position, I don't seem to have this issue (cylinder to the right is just the model Im using for the flashlight... its attached to the camera):
- All objects have Cast Shadows set to "On"
- All objects have Receive Shadows checked
- All objects have Light Probes and Reflection Probes set to "Blend Probes"
- All objects have Motion Vectors set to "Per Object Motion"
- All objects have Lightmap Static unchecked
- All objects have Dynamic Occluded checked
- All lights have Mode set to "Realtime"
- All lights have Shadow Type set to "Soft Shadows"
- All lights have Realtime Shadow Strength set to 1
- All lights have Realtime Shadow Resolution set to "Very High Resolution"
- All lights have Realtime Shadow Bias set to 0 (changing this doesn't seem to effect the issue)
- All lights have Realtime Shadow Normal Bias set to 0 (changing this doesn't seem to effect the issue)
- All lights have Realtime Shadow Near Plane set to 0.1 (changing this doesn't seem to effect the issue)
- All lights have Draw Halo unchecked
- All lights have Render Mode set to "Auto"
- All lights have Culling Mask set to "Everything"
- Camera has Clear Flags set to "Solid Color"
- Camera has Background set to #000000
- Camera has Culling Mask set to "Everything"
- Camera has Projection set to "Perspective"
- Camera has Field of View set to 60
- Camera has Near Clipping Plane set to 0.3
- Camera has Far Clipping Plane set to 1000
- Camera has Viewport Rect set to 0, 0, 1, 1
- Camera has Depth set to 0
- Camera has Rendering Path set to Use Graphics Settings
- Camera has Occlusion Culling checked
- Camera has Allow HDR checked
- Camera has Allow MSAA checked
- Camera has Allow Dynamic Resolution unchecked
- Camera has Target Display set to "Display 1"
- In Player, Rendering Color Space set to "Linear"
- In Player, all Rendering Auto Graphics APIs checked (win, mac, lin)
- In Player, Rendering Static Batching checked
- In Player, Rendering Dynamic Batching checked
- In Player, Rendering GPU Skinning unchecked
- In Player, Rendering Graphics Job (Experimental)* unchecked
- In Player, Rendering Lightmap Encoding set to "High Quality"
- In Graphics, all Built-in Shader Settings are set to "Built-in shader"
- In Graphics, Shader Stripping Lightmap Modes is set to "Automatic"
- In Graphics, Shader Stripping Fog Mode is set to "Automatic"
- In Graphics, Shader Stripping Instancing Variants is set to "Strip Unused"
- In Graphics, Preloaded Shaders Size is set to 0
- In Lighting, Skybox Material is set to "Default-Skybox"
- In Lighting, Sun Source is set to "None (Light)"
- In Lighting, Environment Lighting Source is set to "Color"
- In Lighting, Environment Lighting Ambient Color is set to #000000
- In Lighting, Environment Lighting Ambient Mode is set to "Realtime" (and the dropdown box is greyed out, so I can't change it)
- In Lighting, Environment Reflections Source is set to "Custom"
- In Lighting, Environment Reflections Cubemap is set to "None (Cubemap)"
- In Lighting, Environment Reflections Compression is set to "Auto"
- In Lighting, Environment Reflections Intensity Multiplier is set to 0
- In Lighting, Environment Reflections Bounces is set to 1
- In Lighting, Realtime Global Illumination is checked
- In Lighting, Baked Global Illumination is unchecked
- In Lighting, Fog is unchecked