Prettified a comment
This commit is contained in:
parent
bf705a63de
commit
7f6239f849
|
|
@ -1062,12 +1062,11 @@ RMAPI int Vector3Equals(Vector3 p, Vector3 q)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute the direction of a refracted ray where v specifies the
|
// Compute the direction of a refracted ray
|
||||||
// normalized direction of the incoming ray, n specifies the
|
// v: normalized direction of the incoming ray
|
||||||
// normalized normal vector of the interface of two optical media,
|
// n: normalized normal vector of the interface of two optical media
|
||||||
// and r specifies the ratio of the refractive index of the medium
|
// r: ratio of the refractive index of the medium from where the ray comes
|
||||||
// from where the ray comes to the refractive index of the medium
|
// to the refractive index of the medium on the other side of the surface
|
||||||
// on the other side of the surface
|
|
||||||
RMAPI Vector3 Vector3Refract(Vector3 v, Vector3 n, float r)
|
RMAPI Vector3 Vector3Refract(Vector3 v, Vector3 n, float r)
|
||||||
{
|
{
|
||||||
Vector3 result = { 0 };
|
Vector3 result = { 0 };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user