Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

allow AddonMaterial() to take material parameters like Material() does #2342

Closed mgetJane closed 2 months ago

mgetJane commented 3 months ago

i want to have it generate a texture without mipmaps

mgetJane commented 3 months ago

actually, it seems like the only reason AddonMaterial() even exists is to load image files with the .cache file extension because Material() doesn't let you do that for whatever reason

Material() also doesn't allow the .jpeg, .gif, and .tga extensions even though JPEG, GIF, and TGA files will be loaded fine if you rename them to have the .png or .jpg extension

wouldn't it be better to just add .cache, .jpeg, .gif, and .tga to the allowed file extensions for Material()? (i guess maybe mark AddonMaterial() as deprecated in that case since it'd end up being an inferior version of Material())

robotboy655 commented 2 months ago

I opted to make Material() accept .cache files.