Package engine.base

Examples of engine.base.Vector3.normalize()


    return OutputType.SCALAR;
  }
 
  private final Vector4 _function(float du, float dv) {
    Vector3 n = new Vector3(du*strength.get(), dv*strength.get(), 1.0f);
    n.normalize();
   
    Vector4 c = new Vector4(n.x * 0.5f + 0.5f, n.y * 0.5f + 0.5f, n.z * 0.5f + 0.5f, 1.0f);
    return c;
  }
 
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.