public void InitMemberByInstance(Convolution3x3 convolution3x3) { kernelTop = convolution3x3.kernelTop; kernelMiddle = convolution3x3.kernelMiddle; kernelBottom = convolution3x3.kernelBottom; divisor = convolution3x3.divisor; amount = convolution3x3.amount; }
public Convolution3x3Def() { if (convolution3x3Effect == null) { convolution3x3Effect = Util.GetComponentVar <Convolution3x3, Convolution3x3Def>(convolution3x3Effect); } kernelTop = Vector3.zero; kernelMiddle = Vector3.up; kernelBottom = Vector3.zero; divisor = 1f; amount = 1f; }