Garry's Mod Wiki

ENTITY:GetShadowCastDirection

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.

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 13