Aug
14
2012

Shadow Volumes with Unity Indie

Thanks to this comment, I founded out that you can use GL in unity indie.

That means, shadow volumes script from unitycommunity works on free unity also!
(on 4.0, those commands should work on the free version anyways..)

Download Source:
ShadowVolumesExample.unityPackage


11 Comments + Add Comment

  • i’ve tried to download the unity package files in the wiki, but some error comes when it tries to create the directory inside the assets folder.

    can you repackage it again with a new copy of unity, or do you have some links with newer packaged files..??

    thx b4….^^

    • Yes..I remember, now that you mentioned it, there was few lines that you had to edit in the wiki-script, i’ll make package from it soon.

  • Hahaha! Awesome. That was my comment! πŸ˜€ Can’t wait to try it.

  • Its works great…but only with spheres and capsules. Shadows don’t work on my own models and i dont understand why because my models are closed.Cubes dont work too… And i tested with a gun model and i see a lot of artifacts. So its very buggy :'(

  • Yes, it’s not working with other models. πŸ™

  • I can’t seem to get this work, I get this error and there is like a purple mesh over the gameobject;

    Trying to access pass 1, but material ‘Hidden/ShadowVolume/Extrusion’ subshader (0) has only 1 valid passes.

    • Disable dx11 mode (from player settings).. not sure whats the problem,
      it adds this note in the shader though,

      // Upgrade NOTE: excluded shader from DX11 and Xbox360; has structs without semantics (struct appdata members vertex,normal)

      • Thanks for that, that was a duh moment for me and now I am putting it on my own objects to get it work. πŸ™‚

        • Everything is working great,wow this is nice.

  • NICE! Even if this is an old thread, (and now that Unity Indie has shadows, so this isn’t needed really) I could still use this to have a fiddle around and see what i come up with!

  • It can be run on android platform?

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.