Skip to content

Add Material:downloadTexture - #2465

Merged
thegrb93 merged 2 commits into
thegrb93:masterfrom
StyledStrike:add-material-download-texture
Oct 3, 2026
Merged

thegrb93 merged 2 commits into
thegrb93:masterfrom
StyledStrike:add-material-download-texture

Conversation

@StyledStrike

Copy link
Copy Markdown
Contributor

This is a bind for ITexture:Download(), to reload textures from disk (useful if you're overriding texture files with file.writeTemp for example).

It expects a material key name for a texture, like so:

myMaterial:downloadTexture( "$basetexture" )

Comment thread lua/starfall/libs_cl/material.lua Outdated
Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
@thegrb93
thegrb93 merged commit dfc02a8 into thegrb93:master Oct 3, 2026
1 check passed
github-actions Bot added a commit that referenced this pull request Oct 3, 2026
* Add Material:downloadTexture

* Apply suggestion to Material:downloadTexture dfc02a8
@StyledStrike
StyledStrike deleted the add-material-download-texture branch October 3, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants