How do you take the result of a spec shader and put it into a surface shader?

Say I have a reflective black vray material and a spec light. How do I take the “result” of this and throw it into a surface shader or ramp? You could do this with mental ray, but I can’t figure out how to do it with vray…

Basically I want to take my broad spec pass, and use the different levels of black and white in it to reveal certain textures…without utilizing any compositing. (mid-grey will reveal one texture, black will reveal another type, white will reveal another…etc..) I can do this with a ramp but I can’t figure out how to get the result of the spec into the ramp.

edit: well nevermind…ended up just using the spec in a ramp shader

Yeah don’t think VRay allows shaders to be plugged into shaders directly, but perhaps try VRayBlendMtl.

Unfortunately V-Ray doesn’t allow connecting one shader to another.
You may try to create a similar setup with surfaceLuminance node plugged into RampTexture and use this texture as a mask in VrayBlendMtl.

Perhaps you could plug the texture into a remap HSV node. Then you could make your adjustments with the value graph and plug the resulting value into the mask of a vray blend material. You could theortically do as many of these as you wanted, with different levels on each one.

You can also use a blendColor node for this but it only has two inputs.