public static TextureItemOut SetSpecular(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Specular) { textureItem.TextureTypeName = Specular; } return(SetInDictionary(textureItem, textures)); }
public static TextureItemOut SetDiffuse(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Diffuse) { textureItem.TextureTypeName = Diffuse; } return(SetInDictionary(textureItem, textures)); }
public static TextureItemOut SetBump(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Bump) { textureItem.TextureTypeName = Bump; } return(SetInDictionary(textureItem, textures)); }
public static TextureItemOut SetHeight(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Height) { textureItem.TextureTypeName = Height; } return(SetInDictionary(textureItem, textures)); }
public static TextureItemOut SetOpacity(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Opacity) { textureItem.TextureTypeName = Opacity; } return(SetInDictionary(textureItem, textures)); }
public static TextureItemOut SetEmissive(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Emissive) { textureItem.TextureTypeName = Emissive; } return(SetInDictionary(textureItem, textures)); }
public static TextureItemOut SetReflection(TextureItemOut textureItem, Dictionary <string, TextureItemOut> textures) { if (textureItem.TextureTypeName != Reflection) { textureItem.TextureTypeName = Reflection; } return(SetInDictionary(textureItem, textures)); }
private static TextureItemOut SetInDictionary(TextureItemOut textureItemOut, Dictionary <string, TextureItemOut> textures) { return(textures[textureItemOut.TextureTypeName] = textureItemOut); }