Пример #1
0
 public GAFBakedObjectImpl(
     IGAFObjectSerializedProperties _Data
     , GAFRenderProcessor _Processor
     , GAFBakedObjectController _Controller)
     : base(_Data, _Processor.renderer, _Processor.filter)
 {
     m_RenderProcessor = _Processor;
     m_Controller      = _Controller;
 }
Пример #2
0
        public GAFBakedObjectImpl(
			  IGAFObjectSerializedProperties	_Data
			, GAFRenderProcessor				_Processor
			, GAFBakedObjectController			_Controller)
            : base(_Data, _Processor.renderer, _Processor.filter)
        {
            m_RenderProcessor	= _Processor;
            m_Controller		= _Controller;
        }
Пример #3
0
        public IGAFObjectImpl(
			  IGAFObjectSerializedProperties	_Data
			, Renderer							_Renderer
			, MeshFilter						_Filter)
        {
            m_Data		= _Data;
            m_Renderer	= _Renderer;
            m_Filter	= _Filter;

            initializeBaseData();
        }
Пример #4
0
        public IGAFObjectImpl(
            IGAFObjectSerializedProperties _Data
            , Renderer _Renderer
            , MeshFilter _Filter)
        {
            m_Data     = _Data;
            m_Renderer = _Renderer;
            m_Filter   = _Filter;

            initializeBaseData();
        }
        public GAFBakedMaskedObjectImpl(
			  Material							_MaskedMaterial
			, IGAFObjectSerializedProperties	_Data
			, GAFRenderProcessor				_Processor
			, GAFBakedObjectController			_Controller)
            : base(_Data, _Processor, _Controller)
        {
            m_MaskedMaterial = _MaskedMaterial;

            var clip = serializedProperties.clip;
            m_SharedMaterial = clip.getSharedMaterial(System.IO.Path.GetFileNameWithoutExtension(texturesData.getFileName(clip.settings.csf)));
        }
        public GAFBakedMaskedObjectImpl(
			  IGAFObjectSerializedProperties	_Data
			, GAFRenderProcessor				_Processor
			, GAFBakedObjectController			_Controller)
            : base(_Data, _Processor, _Controller)
        {
            m_MaskedMaterial = new Material(Shader.Find("GAF/GAFMaskedObject"));
            m_MaskedMaterial.mainTexture = texture;
            m_MaskedMaterial.renderQueue = 3000;

            var clip = serializedProperties.clip;
            m_SharedMaterial = clip.getSharedMaterial(System.IO.Path.GetFileNameWithoutExtension(texturesData.getFileName(clip.settings.csf)));
        }
Пример #7
0
        public GAFBakedMaskedObjectImpl(
            Material _MaskedMaterial
            , IGAFObjectSerializedProperties _Data
            , GAFRenderProcessor _Processor
            , GAFBakedObjectController _Controller)
            : base(_Data, _Processor, _Controller)
        {
            m_MaskedMaterial = _MaskedMaterial;

            var clip = serializedProperties.clip;

            m_SharedMaterial = clip.getSharedMaterial(System.IO.Path.GetFileNameWithoutExtension(texturesData.getFileName(clip.settings.csf)));
        }
Пример #8
0
        public GAFBakedMaskedObjectImpl(
            IGAFObjectSerializedProperties _Data
            , GAFRenderProcessor _Processor
            , GAFBakedObjectController _Controller)
            : base(_Data, _Processor, _Controller)
        {
            m_MaskedMaterial             = new Material(Shader.Find("GAF/GAFMaskedObject"));
            m_MaskedMaterial.mainTexture = texture;
            m_MaskedMaterial.renderQueue = 3000;

            var clip = serializedProperties.clip;

            m_SharedMaterial = clip.getSharedMaterial(System.IO.Path.GetFileNameWithoutExtension(texturesData.getFileName(clip.settings.csf)));
        }
Пример #9
0
        public GAFBakedMaskObjectImpl(
            IGAFObjectSerializedProperties _Data
            , GAFRenderProcessor _Processor
            , GAFBakedObjectController _Controller)
            : base(_Data, _Processor, _Controller)
        {
            m_MaskMaterial             = new Material(Shader.Find("GAF/GAFMaskObject"));
            m_MaskMaterial.mainTexture = texture;
            m_MaskMaterial.renderQueue = 3000;

            m_StencilID = GAFStencilMaskManager.registerMask(serializedProperties.clip.GetInstanceID(), serializedProperties.objectID, this);
            m_MaskMaterial.SetFloat("_StencilID", m_StencilID);

            material = m_MaskMaterial;
        }
        public GAFBakedMaskObjectImpl(
			  IGAFObjectSerializedProperties	_Data
			, GAFRenderProcessor				_Processor
			, GAFBakedObjectController			_Controller)
            : base(_Data, _Processor, _Controller)
        {
            m_MaskMaterial = new Material(Shader.Find("GAF/GAFMaskObject"));
            m_MaskMaterial.mainTexture = texture;
            m_MaskMaterial.renderQueue = 3000;

            m_StencilID = GAFStencilMaskManager.registerMask(serializedProperties.clip.GetInstanceID(), serializedProperties.objectID, this);
            m_MaskMaterial.SetFloat("_StencilID", m_StencilID);

            material = m_MaskMaterial;
        }