Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Compute Shader AtmosphereRenderer error

Discussion in 'General Graphics' started by loniekpro, Mar 25, 2022.

  1. loniekpro


    Aug 25, 2020
    Hey everyone, i'm sorry if i in wrong section but i thought this would be the best place to look for help.

    I'm having problem with error:
    Compute shader (AtmosphereRenderer): Property (_MSTex) at kernel index (3) is not set
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    Compute shader (AtmosphereRenderer): Property (_MSTex) at kernel index (6) is not set
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    I'm kinda confused about it and doesn't really know what it says, after searching google i couldn't find same error as mine although i found similar error where the key word "_MSTex" is diffrent and the solution they provided didn't helped me. Solution was to turn off and on the lightbulb in the scene.

    To sum up. I have those errors only on certain scenes (my project have levels and each level is diffrent scene)
    They prevent me to play in editor mode (although on build they doesn't crash the game, it works normally).
    The file that it sends me to is AtmosphereRenderer.compute and it doesn't tell any lines.
    I suppose it needs variable _MSTex but when i insert it in this section:

    Code (CSharp):
    1. RW_TEXTURE2D(float4, _T);
    2. RW_TEXTURE2D(float4, _TLights);
    3. RW_TEXTURE2D(float4, _MS);
    4. RW_TEXTURE2D(float4, _MSMultithreaded);
    5. RW_TEXTURE2D(float4, _SkyView);
    6. RW_TEXTURE3D(float4, _AP);
    7. RW_TEXTURE3D(float4, _ScreenSpace);
    8. RW_TEXTURE2D(float4, _AmbientProbe);
    9. RW_TEXTURE2D(float4, _FogReflectionScattering);
    10. RW_TEXTURE2D(float4, _FogReflectionTransmittance);
    11. TEXTURE3D(_ScreenSpaceHistory);
    It gives more error with diffrent indexes.

    i'm kinda lost, want to know why this is throwing this error, how to overcome it and fix it rather just blindly accepting the solution.

    If i could get any help i would be really happy. I can provide more information but i don't know which one and don't want to do a mess here.

    Attached Files:

  2. loniekpro


    Aug 25, 2020
    After some research and testing a lot, looking for diffrences in scenes i come upon a setting in expanse "Multiple Scattering", which was set to off.
    Enabling it, made it work!

    I assume, on specific scenes, it needed to use it and while it was disabled, error was throwing that it can't access it.
  3. oguzkaancomoglu


    Aug 18, 2021
    Hello , I think I have same issue but I didn't find the multiple scattering settings . Can you show me where is this exactly settings.