public void InitMemberByInstance(ChannelMixer channelMixer) { red = channelMixer.red; green = channelMixer.green; blue = channelMixer.blue; constant = channelMixer.constant; }
public ChannelMixerDef() { if (channelMixerEffect == null) { channelMixerEffect = Util.GetComponentVar <ChannelMixer, ChannelMixerDef>(channelMixerEffect); } red = new Vector3(100f, 0f, 0f); green = new Vector3(0f, 100f, 0f); blue = new Vector3(0f, 0f, 100f); constant = new Vector3(0f, 0f, 0f); }