-
Notifications
You must be signed in to change notification settings - Fork 1
TweenColorRotation
Tween Color Rotation rotates the given colour through 'YIQ' colour space to retain luminosity of colours and values as they are adjusted
See page : Common Settings
Set the colour on a material, or instead assign to color property if available.
name of the material property to set.
Should be the name of a Color property on a material. (usually _Color)
If using * Set Matrix * and supplied Shader, use "_MatrixYIQ" as the property name
Script will typically create and assign a new instance of a material to tween. Select this if this is not desired behaviour. If you've set multiple 'TweenColor' components on an object, you will only want the first Component to do this instancing.
Script typically sets color on 'renderer.sharedMaterial' Select this if you want to force the script to set referenced 'material' instead This is especially used if setting some things up by script
YIQ Colour Space will affect Hue Saturation and Value.
Saturation only is a cheaper operation if you only want that.
YUV BlendExperiment uses YUV space, Wikipedia Link
Values with hue rotation (0-360 degrees) Saturation 0-1 and Value 0-1.
Saturation and Value do work outside the 0-1 range.
Send the materix to the shader to do the rotation there. Usefull if wanting to apply to the colours on a texture.
Lindsay Jorgensen lindsay (at) radialgames (dot) com or twitter @mrlinds