예제 #1
0
 public void InitMemberByInstance(ChannelMixer channelMixer)
 {
     red      = channelMixer.red;
     green    = channelMixer.green;
     blue     = channelMixer.blue;
     constant = channelMixer.constant;
 }
예제 #2
0
        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);
        }