Garry's Mod Wiki

render.BindLocalCubemap

  render.BindLocalCubemap( string texName )

Recently Added

This was recently added in version (2026.08.26). It might only be available on the Dev Branch right now.

Description

Binds a given texture as a cubemap. The texture given must be a cubemap texture.

This is useful in context of drawing models manually (Entity:DrawModel), especially in GUI applications.

This is a rendering function that requires a 3d rendering context.

This means that it will only work in 3d Rendering Hooks.

Arguments

1 string texName
The path to the texture (.vtf) to use, e.g. editor/cubemap.

The function will automatically select the .hdr version of the texture based on player's current settings.