Added support for .cs, .compute, .tctrlm .teval extensions in the GLSL plugin

This commit is contained in:
Robert Osfield 2017-11-27 18:27:13 +00:00
parent bc4a9d9dd0
commit f81a46da5b
2 changed files with 11 additions and 0 deletions

View File

@ -307,6 +307,13 @@ Registry::Registry()
addFileExtensionAlias("vert", "glsl");
addFileExtensionAlias("frag", "glsl");
addFileExtensionAlias("geom", "glsl");
addFileExtensionAlias("tctrl", "glsl");
addFileExtensionAlias("teval", "glsl");
addFileExtensionAlias("compute", "glsl");
addFileExtensionAlias("vs", "glsl");
addFileExtensionAlias("fs", "glsl");
addFileExtensionAlias("cs", "glsl");
addFileExtensionAlias("gs", "glsl");
addFileExtensionAlias("js", "V8");

View File

@ -24,6 +24,10 @@ class ReaderWriterGLSL : public osgDB::ReaderWriter
supportsExtension("tctrl","OpenGL Shader Language format");
supportsExtension("teval","OpenGL Shader Language format");
supportsExtension("compute","OpenGL Shader Language format");
supportsExtension("cs","OpenGL Shader Language format");
supportsExtension("gs","OpenGL Shader Language format");
supportsExtension("vs","OpenGL Shader Language format");
supportsExtension("fs","OpenGL Shader Language format");
}
virtual const char* className() const { return "GLSL Shader Reader"; }