示例#1
0
 private void handleLightTags(string key, CompletionParam data)
 {
     if (ShaderConst.m_dFuncInfo.ContainsKey(key))
     {
         data.m_sdistext = ShaderConst.getLightingInfo(key)[0];
         data.m_scomtext = ShaderConst.getLightingInfo(key)[0];
     }
 }
示例#2
0
 private void handleInputTags(string key, CompletionParam data)
 {
     foreach (var item in ShaderConst.m_dInerDefaultStruct.Keys)
     {
         if (item.Equals(key))
         {
             data.m_sdistext = key;
             data.m_scomtext = ShaderConst.getInputInfo(key);
             break;
         }
     }
 }
示例#3
0
 private void handleSubTags(string key, CompletionParam data)
 {
     if (ShaderConst.m_dlSubShaderTagsInfo.ContainsKey(key))
     {
         data.m_sdistext = key;
         data.m_scomtext = key;
         List <string> desc = ShaderConst.getSubTagInfo(key);
         for (int i = 0; i < desc.Count; i++)
         {
             data.m_sdesc += desc[i] + "/";
         }
     }
 }
示例#4
0
 private void handlePropertiesTags(string key, CompletionParam data)
 {
     foreach (var item in ShaderConst.m_dPropertiesInfo.Keys)
     {
         if (item.Equals(key))
         {
             data.m_sdistext = key;
             data.m_scomtext = key;
             data.m_sdesc    = ShaderConst.getPropertiesInfo(key);
             break;
         }
     }
 }