Garry's Mod Wiki

ProjectedTexture:SetShadowSlopeScaleDepthBias

  ProjectedTexture:SetShadowSlopeScaleDepthBias( number bias )

Description

Sets the shadow depth slope scale bias of the projected texture.

The initial value is 2. Normal projected textures obey the value of the mat_slopescaledepthbias_shadowmap ConVar.

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

Arguments

1 number bias
The shadow depth slope scale bias to set.