I’m using URP 12, in one of the latest Unity version, 2021.2, and I don’t have access to it. Well, except if I go in debug mode, but then the range only makes it so that the shadow gets cut, it doesnt actually change its range.
Do you think the tutorial above was on the default render pipeline or something?
Can you confirm that I cannot influence the strength of the shadows on a Point light in URP, without increasing the intensity to crazy levels, which has the side effect of creating a blinding light in the center?
If that’s indeed the case :(, are there post processing effects that would allow me to keep the light intensity kind low, but also have stronger, longer shadows?
Thanks.
I have a similar issue with URP spot lights that’s gone unanswered for like 8 months …still can’t make flashlights or headlights with any kind of range to them without everything turning white near the light due to needing such high intensity.
Currently, in URP, we use the default inverse square light attenuation falloff which matches lightmapper, but at the moment there is no non-physically based smoothing factor being applied, so technically, we should match
InverseSquaredNoRangeAttenuation, which can be seen in the following document. This is technically a bug as we should match lightmapper so that there is no discrepancy in mixed lighting mode. Can you report this issue so that we can track it accordingly?
From the discussion, it sounds like what you actually want is the linear falloff. Is that correct? Or would you prefer the quadratic legacy model? Technically, this is less physically accurate, but generally, URP tries to provide customisation that isn’t restricted by hard physically based energy conversation. We have actually been discussing adding custom falloff curves, but this would be a feature request. If this is something you would like to have, can you submit a feature request so that we can prioritise it?
I for one would like to have this feature, though I’ll let someone else submit a request because I don’t know where that’s done.
Adjusting light attenuation is the only URP customisation I’ve needed to make, so just to change a couple of lines in Lighting.hlsl I’ve had to copy the whole com.unity.render-pipelines.universal package over into /Pacakges/ just so those changes stick.
I think a custom falloff curve would be great… and per light would be exceptional. I don’t know the stuff @Matt-Cranktrain does - I could tinker and still get nowhere and even if I did figure it out, I’d have to manually persist my changes every time I update. I’m just using the latest packages of everything and trusting in fixes and advancements being made over time by the developers at Unity.
I don’t know where to submit a feature request either - but a final illustration of the issue. With a scale of 1 unit = 1 meter, standing at the edge of a forest, if you want to see as far as you could casually toss something, the nearest trees are all solid white. I do think it would be a great feature for that not to be the case
It is important for you to submit the feature as it doesn’t have as much priority if I add the feature request myself. This is also true for bug reports. For us to merge bug fixes into an LTS release, there needs to be a bug report. If you need the InverseSquared with smooth factor fix, then definitely submit a bug request for it. I can easily land it in a non LTS, but I’ll need the bug report to get it into an LTS.
@Matt-Cranktrain can you let me know the details of what type of attenuation fall-off model you added and any other customizations you made to it? This will help us scope the feature internally.
When making changes to the source, instead of copying, the best way is to either import the package manager “Add package from disk” or to edit the Packages\manifest.json file:
It is important to checkout the proper release branch for the unity version, otherwise you need to make sure that you import com.unity.render-pipelines.core, com.unity.render-pipelines.universal, and com.unity.shadergraph packages match the same version you are using. When importing multiple packages, it is usually easier to just edit the manifest rather than use the package manager.
Though for any customizations you make, please make a feature request so that we can make it the default behavior so that you don’t have to maintain custom revisions!