예제 #1
0
 public static RGBSpectrum Mul(RGBSpectrum left, RGBSpectrum right)
 {
     return(new RGBSpectrum(left.R * right.R, left.G * right.G, left.B * right.B));
 }
예제 #2
0
 public static RGBSpectrum Div(RGBSpectrum left, Float right)
 {
     return(new RGBSpectrum(left.R / right, left.G / right, left.B / right));
 }
예제 #3
0
 public static RGBSpectrum Mul(RGBSpectrum left, Float right)
 {
     return(new RGBSpectrum(left.R * right, left.G * right, left.B * right));
 }
예제 #4
0
 public static RGBSpectrum Sub(RGBSpectrum left, RGBSpectrum right)
 {
     return(new RGBSpectrum(left.R - right.R, left.G - right.G, left.B - right.B));
 }
예제 #5
0
 public static RGBSpectrum Add(RGBSpectrum left, RGBSpectrum right)
 {
     return(new RGBSpectrum(left.R + right.R, left.G + right.G, left.B + right.B));
 }
예제 #6
0
 public static RGBSpectrum Lerp(RGBSpectrum l, RGBSpectrum r, Float lPower)
 {
     return(l * lPower + r * (1.0f - lPower));
 }
예제 #7
0
 public static XYZSpectrum FromRGB(RGBSpectrum rgb)
 {
     return(SpectrumTools.RGBToXYZ(rgb));
 }