> Removing the reliance on extension for all file types would be a major
> undertaking, and would be possible for binary files that could have a
> magic tag in their header (I think there's even a command on linux you
> can use to get a file's type from this) but for shaders which are text,
> again you'd need to parse the file and look for surefire signs that it's
> a GLSL shader... Messy IMHO.
>
Yeah, I wouldn't want to remove the reliance on extensions.  I can
think of about 3 ways to determine file type, and I still like using
extensions the best.  I probably wouldn't be complaining about it at
all if shaders just had standard extensions.  You could make shaders a
special case inside OSG, but this is probably a bad idea.  For now I
figured the best first step (and maybe last step) is to route them
through the glsl loader.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to