Example #1
0
        public override bool Calculate()
        {
            if (!allInputsReady())
            {
                return(false);
            }



            if (m_Input == null)
            {
                return(false);
            }
            if (m_Param == null)
            {
                m_Param = new TextureParam(m_TexWidth, m_TexHeight);
            }

            m_Param.SetTex(m_Input);

            m_Cached = m_Param.GetHWSourceTexture();

            Outputs[0].SetValue <TextureParam> (m_Param);
            return(true);
        }