Exemplo n.º 1
0
        protected override void OnEnable()
        {
            //Initialize our property groups
            if (normal == null)
            {
                normal = new NormalPropertyGroup(this);
            }

            base.OnEnable();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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();
        }