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

Unity​3​D Shader Highlighter and Snippets

by petereichinger ST3 Trending

Adds Syntax Highlighting for Unity3D .shader files to Sublime Text

Details

Installs

  • Total 17K
  • Win 12K
  • OS X 4K
  • Linux 506
Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 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
Windows 5 11 12 4 2 4 5 4 4 6 6 5 5 8 4 5 6 7 6 7 7 3 6 2 9 3 8 3 2 5 7 9 5 10 5 9 4 9 6 7 9 6 6 3 6 8
OS X 1 0 0 0 0 0 1 0 0 0 2 0 2 2 0 1 0 0 2 2 0 1 1 0 2 0 3 1 0 0 0 1 2 3 1 1 0 1 3 0 0 1 0 0 0 1
Linux 0 0 0 0 0 0 0 1 0 2 2 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 2 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.