IMaterial:SetTexture
Description
Sets the specified material texture to the specified texture, does nothing on a type mismatch.
Arguments
Example
Example usage of this function.
local blur_mat = Material( "pp/bokehblur" )
blur_mat:SetTexture( "$basetexture", render.GetScreenEffectTexture() )
Example
Equivalent of Example 1, demonstrating the use of a texture's name.
local blur_mat = Material( "pp/bokehblur" )
blur_mat:SetTexture( "$basetexture", "_rt_fullframefb" )