http://icculus.org/mojoshader/
Possible replacement for CG library?There's renewed efforts going into MojoShader, the project by Ryan Gordon for dealing with Direct3D HLSL shaders on non-Direct3D non-Windows platforms.
Possible replacement for CG library?There's renewed efforts going into MojoShader, the project by Ryan Gordon for dealing with Direct3D HLSL shaders on non-Direct3D non-Windows platforms.
Is that a library you can use at runtime or is it a seperate tool to generate glsl code from hlsl offline?scrawl wrote:Nope, it doesn't support high-level shaders.
Thinking about using this: http://sourceforge.net/projects/hlsl2glsl/
hahaha...I bumped into some issues of HLSL2GLSL's preprocessor that I am not fixing. Most issues were with token pasting operator. So I preprocess source using mojoshader's preprocessor. Grab latest from mojoshader hg, it's awesome!
https://github.com/imageworks/OpenShadingLanguage/The Open Shading Language is BSD-licensed with a C-like syntax that is modestly similar to other shading languages while tightly integrating key concepts like deferred ray-tracing, radiance closures, and BSDFs. The Open Shading Language implementation also relies upon the LLVM compiler infrastructure for translating shader networks into machine code as its JIT implementation.
Open Shading Language continues to be developed and the open-source code can be found on GitHub. This ended up being a drop of useful code by Sony. In fact, they are making much progress since opening up the code and language. Their first 100% all-OSL movie was Men In Black 3, which was released in North Americal ast month. Another Open Shanding Language movie soon reaching the theaters is The Amazing Spider-Man. Other upcoming titles using OSL include Hotel Transylvania and Oz the Great and Powerful.