Esempio n. 1
0
 private static Vector3 Profile(float r, Color falloffColor)
 {
     return(((((0.1f * SeparableSSS.Gaussian(0.0484f, r, falloffColor)) + (0.118f * SeparableSSS.Gaussian(0.187f, r, falloffColor))) + (0.113f * SeparableSSS.Gaussian(0.567f, r, falloffColor))) + (0.358f * SeparableSSS.Gaussian(1.99f, r, falloffColor))) + (0.078f * SeparableSSS.Gaussian(7.41f, r, falloffColor)));
 }
Esempio n. 2
0
 private static Vector3 Profile(float r, Color falloffColor)
 {
     return(Vector3.op_Addition(Vector3.op_Addition(Vector3.op_Addition(Vector3.op_Addition(Vector3.op_Multiply(0.1f, SeparableSSS.Gaussian(0.0484f, r, falloffColor)), Vector3.op_Multiply(0.118f, SeparableSSS.Gaussian(0.187f, r, falloffColor))), Vector3.op_Multiply(0.113f, SeparableSSS.Gaussian(0.567f, r, falloffColor))), Vector3.op_Multiply(0.358f, SeparableSSS.Gaussian(1.99f, r, falloffColor))), Vector3.op_Multiply(0.078f, SeparableSSS.Gaussian(7.41f, r, falloffColor))));
 }