Sampler Border Color

hi everybody.

I am trying to dynamically change to Border color of the Sampler, but i can’t figure out how to use an input color.

{CODE(ln=>1)}float4 cBord : COLOR <String uiname=“Color”;> = {1, 1, 1, 1};

texture Tex <string uiname=“Texture”;>;
sampler Samp = sampler_state //sampler for doing the texture-lookup
Texture = (Tex); //apply a texture to the sampler
MipFilter = LINEAR; //sampler states
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = BORDER;
AddressV = BORDER;
BorderColor = cBord;

this does not work: State BORDERCOLOR does not accept ‘CBord’ as a value.

Any hints?

have you tried with cBord in round brackets? like
Texture = (Tex);
BorderColor = (cBord);

very funny, this works:

BorderColor = float4(cBord.r, cBord.g, cBord.b, cBord.a);

joregs too…

thanks guys. perfect.