ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Unity​3​D Shader Highlighter and Snippets

Adds Syntax Highlighting for Unity3D .shader files to Sublime Text

Details

Installs

  • Total 11K
  • Win 7K
  • OS X 3K
  • Linux 288
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 2 6 9 8 6 8 7 12 8 5 8 3 7 3 6 12 2 5 6 2 4 3 7 7 11 6 2 9 8 8 6 9 3 4 5 7 7 6 2 3 9 4 4 9 6 9
OS X 0 1 1 5 6 0 1 1 1 1 3 1 1 1 0 2 2 2 1 2 1 0 0 2 1 0 6 2 5 2 0 1 1 0 2 0 1 1 0 3 1 0 2 4 0 1
Linux 0 0 0 0 0 3 0 0 1 0 0 1 0 0 1 2 0 0 1 0 3 0 1 1 0 1 0 0 1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

What does this do?

This is a package for Sublime Text 3 which adds syntax hightlighting, snippets and completions for Shaders used by the Unity3D Engine.

Currently the following features are included:

  • Highlighting of .shader and .cginc files
    • Highlights most keywords, variables, strings and comments
    • Uses C++ highlighting (with a few additional keywords) inside CGPROGRAM/ENDCG
  • Simple snippets for creating properties
  • Highlighting of .compute files
    • Uses C++ highlighting with a few additional keywords added

DISCLAIMER

The syntax highlighting is rather incomplete. If there are any syntax errors you encounter or any features you want added please don't hesitate to create an issue.