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
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
"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.