Garry's Mod Wiki

ProjectedTexture:SetShadowDepthBias

  ProjectedTexture:SetShadowDepthBias( number bias )

Description

Sets the shadow depth bias of the projected texture.

The initial value is 0.0001. Normal projected textures obey the value of the mat_depthbias_shadowmap ConVar.

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

Arguments

1 number bias
The shadow depth bias to set.