SebLague / Solar-System

Simple solar system experiment
https://www.youtube.com/watch?v=7axImc1sxa0
MIT License
1.15k stars 315 forks source link

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

Open AcKeskin opened 2 years ago

AcKeskin commented 2 years ago

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 commented 2 years ago

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