C# Class Vector.RayTracing.Renderer

Mostra file Open project: sinclairzx81/vector-cs Class Usage Examples

Public Methods

Method Description
getPoint ( int screenWidth, int screenHeight, int x, int y, Camera camera ) : Vector3
render ( Scene scene, Device device, int screenWidth, int screenHeight ) : void

Private Methods

Method Description
getNaturalColor ( Object3D thing, Vector3 pos, Vector3 norm, Vector3 rd, Scene scene ) : Color
getReflectionColor ( Object3D thing, Vector3 pos, Vector3 normal, Vector3 rd, Scene scene, int depth ) : Color
intersections ( Ray ray, Scene scene ) : Intersection
shade ( Intersection isect, Scene scene, int depth ) : Color
testRay ( Ray ray, Scene scene ) : float?
traceRay ( Ray ray, Scene scene, int depth ) : Color

Method Details

getPoint() public method

public getPoint ( int screenWidth, int screenHeight, int x, int y, Camera camera ) : Vector3
screenWidth int
screenHeight int
x int
y int
camera Camera
return Vector3

render() public method

public render ( Scene scene, Device device, int screenWidth, int screenHeight ) : void
scene Scene
device Vector.Gdi.Device
screenWidth int
screenHeight int
return void