示例#1
0
        protected override void OnEnable()
        {
            //Initialize our property groups
            if (albedo == null)
            {
                albedo = new AlbedoPropertyGroup(this);
            }
            if (specular == null)
            {
                specular = new SpecularPropertyGroup(this);
            }
            if (normal == null)
            {
                normal = new NormalPropertyGroup(this);
            }
            if (emissive == null)
            {
                emissive = new EmissivePropertyGroup(this);
            }

            base.OnEnable();
        }
示例#2
0
        protected override void OnEnable()
        {
            //Initialize our property groups
            if (albedo == null)
            {
                albedo = new AlbedoPropertyGroup(this);
            }
            if (metallic == null)
            {
                metallic = new MetallicPropertyGroup(this);
            }
            if (normal == null)
            {
                normal = new NormalPropertyGroup(this);
            }
            if (emissive == null)
            {
                emissive = new EmissivePropertyGroup(this);
            }

            base.OnEnable();
        }