Search in sources :

Example 1 with Sphere

use of raytracer.objects.Sphere in project narchy by automenta.

the class BowlingScene method createEnvironment.

protected void createEnvironment() throws Exception {
    // Umgebungstextur hinzuf�gen:
    add(new Sphere(new Vector3d(0.0, -6.0, 0.0), 1000000.0, new TextureShader("texture/sky.jpg")));
    // Sonne hinzuf�gen:
    add(new SphereLight(new Vector3d(-25000.0, 100000.0, 50000.0), 2000.0, new ColorEx(10000000000.0f, 9200000000.0f, 7000000000.0f)));
}
Also used : Sphere(raytracer.objects.Sphere) SphereLight(raytracer.lights.SphereLight) Vector3d(javax.vecmath.Vector3d)

Aggregations

Vector3d (javax.vecmath.Vector3d)1 SphereLight (raytracer.lights.SphereLight)1 Sphere (raytracer.objects.Sphere)1