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 14K
  • Win 10K
  • OS X 4K
  • Linux 408
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 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3
Windows 5 12 6 6 4 1 7 8 9 5 5 11 6 6 8 9 4 8 4 8 10 7 9 7 8 10 5 2 11 11 16 11 6 11 15 10 11 9 2 8 4 2 8 9 3 8
OS X 0 2 1 0 2 1 0 3 1 1 1 1 2 0 0 0 1 1 3 0 1 0 0 1 0 0 0 1 1 0 1 0 0 2 0 2 2 3 0 3 0 2 2 0 2 0
Linux 1 0 0 2 0 0 0 1 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 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.