Reflection and Refraction + Fresnel

I had a hard time this week trying to get the shading to work properly. The problem ended up being a bug with an unrelated part of the renderer. I had forgotten to transform the points back to their original places after applying the inverse transform for instanced primitives,  resulting in all sorts of strange images when rendering refraction and reflection.

render-reflectionrender-refraction-1.33eta

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s