Garry's Mod Wiki

Garry's Mod Wiki

  Vector ENTITY:GetShadowCastDirection( number type )

Description

Called when the shadow needs to be recomputed. Allows shadow angles to be customized. This only works for anim type entities.

Arguments

1 number type
Type of the shadow this entity uses. Possible values:
  • 0 - No shadow
  • 1 - Simple 'blob' shadow
  • 2 - Render To Texture shadow (updates only when necessary)
  • 3 - Dynamic RTT - updates always
  • 4 - Render to Depth Texture

Returns

1 Vector dir
The new shadow direction to use.

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...