static void Player_SetupPlacementGhost_Postfix(GameObject ___m_placementGhost) { PlanPiece.m_forceDisableInit = false; if (___m_placementGhost != null && configTransparentGhostPlacement.Value) { ShaderHelper.UpdateTextures(___m_placementGhost, ShaderState.Supported); } }
public static void UpdateAllPlanPieceTextures() { if (showRealTextures && Player.m_localPlayer.m_placementGhost && Player.m_localPlayer.m_placementGhost.name.StartsWith(Blueprint.BlueprintPrefabName)) { ShaderHelper.UpdateTextures(Player.m_localPlayer.m_placementGhost, ShaderHelper.ShaderState.Skuld); } foreach (PlanPiece planPiece in Object.FindObjectsOfType <PlanPiece>()) { planPiece.UpdateTextures(); } }
public void PrefabCreated() { prefab = ItemDrop.m_itemData.m_dropPrefab; ShaderHelper.UpdateTextures(prefab, ShaderHelper.ShaderState.Supported); }
internal void UpdateTextures() { ShaderHelper.UpdateTextures(gameObject, GetShaderState()); }