I've been trying to wrap my head around how to write a simple custom node in UDK for the last two days with no success. What I want to do is make a node that will separate the red channel from any sample run through it.
I have no experience with custom nodes in UDK, and just started learning HLSL, so please no psedo code.
Replies
define a name for your input and then use the code below with ofcourse the inputname changed to the one you gave
is that what you mean?
fake edit:
Actually now I'm wondering how you'd offset the channel with a second input for the texture coordinates? and is it possible to have multiple outputs on a custom node?
Vailias: Because I want to be able to offset the channels UVs each after theyve been separated, and I don't know how to do that with the built-in nodes (I'm all ears though), plus it gives me an excuse to spend a while trying to learn the basics of hlsl.
Why do you want to do it after separating the channels? why not just have two or three texture samples with different UV inputs?
What's the end result you're wanting for your project?