Exemple #1
0
        public Object3d(ShadowScientrace.ShadowObject3d aShadowObject)
        {
            //Console.WriteLine("adding shadowobject to parent: "+aShadowObject.parent.tag+" and material" +aShadowObject.materialprops);
            this.setDefaults(aShadowObject.parent, aShadowObject.materialprops);

            //if tag is set for this object, pass it on to Object3D instance
            if (aShadowObject.hasTag())
            {
                this.tag = aShadowObject.tag;
            }
            //same for parseorder
            if (aShadowObject.hasParseOrder())
            {
                this.parseOrder = (double)aShadowObject.parseorder;
            }
        }