2

For my Open GL shaders, GitHub seems to recognize fragment shader ( extension .fs) but not vertex shaders ( extension .vs)

Since GLSL has no defined extensions (it loads text) what is a good extension to use so I get my code recognized.

As an example my shaders Example Shaders
Note how .fs looks pretty and .vs like plain text

Richard
  • 302
  • 2
  • 7

1 Answers1

2

See if a .gitattributes linguistic directive, as I mentioned in "Github changes repository to wrong language", would be enough:

*.vs linguist-detectable
*.vs linguist-language=GLSL

lib/linguist/languages.yml GLSL section does include ".fs", but no ".vs", only ".vsh"

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755