Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting this strange error when trying to use this in a new Project #39

Open
AcKeskin opened this issue Mar 10, 2022 · 1 comment
Open

Comments

@AcKeskin
Copy link

IndexOutOfRangeException: Invalid kernelIndex (0) passed, must be non-negative less than 1.
ComputeHelper.GetThreadGroupSizes (UnityEngine.ComputeShader compute, System.Int32 kernelIndex) (at Assets/Scripts/Script Utilities/ComputeHelper.cs:104)
ComputeHelper.Run (UnityEngine.ComputeShader cs, System.Int32 numIterationsX, System.Int32 numIterationsY, System.Int32 numIterationsZ, System.Int32 kernelIndex) (at Assets/Scripts/Script Utilities/ComputeHelper.cs:16)
AtmosphereSettings.PrecomputeOutScattering () (at Assets/Scripts/Celestial/Effects/AtmosphereSettings.cs:91)
AtmosphereSettings.SetProperties (UnityEngine.Material material, System.Single bodyRadius) (at Assets/Scripts/Celestial/Effects/AtmosphereSettings.cs:75)
AtmosphereEffect.UpdateSettings (CelestialBodyGenerator generator) (at Assets/Scripts/Celestial/Effects/AtmosphereEffect.cs:23)
PlanetEffects.GetMaterials () (at Assets/Scripts/Post Processing/Planet Effects/PlanetEffects.cs:79)
PlanetEffects.Render (UnityEngine.RenderTexture source, UnityEngine.RenderTexture destination) (at Assets/Scripts/Post Processing/Planet Effects/PlanetEffects.cs:24)
CustomPostProcessing.OnRenderImage (UnityEngine.RenderTexture intialSource, UnityEngine.RenderTexture finalDestination) (at Assets/Scripts/Game/CustomPostProcessing.cs:48)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

@Delofon
Copy link

Delofon commented May 15, 2022

I believe I fixed this before here. Try forking that branch, maybe it will work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants