From the course: 3ds Max: Tips, Tricks and Techniques

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Declaring OSL input and output parameters

Declaring OSL input and output parameters - 3ds Max Tutorial

From the course: 3ds Max: Tips, Tricks and Techniques

Declaring OSL input and output parameters

we will continue to develop this Simplex noise map in the Open Shading Language. I've got it already open. I've opened up the material editor. I've got the map I created last week selected and in its parameters I've opened up the edit window. Let's go ahead and get to work here. We've got a shader declaration and we've also got which is going to be Simplex noise with a space. So after this first string declaration here, this first piece of metadata, I'll put in a comma, and I can separate that with spaces, put in a carriage return, and then you can use tabs to make it a little bit easier to read. This will be another string and this time it will be of the type label and it's going to be equal to the string enclosed in double quotes, Simplex white space noise, and then close the double quotes. We can compile the shader, and now we see we have a space there. Notice that it didn't update here. We would actually have to save and reload the scene in order for this to fully update. Our main…

Contents