house keeping of EffectEngine class
simplify setRenderColorTargetFromScriptState and fixed bugs by it