- Home /
Question by
diegzumillo · Aug 03, 2012 at 01:47 AM ·
colortrace
Obtain color value from trace
Suppose there is a completely lit scene with textured objects. Is there a way to make a ray trace and return the color of the hit object? taking light into consideration.
Comment
Answer by DaveA · Aug 03, 2012 at 01:49 AM
First things that come to mind:
Use the 'hit' info and some color math to reconstruct it. Probably not too good.
Render to texture, sample the texture.
Yeah, I was thinking about using the UV hit info (it also gives the lightmap UV) but it's probably not a light operation. I don't have access to render to texture with the free version :(