Package engine.base

Examples of engine.base.Vector3.dot()


    Vector3 lightDir = new Vector3();
    lightDir.setDir(theta.get() * (FMath.PI / 180.0f), phi.get() * (FMath.PI / 180.0f));

    Vector3 reflect = (new Vector3(0, 0, -1)).reflect(normalmap.getVector3());

    float ar = reflect.dot(lightDir);
    if (ar < 0)
      ar = 0;
    ar = FMath.pow(ar, shininess.get());

    in0.add_ip(ar);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.