Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[FREE] ShaderlabVS - Visual Studio extension for Unity Shaderlab programming

Discussion in 'Assets and Asset Store' started by Amlovey, Aug 15, 2016.

  1. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    Hi,

    ShaderlabVS is a Visual Studio plugin for Unity Shaderlab programming and it's open source. Paid Version with Long Term Support is available on Asset Store.

    Supports files:
    • .shader
    • .cginc
    • .glslinc
    • .compute
    • .cg
    • .hlsl

    Github: https://github.com/wudixiaop/ShaderlabVS

    Features in short: Syntax Hightlighting, outlining, code completion, Signature help and supports dark theme

     
    Last edited: Jan 8, 2021
  2. Le_Tai

    Le_Tai

    Joined:
    Jun 20, 2014
    Posts:
    442
    This is absolutely amazing. But where can I find thevs2015_register.cmd file?
    And I think it would seem more trustworthy if you upload it to some English site.
     
    Amlovey likes this.
  3. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    After version 0.7 beta, the batch file is not required. And Yes, you're right. :) I have uploaded the latest VSIX file to github https://github.com/wudixiaop/ShaderlabVS/releases/tag/v0.7-beta. Thank you!
     
    Le_Tai likes this.
  4. PsyKaw

    PsyKaw

    Joined:
    Aug 16, 2012
    Posts:
    102
    Thanks for this :)
     
  5. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    you're welcome :)
     
  6. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    v0.8 is out. new features:

    1. Add auto brace completion
    2. Add dark theme support
    3. Add .cg and .hlsl support
     
  7. grizzly

    grizzly

    Joined:
    Dec 5, 2012
    Posts:
    357
    This is outstanding Amlovey, many thanks for sharing! :cool:
     
  8. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    You're welcome :)
     
  9. Le_Tai

    Le_Tai

    Joined:
    Jun 20, 2014
    Posts:
    442
    Any plan to support VS 2017?
     
  10. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    Already open a TODO item on Github. Once the VS2017 developement setup is done, i will start it.
     
    Le_Tai likes this.
  11. Andrew-Le

    Andrew-Le

    Joined:
    Dec 10, 2015
    Posts:
    1
    Thank you so much, that was exactly what im looking for !!
     
  12. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    You're welcome :)
     
  13. kamindustries

    kamindustries

    Joined:
    Jun 22, 2017
    Posts:
    1
    This is great, thank you for making this.

    One suggestion: is it possible to add a highlight color for Unity's built in functions? For example, UnityObjectToClipPos(v.vertex) is all the same color.
     
  14. g8minhquan

    g8minhquan

    Joined:
    Jun 18, 2014
    Posts:
    38
    Hi,
    I installed on my Visual Studio 2017 but the auto code formatting doesn't work. Tried disabling/enabling and restarting VS but still doesn't work
     
  15. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    @g8minhquan, ShaderlabVS don't have auto code formatting feature...
     
  16. g8minhquan

    g8minhquan

    Joined:
    Jun 18, 2014
    Posts:
    38
    ah, thanks for the answer.
    Btw, in the end I found that editing Unity ShaderLab with SublimeText 3 with ShaderLab extension is the best.
    Great syntax highlighting and also has code formatting
     
  17. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    632
    This is a great extension but it looks like it's not being developed no more.
     
  18. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    Yes. it have no updates for a long time...:)
     
  19. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    632
    This is such a shame, it's the only extension that really works for unity shaders.
    Any chance you'll make a new update? at least compatibility with VS 2019.
     
  20. leoamaro

    leoamaro

    Joined:
    Jul 28, 2018
    Posts:
    13
    Sorry, the site is in Chinese and Google translate isn't helping, could you provide us with a direct download link or something? Sorry for the inconvenience.
     
    ModLunar likes this.
  21. Amlovey

    Amlovey

    Joined:
    May 10, 2016
    Posts:
    253
    After 6 years open source, ShaderlabVS has paid version with long term support version and available on Asset Store now => ShaderlabVS Pro
     
    xCyborg likes this.
  22. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    632
    Congratulations! Very nice work.