PDA

View Full Version : Shader: Sampling color on different object


Marcel
08-17-2003, 08:27 PM
Does anyone know if it would be possible to create a shader that copies the 'shadow value' on another object (at the same UV position)?

I want to use this to fake refraction on an eye material.
What it should do is this:

- get UV coordinate from the pixel from object A
- sample the brightness on the corresponding pixel on object B.
- apply this brightness to the pixel on object A.

Basically this would allow me to steal the shadows from a normal object and apply it to a deformed object (faking distortion of the refraction).

I already have a fake raytraced reflection for my eye, together with a fake refraction it would be a superfast setup!

CGTalk Moderation
01-15-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.