Use Ray-Traced Textures in V-Ray for SketchUp to get scene data for compositing.
Overview
Ray-Traced Textures provide scene data for compositing, including specific distances and ratios.

Select a Ray-Traced Texture to activate the Replace With New Texture () button. Use it to replace the texture with another Ray-Traced Texture or any other type of V-Ray texture. If the texture is an instance, this also changes all copies.

Curvature
View

Dirt
View

Edges
View

Falloff
View

Fresnel
View

Distance
View

Strand Sampler
View