render/SetLightmapTexture

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(I guess this was supposed to be 3D.)
Line 2: Line 2:
 
|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.
 
|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.
  
{{RenderingContext|Function}}
+
{{RenderingContext|Function|3D}}
 
|Realm=Client
 
|Realm=Client
 
|IsClass=No
 
|IsClass=No

Revision as of 14:16, 4 September 2016

 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.

Arguments

ITexture tex

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