Osl shader not working help needed

i downloaded this shader i think it was meant for 3ds max but anyways i imported this in blender script node with open shading language enabled in render option but its not working. does anyone know a way to make this work in blenderShapes.osl (1.3 KB)

Are you using GPU or CPU? Because OSL shaders in Blender only work with CPU (this limitation sucks, I know).

cpu i dont have a gpu

Don’t know much about OSL… But I recall Blender uses a kind of “modified” OSL (so maybe you need to change somthing in the code). Or maybe OSL is broken in 2.8+…

looks like it works to me:

1 Like