//========================================================================= public EchoMaterialProperty(string ipname, Material imat, float ifloat, ECHOPFXMATHS imath) { name = ipname; floatVal = ifloat; active = true; numType = 0; frameCount = 0; mathtOpt = imath; avgStart = 1.0f; floatVal_hold = floatVal * -1; propID = Shader.PropertyToID(ipname); }
//========================================================================= public EchoMaterialProperty(string ipname, Material imat, Vector4 ivec, ECHOPFXMATHS imath) { name = ipname; vec4Val = ivec; active = true; numType = 1; frameCount = 0; mathtOpt = imath; avgStart = 1.0f; vec4Val_hold = vec4Val; vec4Val_hold.x *= -1; propID = Shader.PropertyToID(ipname); }