UE4 Custom node. How to take r, g,b or a component from float4 input?
Ff0f7ae883e4996934b8022de452d9d891470bfe 2 1024x485.jpeg

Folks, I'm stuck with such simple tasks.

I'm trying to see something done in epic code, different HLSL, but with no luck.

How do I take a specific channel from float2-float4?

For example:
float4 x = inVec;
return x;

I want to return a single channel, R, G, B, or A.

Currently the code always returns A and ignores all other channels.

LEAVE A REPLY

Please enter your comment!
Please enter your name here