"Raytraced primitives in unity3d (part 2): lit sphere"
Posted on 2016-03-25 in shaders • Tagged with unity3d, shaders, raytracing
So. Here's what I got at the moment:
It is the next iteration of shader from before. Here's the mesh geometry of this object:
So, good news:
I got lighting. Attenuation isn't suported (yet), but it interacts with unity's point and directional lights, reads their colors, and also grabs ambient …
Continue reading