Jump to content

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...