コード例 #1
0
ファイル: MitsubaType.cs プロジェクト: OstZ/mitsubarender
        /// <summary>
        ///   This method returns the hexadecimal representation (with # in the begin) of the color (spectrum) property.
        /// </summary>
        /// <returns>A hexadecimal representation without alpha channel.</returns>
        public string GetColorHex()
        {
            if (FirstParameter != null && FirstParameter.GetType() == typeof(Color4f))
            {
                return(MitsubaMaterial.GetColorHex((Color4f)(object)FirstParameter));
            }

            return(null);
        }