Examples of Vector4


Examples of engine.base.Vector4

  }
 
  @Override
  public Vector4 valueRGBA(float u, float v) {
    Vector3 p = transform(u, v);
    Vector4 val = _valueRGBA(p.x, p.y);
    return val;
  }
View Full Code Here

Examples of engine.base.Vector4

    out.set(_function(caches[0].sample(localX, localY)));
  }
 
 
  protected float _value1f(float u, float v) {
    Vector4 val = valueRGBA(u, v);
    return (val.x+val.y+val.z)*(1.0f/3.0f);
  }
 
View Full Code Here

Examples of engine.base.Vector4

        return I;
    }
  }

  private final Vector4 _function(Vector4 in0, float u, float v) {
    Vector4 c = new Vector4(in0);
    if (onR.get()) c.x = apply(c.x);
    if (onG.get()) c.y = apply(c.y);
    if (onB.get()) c.z = apply(c.z);
    if (onA.get()) c.w = apply(c.w);
    return c;
View Full Code Here

Examples of engine.base.Vector4

    out.set(_function(caches[0].sample(localX, localY), u, v));
  }


  protected Vector4 _valueRGBA(float u, float v) {
    Vector4 c0 = inputChannels[0].valueRGBA(u, v);
    return _function(c0, u, v);
 
View Full Code Here

Examples of engine.base.Vector4

    else System.err.println("Invalid channel access in " + this);
    return OutputType.SCALAR;
  }
 
  private final Vector4 _function(Vector4 in0, float du, float dv) {
    Vector4 c = new Vector4(in0);
    Vector3 n = new Vector3(du*strength.get(), dv*strength.get(), 0.0f);
   
    float a = FMath.deg2rad(angle.get());
    Vector3 dir = new Vector3(FMath.cos(a),FMath.sin(a),0);
    float addValue = n.dot(dir);
View Full Code Here

Examples of engine.base.Vector4

    float dv = caches[1].sample_dv(localX, localY).XYZto1f() * strength.get(); //inputChannels[1].dv1f(u, v).XYZto1f() * strength.get();
    out.set(inputChannels[0].valueRGBA(u+du, v+dv));
  }
 
  protected float _value1f(float u, float v) {
    Vector4 val = valueRGBA(u, v);
    return (val.x+val.y+val.z)*(1.0f/3.0f);
  }
 
View Full Code Here

Examples of engine.base.Vector4

  protected Vector4 _valueRGBA(float u, float v) {
   
    float du = inputChannels[1].du1f(u, v).XYZto1f() * strength.get();
    float dv = inputChannels[1].dv1f(u, v).XYZto1f() * strength.get();
   
    Vector4 c = inputChannels[0].valueRGBA(u+du, v+dv);

    return c;
  }
View Full Code Here

Examples of engine.base.Vector4

    _function(out, caches[0].sample(localX, localY), caches[1].sample(localX, localY), caches[2].sample(localX, localY));
  }
   
 
  protected float _value1f(float u, float v) {
    Vector4 val = valueRGBA(u, v);
    return (val.x+val.y+val.z)*(1.0f/3.0f);
  }
 
View Full Code Here

Examples of engine.base.Vector4

    Vector4 val = valueRGBA(u, v);
    return (val.x+val.y+val.z)*(1.0f/3.0f);
  }
 
  protected Vector4 _valueRGBA(float u, float v) {
    Vector4 c0 = inputChannels[0].valueRGBA(u, v);
    Vector4 c1 = inputChannels[1].valueRGBA(u, v);
    Vector4 c2 = inputChannels[2].valueRGBA(u, v);
    Vector4 ret = new Vector4();

    _function(ret, c0, c1, c2);
   
    return ret;
  }
View Full Code Here

Examples of engine.base.Vector4

    for (int sj = -border; sj <= 0; sj++) {
      for (int si = -border; si <= border; si++) {
        if ((sj == 0) && (si == 0))
          break;
        int tcolor = sampleTarget(x + si, y + sj);
        Vector4 color = Utils.RGBAToVector4(tcolor);
        p.set(num++, color.x);
        p.set(num++, color.y);
        p.set(num++, color.z);
      }
    }
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.