function needsDoublePass( material ) {

	const hasTransmission = material.transmission > 0 || material.transmissionNode;

	return hasTransmission && material.side === DoubleSide && material.forceSinglePass === false;

}
Returns `true` if the given transparent material requires a double pass.

@private
@function
@param {Material} material - The transparent material.
@return {boolean} Whether the given material requires a double pass or not.