Note: This question is specifically about Xcode. There are other questions about GLSL file extensions, for example: What is the correct file extension for GLSL shaders?
I've been using .glsl
for GLSL code files but I've also tried these: .glslv
, .glslf,
.vsh
, .fsh
, .vert
, and .frag
- but I always have to manually go and set the file type to "OpenGL Shading Language Source" after creating/adding the file to my project.
a) Is there an extension that Xcode will automatically recognise as GLSL source?
or...
b) Is there a way to tell Xcode to associate an extension of my choosing with the GLSL source file type?