Garry's Mod Wiki

Garry's Mod Wiki

  ProjectedTexture:SetEnableShadows( boolean newState )

Description

Enable or disable shadows cast from the projected texture.

As with all types of projected textures (including the player's flashlight and env_projectedtexture), there can only be 8 projected textures with shadows enabled in total.

This limit can be increased with the launch parameter -numshadowtextures LIMIT where LIMIT is the new limit.

Naturally, many projected lights with shadows enabled will drastically decrease framerate.

You must call ProjectedTexture:Update after using this function for it to take effect.

Arguments

1 boolean newState

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...