예제 #1
0
 public void SampleTexture(float u, float v, ITexture texture, out RgbSpectrumInfo sample)
 {
     if (texture is RgbSpectrumTexture)
     {
         this.sampler.Sample(u, v, texture, out sample);
     }
     else
     {
         sample = texture.Sample(u, v);
     }
 }