Examples of multComp_ip()


Examples of engine.base.Vector4.multComp_ip()

   
    // apply the blending function without alpha:
    if (func == 0) { // normal
      // do nothing
    } else if (func == 1) { // Multiply
      color.multComp_ip(c0);
    } else if (func == 2) { // Divide
      color.multComp_ip(1/(c0.x + 1), 1/(c0.y + 1), 1/(c0.z + 1), 1);
    } else if (func == 3) { // Screen
      color.set(1-(1-c0.x)*(1-c1.x), 1-(1-c0.y)*(1-c1.y), 1-(1-c0.z)*(1-c1.z), 1);
    } else if (func == 4) { // Overlay
View Full Code Here

Examples of engine.base.Vector4.multComp_ip()

    if (func == 0) { // normal
      // do nothing
    } else if (func == 1) { // Multiply
      color.multComp_ip(c0);
    } else if (func == 2) { // Divide
      color.multComp_ip(1/(c0.x + 1), 1/(c0.y + 1), 1/(c0.z + 1), 1);
    } else if (func == 3) { // Screen
      color.set(1-(1-c0.x)*(1-c1.x), 1-(1-c0.y)*(1-c1.y), 1-(1-c0.z)*(1-c1.z), 1);
    } else if (func == 4) { // Overlay
      color.set(c0.x*(c0.x + 2*(c1.x)*(1-c0.x)), c0.y*(c0.y + 2*(c1.y)*(1-c0.y)), c0.z*(c0.z + 2*(c1.z)*(1-c0.z)), 1);
    } else if (func == 5) { // Dodge
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.