render.SetLightmapTexture

From Garry's Mod
Jump to: navigation, search
 render.SetLightmapTexture( )

Description

Sets the texture to be used as the lightmap in upcoming rendering operations. This is required when rendering meshes using a material with a lightmapped shader such as LightmappedGeneric.

NOTE This is a rendering function that requires a 3D rendering context.
This means that it will only work in hooks with a 3D rendering context.
NOTE This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Arguments

ITexture tex

The texture to be used as the lightmap.
Personal tools
Navigation