Is there a way to set a float4-type parameter for an HLSL effect shader from the Event Editor? I've got a color parameter that I'd like to set programmatically, but in the Event Editor, I can only set a float parameter or an image parameter.
Is there a way to set a float4-type parameter for an HLSL effect shader from the Event Editor? I've got a color parameter that I'd like to set programmatically, but in the Event Editor, I can only set a float parameter or an image parameter.
Technically you can if you calculate the RGBA value yourself.
Here's an example: GetRGBA.mfa
And the shader for testing the mfa above in case you don't have it: SimpleFillWithAlpha.zip
The RGBA value might look really odd, cause it's probably getting past the integer limit, but the shader can interpret it.
Another way of doing it is just selecting the color as usual from the color dialog and on the next action adding ALPHA (0 to 255) * 256 * 256 * 256 to the color parameter.