Convert shader Open Shading Language (OSL) -> OpenGL

Hello everyone,

I’ve implemented a few custom shaders to be used in Cycles that are based on the OSL scripting language. Is it possible to re-write them by using the OpenGL language?

Thanks!

If the question is if as a Blender user you can use GLSL to write custom shader nodes, then the answer is no, that is not supported.

If you are implementing functionality in Blender itself, then many things are possible with GLSL but you’ll need to provide more information about what you are trying to do.

In general… yes… i saw something likes this… you may have look here :

( i’m not sure if this is what i once found myself… while searching for something completely different… :sweat_smile: …there are also transpiler to/from HLSL and more )