Пример #1
0
 private string ToCodeType(CustomValueType cvt)
 {
     if (cvt == CustomValueType.Sampler2D)
     {
         return("sampler2D");                // Uppercase D
     }
     if (cvt == CustomValueType.Matrix4x4)
     {
         return("float4x4");
     }
     return(cvt.ToString().ToLower());
 }
Пример #2
0
        private string ToCodeType(CustomValueType cvt)
        {
            if (cvt == CustomValueType.Sampler2D)
            {
                return("sampler2D");                // Uppercase D
            }
            if (cvt == CustomValueType.Matrix4x4)
            {
                return("float4x4");
            }
            if (cvt == CustomValueType.Texture2dArray)
            {
                Debug.LogError("here no modify");
                return("Texture2dArray");
            }

            return(cvt.ToString().ToLower());
        }