Jump to content
Sign in to follow this  
Wolfwood

Fresnel return of Sidefx.com

Recommended Posts

Two little questions.

1. Is Sidefx.com down? Or is my ISP being ultra lame?

2. The VEX reference doc's say this,

vector fresnel( vector i, n; float eta; float &kr, &kt)

vector fresnel( vector i, n; float eta; float &kr, &kt; vector &R, &T)

Computes the fresnel reflection/refraction contributions given an incoming vector, surface normal (both normalized), and an index of refraction (eta). The amount of reflected light will be returned in Kr, and the amount of transmitted light will be returned in Kt. Optionally, the reflection and transmission vectors can be returned in the R and T variables. The R & T variables will be normalized vectors on exit.

The "vector fresnel...." implies it returns a vector. Shouldn't it be void?

jim.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×