ShaderlabVSCode is a Visual Studio Code extension for Unity Shaderlab programming.
Documents | Forum | Email | Asset Store
v 1.1.4
Press CTRL + SHIFT + o
on Windows or CMD + SHIFT + o
on macOS.
Below are the snippets:
snippets | Description |
---|---|
blend1_1 | Blend One One |
blendsa_1-sa | Blend SrcAlpha OneMinusSrcAlpha |
blend1_1-sa | Blend One OneMinusSrcAlpha |
blend1-dc_1 | Blend OneMinusDstColor One |
blenddc_0 | Blend DstColor Zero |
blenddc_sc | Blend DstColor SrcColor |
cgp | CGPROGRAM...ENCG |
for | for loop |
fallback | Fallback |
glp | GLSLPROGRAM...ENCGLSL |
if | if { ... } |
ifelse | if {...} else {...} |
incucg | #include "UnityCG.cginc" |
inclight | #include "Lighting.cginc" |
incautolight | #include "AutoLight.cginc" |
props | Properties |
prop2d | 2D type property |
propcube | Cube type property |
propc | Color type property |
propv | Vector type property |
propf | Float type property |
proprange | Range type proprety |
region | //#region ... //#endregion |
region2 | //region ... //endregion |
shader | Shader { ... } |
subshader | SubShader { ... } |
struct | structure |
tags | Tags { ... } |
tagstt | Tags with both of RenderType and Queue is Transparent |
Two ways to format document:
- Right click the editor area and select Format Document menu in context menu
- Open Command Palette and type "Format Document", and then press
ENTER
key on keyborad.
There are two ways:
//#region
and//#endregion
//region
and//#endregion
If you like this extension, a good Star and Review on Asset Store would be much appreciated and thanks a lot.
Visit site http:https://www.amlovey.com