playMaker

Author Topic: Shadow Distance  (Read 2020 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Shadow Distance
« on: August 21, 2022, 06:32:44 PM »
Hi, It seems there is no action to change shadow distance. Can someone please create this action? I need to change shadow distance during runtime  :)

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 714
    • Flashing Lights
Re: Shadow Distance
« Reply #1 on: November 16, 2022, 02:03:04 PM »
Hello, here is an action to set different shadow distances per layers.
Sadly this method works only for Directional Lights.

Action made by DjayDino

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Shadow Distance
« Reply #2 on: February 14, 2023, 07:02:12 AM »
Hello, here is an action to set different shadow distances per layers.
Sadly this method works only for Directional Lights.

Action made by DjayDino

Hi thank you it's a good action but is there any action to change shadow distance in the quality windows?

Tubbritt

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Shadow Distance
« Reply #3 on: April 09, 2023, 04:09:12 PM »
Hello.
Try this. I made this for Unity 2022.1.20f1 but I don’t see why it would work in other versions.

There’s 3 actions.
SetNoneCascades.cs turns off all shadows.
Set2Cascades.cs set the Quality settings to 2 cascades.
Set4Cascades set the Quality settings to 4 cascades.

When setting the amount for each of the cascades, use a value between 0 and 1.
For example, 0.1 is a value of 10%.

Kind regards
James.