Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members | File Members

isphere_frag.cg File Reference

#include "isphere_structs.cg"
#include "iutil.cg"
#include "isphere_phong.cg"

Functions

float intersectSphere (in float3 ray, float4 sphere)
 Perform ray - sphere intersection.
FragOut main (Vert2Frag v2f, uniform float4x4 ProjMatrix, uniform float4 lightPos, uniform PhongMaterial material)
 Fragment Shader Main.

Detailed Description


Function Documentation

float intersectSphere in float3  ray,
float4  sphere
 

Perform ray - sphere intersection.

Parameters:
ray ray direction
sphere sphere parameter (x,y,z = origin, w = radius)
Note:
After Glassner, pp. 36


Generated on Sat Dec 31 18:07:49 2005 for ICaster by  doxygen 1.4.4