Search in sources :

Example 1 with Point2

use of org.sunflow.math.Point2 in project joons-renderer by joonhyublee.

the class ShadingState method init.

/**
 * Create objects needed for surface shading: point, normal, texture
 * coordinates and basis.
 */
public final void init() {
    p = new Point3();
    n = new Vector3();
    tex = new Point2();
    ng = new Vector3();
    basis = null;
}
Also used : Point3(org.sunflow.math.Point3) Point2(org.sunflow.math.Point2) Vector3(org.sunflow.math.Vector3)

Aggregations

Point2 (org.sunflow.math.Point2)1 Point3 (org.sunflow.math.Point3)1 Vector3 (org.sunflow.math.Vector3)1