protected void SetVariables(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     variables[VariableNames.X]      = x.ValueWorld;
     variables[VariableNames.Y]      = y.ValueWorld;
     variables[VariableNames.Z]      = z.ValueWorld;
     variables[VariableNames.XLocal] = x.ValueLocal;
     variables[VariableNames.YLocal] = y.ValueLocal;
     variables[VariableNames.ZLocal] = z.ValueLocal;
 }
Example #2
0
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return(SimplexNoise.Evaulate(x.ValueWorld, 0f, 0f));
 }
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return(Mathf.PerlinNoise((x.ValueWorld + y.ValueWorld), x.ValueWorld));
 }
Example #4
0
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return(Evaluate(new Vector3(x.ValueWorld, y.ValueWorld, z.ValueWorld)));
 }
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return(0f);
 }
Example #6
0
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return((-y.ValueWorld) + SimplexNoise.Evaulate(x.ValueWorld, y.ValueWorld, z.ValueWorld));
 }
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return((-y.ValueWorld) + Mathf.PerlinNoise(x.ValueWorld, z.ValueWorld));
 }
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     SetVariables(x, y, z);
     return(RootNode.Evaluate());
 }
 public float Evaluate(SamplePointVariables x, SamplePointVariables y, SamplePointVariables z)
 {
     return(Mathf.PI + Mathf.PI);
 }