Package MeatEngine :: Package RayTrace :: Module test
[hide private]
[frames] | no frames]

Module test

source code

Functions [hide private]
 
trace(base, frameNum) source code
Variables [hide private]
  verts = [vector.Vec3f(-1.0,-1.0,-1.0), vector.Vec3f(-1.0,-1.0,...
  tris = [(2, 0, 1), (1, 3, 2), (6, 4, 0), (0, 2, 6), (6, 2, 3),...
  colors = [(240, 0, 0), (240, 0, 0), (0, 240, 0), (0, 240, 0), ...
  TOT_FRAMES = 150
  WIDTH = 400
  HEIGHT = 200
  FOV = 0.872664625997
  NEAR = 0.5
  LIGHT_DIR = vector.Vec3f(-0.5,-0.5,-1.0).norm()
  dirLight = <MeatEngine.RayTrace.light.DirectionalLight instanc...
  AMBIENT = 0.25
  LIGHT_VAL = 0.75
Variables Details [hide private]

verts

Value:
[vector.Vec3f(-1.0,-1.0,-1.0), vector.Vec3f(-1.0,-1.0, 1.0), vector.Ve\
c3f(-1.0, 1.0,-1.0), vector.Vec3f(-1.0, 1.0, 1.0), vector.Vec3f(1.0,-1\
.0,-1.0), vector.Vec3f(1.0,-1.0, 1.0), vector.Vec3f(1.0, 1.0,-1.0), ve\
ctor.Vec3f(1.0, 1.0, 1.0), vector.Vec3f(-1.0, 3.0,-1.0), vector.Vec3f(\
-1.0, 5.0,-1.0), vector.Vec3f(0.73, 4.0,-1.0), vector.Vec3f(-.42, 4.0,\
 0.63), vector.Vec3f(-5.5,-5.5,-1.0), vector.Vec3f(-5.5, 5.5,-1.0), ve\
ctor.Vec3f(5.5,-5.5,-1.0), vector.Vec3f(5.5, 5.5,-1.0),]

tris

Value:
[(2, 0, 1),
 (1, 3, 2),
 (6, 4, 0),
 (0, 2, 6),
 (6, 2, 3),
 (3, 7, 6),
 (5, 4, 6),
 (6, 7, 5),
...

colors

Value:
[(240, 0, 0),
 (240, 0, 0),
 (0, 240, 0),
 (0, 240, 0),
 (0, 0, 240),
 (0, 0, 240),
 (180, 180, 0),
 (180, 180, 0),
...

dirLight

Value:
light.DirectionalLight(LIGHT_DIR, (1.0, 1.0, 1.0))