It was my fault for assuming you (or anyone else for that matter) would know what to do with the code. The deeper I get into coding myself I forget what's "common knowledge" and what's not.
I guess it goes without saying even though it's probably obvious at this point, but I'll mention it anyway just to be sure. You can also open up any other shaders you might have access to, since they are usually stored in plain text format and can be easily opened up with notepad, in order to take a look at the code and make modifications.
If you end up doing this a lot you'll probably want to use notepad++ rather than regular notepad which should help make the code easier to read and edit (though it's not necessary). Even better is ShaderFX which is node based like UDK's material editor, though it requires Max.
No dramas Ben, we're in the technical talk forums after all
Thanks for the links...if I'm feeling brave I might tinker with the code, it's always interesting seeing what's talking to what and experimenting with code haha.
Replies
I figured it would be better to post the code than link to a file that could someday be lost again.
It was my fault for assuming you (or anyone else for that matter) would know what to do with the code. The deeper I get into coding myself I forget what's "common knowledge" and what's not.
I guess it goes without saying even though it's probably obvious at this point, but I'll mention it anyway just to be sure. You can also open up any other shaders you might have access to, since they are usually stored in plain text format and can be easily opened up with notepad, in order to take a look at the code and make modifications.
If you end up doing this a lot you'll probably want to use notepad++ rather than regular notepad which should help make the code easier to read and edit (though it's not necessary). Even better is ShaderFX which is node based like UDK's material editor, though it requires Max.
I think there are a few links to shader tutorials and examples in the Programming Scripting Master Thread if you are interested.
Thanks for the links...if I'm feeling brave I might tinker with the code, it's always interesting seeing what's talking to what and experimenting with code haha.
Yep, I've got notepad++, cheers.