Hmm, that's an interesting point. I'll look into it and see if I can think of a solution - but currently, it's inherent in the way the shader works that it depends on the screen resolution (you'd see the same thing with the Gaussian Blur shader), so dynamically changing the kernel size probably *is* the workaround. Basically, I think it would potentially require a complete rethink of how the shader works to decouple the effect from resolution.
Recent community posts
Hey! I haven't tested this asset pack on Unity 2020.1.7f1 (or any Unity 2020 version for that matter!) but I'll try to get to the bottom of this as soon as I can. This pack is most stable on the LTS versions of Unity (currently that's 2019.4), but if I can solve these issues for you then I'll get back to you. Thanks for your patience :)
Hi! That's a cool way of using the effects :)
Changing values at runtime on URP works something like this:
1) Get a reference to the Forward Renderer Data asset. The easiest way is to assign in the Inspector (this is the asset which contains all the Render Features):
public ForwardRendererData forwardRendererData;
2) Get the list of Render Features from that. It's a List<ScriptableRenderFeature>.
var features = forwardRendererData.rendererFeatures;
3) Iterate through the list and find the specific effect you want to modify. If you've only got, say, a Radial Blur effect applied, it's as easy as picking the first list element and casting to RadialBlur, for example:
RadialBlur blur = (RadialBlur)features;
If you've got a bunch of effects, you'll need to cycle through them all until you find the one you want.
4) Modify the property you want. Probably a good idea to do a null-check just in case. The settings variable is a struct which contains all the properties for a given effect - it's set up in the exact same way for every effect.
if (blur != null)
blur.settings.strength = 27;
Please note, any changes you make in Play Mode using this approach will persist when you stop playing. I hope that helps! I'll be updating the documentation included in the asset pack to outline this process in the next major update.
Hey! Glad you like the look of it :)
It's compatible with 2019.4 (LTS) for sure - the effects were mainly developed in 2019.3, so the jump to 2019.4 doesn't really break anything.
Thanks for flagging up the broken link - that's a hangover from when these shaders were split into separate assets on the Store for built-in and HDRP. I've updated the link now.
Hey! I briefly mentioned this in the other thread (https://itch.io/t/799579/unity-2019313f1urp-cant-manage-to-make-it-work), but I think this could be due to the quick-fix I came up with in that thread - setting the Render Pass variable on the effects to "Before Rendering Post Processing" causes these issues in Scene View. I seem to be able to keep "After Rendering Post Processing" on Unity 2019.3.15f and URP 7.3.1, and the effects work as intended in Game View with no Scene View rendering issues.
I think I've found the issue with those infinite loops. In each of the C# files for those effects, in the Create method near the bottom, you'll see I'm changing the name variable? Comment out that line and see if the infinite loop is gone.
Unity seems to not like having parentheses in the name, so I think what's happening is: the shader gets added to the Renderer Features list, Create is triggered and the name is updated. Unity sees the invalid name and removes the parentheses. This triggers the Create method (for whatever reason, any change to the variables in-Editor seem to trigger Create), so the name gets changed, so Unity removes the parentheses, so Create is triggered, and so on.
Note, I'm working with 2019.3.15f1 now and the latest URP. Seems that "Before Rendering Post Processing" messes with the Scene View, and "After Rendering Post Processing" works again. I'll include information regarding this in the next update's documentation.
Thanks for your patience on this!
Thanks for downloading the shaders! I believe some of these issues might be something to do with the later versions of URP - these assets were created with 7.1.8 - and I've just had a nightmare of a time trying to get the effects to work myself, but I think many of the isses can be solved by changing the Render Pass Event variable of each effect to "Before Rendering Post Processing".
That said, the Dither effect in particular is still broken and has that strange infinite loop you mention. Thanks for bringing it to my attention - I don't know what's causing it yet, but I'll investigate asap. The other effects that have that loop bug are Fancy Neon, Fancy Outline, Sobel Neon and Sobel Outline.
I hope that fixes some of the problems!
To craft a Tree, you'll need Soil + Seeds. It's a little long-winded to get Seeds: you'll need to get Life + Soil. You get Life by crafting Spark + Sea - it's like a spark of life starting in the oceans - but to get Sea you need to "mine" Salt first by using a Machine and Rock together, then add it to Water. I'm working on an update to streamline some recipes - especially the line working up to Tree - and make the hints a lot more useful!
No worries - I'm very happy you've got it working! I wonder what it was in your project that was causing issues? Glad you like it - it's one of my favourites in the pack too! I can investigate the jagged edges for sure.
I've tried downloading this package on Unity 2019.3 and HDRP 7.1.8 inside a fresh project, and I don't seem to be running into any problems so I'm unsure what is happening here. Do you have other effects on your volume which could be interacting strangely with the ones from this package?
Which settings do you have for each of those effects you've put on your volume? If you tick the little checkboxes next to each sub-setting and change the values, does anything change? The default settings with no overrides on those settings looks as if nothing is happening - try changing those, and if nothing changes then I'll look into it!
Also, I'm assuming you're using the latest version of HDRP?
Hey, thanks for using the package! Which effects are you having trouble with - is it all of them? Just to make sure - so you've added each effect you want to use to the list at Project Settings -> HDRP Default Settings -> Custom Post Process Orders and then added the effect to a volume in the scene?
Currently there's not a fade % for every effect, but I will look at adding one in a future update.