Ejemplo n.º 1
0
        ///<summary>
        /// Computes the interaction properties between two materials.
        ///</summary>
        ///<param name="materialA">First material of the pair.</param>
        ///<param name="materialB">Second material of the pair.</param>
        ///<param name="properties">Interaction properties between two materials.</param>
        public static void GetInteractionProperties(Material materialA, Material materialB, out InteractionProperties properties)
        {
            MaterialBlender specialBlender;

            if (MaterialInteractions.TryGetValue(new MaterialPair(materialA, materialB), out specialBlender))
            {
                specialBlender(materialA, materialB, out properties);
            }
            else
            {
                MaterialBlender(materialA, materialB, out properties);
            }
        }