Input morph (colour) - code

I’m trying to replicate this functionality in a shader but no joy yet. Does the source for this node exist anywhere so I can learn from it?

I’ve tried converting to HSV then lerping (cyclic) but it’s not right still.

Lerp in HLSL gives me exactly the same result as InputMorph

	float4 col =  cAmb;
	float4 col2 =  cAmb2;
	col = lerp(col, col2, morphSwitch);
	return col;
1 Like

yes, its a RGBA lerp. nothing fancy…

so it is!

duh

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.