ShaderlabVS Pro is a Visual Studio plugin for Unity shaderlab programming. It is paid version of ShaderlabVS which I made and open source since the year 2014. Compared with ShaderlabVS, it has more features and better performance.
Main Features:
• Syntax highlighting
• Hover information
• Code Completion
• Doc Comment
• Format Document and Selection
• Singnature Help
• Go To Definition
• Navigate To
• Supports SRP
• Code Snippets
• Supports Dark theme
Purchased!
However, when I enable this extension, the VS text editor no longer shows the line numbers on shader code. Disabling the extension makes the line numbers reappear.
I really need those line numbers lol.
I’m missing C#'s variable highlighting though: the thing that automatically highlights all references of a variable in your code when the cursor is over that variable’s name.
That would be a great feature for shaderlab editing!
I have implement a basic version for highlighting selected words and same words in document in my local side, would you mind help test it? It’s not perfect, but works. Please send me an email to amlovey@qq.com and I will send you the new package.
Hey! I am looking at your ShaderLabVS Pro asset. I am a bit confused with the Standard Renderer and ex URP. As I understand we use CG for standard Pipeline and HLSL for URP? My question remains - does the asset support the HLSL or generally URP / HDRP way of writing shaders? I can see in the description SRP - is this the same shader wise ? I will try the free version but I would really appreciate if you could clarify this for me.
I am aware of Shader Graph but I really like to know what happens underneath and autocomplete and syntax highlight will really speed up the learning process.
Thanks!
-Peter
ShaderlabVS supports both of them CG and HLSL. Actually, these two languages are very similar from syntax level.
And it supports write shader (.shader and .compute) and libraries (.cginc, .glslinc and.hlsl etc.). Free version has limited features but it will make shader programming more easier in Visual Studio.
Before I decide to purchase the asset I have a question about how it works compared to free version that I am using.
The free version doesn’t give the autocomplete for ex “UnityObjectToClipPos”
or when I type o. … and i. … like this:
UPDATE: I see that it provides the autocompleter for i.vertex and others but it is at the end of the list.
From what i see in the video on the asset store the pro version provides all those features is it correct? Can I expect the same sort of intellisence like the inbuild one for c# ? The description of the asset only mentions better performance and more features so I am asking to make sure what to expect.
Free version only has completions for old unity (like unity 5) and didn’t update for many years. That’s why the ‘UnityObjectToClipPos’ method are not included. Pro version is updated and more powerful for code completions intellisense(like provide methods/types from included library files).
I can confirm that opening the generated shader of a surface shader, this plugins slows down Visual Studio a lot.
It’s not usually a problem for me, but I can see how it could be in some cases.