C# Class Vector.RayTracing.Renderer

Afficher le fichier Open project: sinclairzx81/vector-cs Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public getPoint ( int screenWidth, int screenHeight, int x, int y, Camera camera ) : Vector3
screenWidth int
screenHeight int
x int
y int
camera Camera
Résultat Vector3

render() public méthode

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