You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Using Unity 2021.3 the effect works as expected, however the Scene view doesn't render (becomes all black, tried disabling all sorts of layers), I have to disable Sun Shaft Feature to be able to see my scene in Scene view, so basically I only enable it before generating a build.
Off topic: not sure where I can ask this, but could the sun position parameter be linked to an object (maybe move it to the material...)?
The text was updated successfully, but these errors were encountered:
[SerializeField] private UniversalRendererData forwardRendererData;
private List<ScriptableRendererFeature> features;
private SunShaftFeature sunShafts;
private void Start()
{
features = forwardRendererData.rendererFeatures;
for (int i = 0; i < features.Count; i++)
{
if (features[i].GetType() != typeof(SunShaftFeature)) continue;
sunShafts = (SunShaftFeature)features[i];
break;
}
sunShafts.Position = // Change the position of the sun shafts here.
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using Unity 2021.3 the effect works as expected, however the Scene view doesn't render (becomes all black, tried disabling all sorts of layers), I have to disable Sun Shaft Feature to be able to see my scene in Scene view, so basically I only enable it before generating a build.
Off topic: not sure where I can ask this, but could the sun position parameter be linked to an object (maybe move it to the material...)?
The text was updated successfully, but these errors were encountered: