Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.material.createFromImage

C๐Ÿท๏ธ Material

Part of StarfallEx namespace

๐Ÿ”— External
material.createFromImage(path, params)
View on GitHub|lua/starfall/libs_cl/material.lua:373
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Creates a .jpg or .png material from file Can't be modified

Parameters

NameTypeDescription
pathstringThe path to the image file, must be a jpg or png image
paramsstringThe shader parameters to apply to the material. See https://wiki.facepunch.com/gmod/Material_Parameters

Returns

TypeDescription
MaterialThe Material created.

Examples

No examples available.

Used In

No usages found in the codebase.