Standard shader naming convention

Is there a "best" naming convention for shaders? If not, what are the popular options?

for instance

*. vert * .vertex * .vsh

*. frag * .pixel * .fsh * .psh

I have no examples for geometry and tessellation

+4
source share
1 answer

I think the reason this variety of names exists is because, according to the GLSL specification , shaders are not files, they are character strings. Lines that almost every application loads from a file, but lines nonetheless.

Nevertheless, the authors of Orange Book in their sample applications focused on .vert and .frag. I think this is a pretty significant voice. I also think that he puts the right note between short (moreso than.fragment) and legible (moreso than.fsh).

+4
source

Source: https://habr.com/ru/post/1403493/


All Articles