Very little to none. This answer might surprise you, but at least one Texas case is directly on point. That reasoning is that if the child does not see it and is not exposed to it, the child is not affected by it, and that argument supports even to what may amount to distasteful or deviant sexual practices by a parent. For an interesting read and case on point, click on Wolfe v. Wolfe, below.
If you think the actions of a spouse ARE affecting your children, please consult with your attorney and see if they can better bring this side of the case to light for the Judge.