![]() To Apply the OSL shader to an object as a surface shader, disconnect the object’s current surface shader if it has one,Īnd then drag and drop the aiOSLShader node from the Hypershade window onto the object. * OSL shaders can be surface shaders, volume shaders, procedural textures, texture processors and more. Depending on the type of output the OSL shader generates, the aiOSLShader node should to be connected to an input in the object’s shader graph or Shading Group. ![]() After the OSL code is compiled successfully, the shader’s input parameters can be accessed in the OSL Attributes section below the code:.You can read the error message in the Maya output window, or in the Maya Script Editor, Correct the code and press Compile OSL Code again. The code may contain errors, in that case you will see a red Compile Failure message:.I f you’ve written new code, or changed the code it will have to be re-compiled.When new shader code is imported, it’s automatically compiled:. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |