提交 f8643db0 编写于 作者: J jim price

Remove unused channelDesc variable.

上级 f13448d4
......@@ -916,10 +916,6 @@ DiffuseAreaLight *DiffuseAreaLight::Create(const Transform &renderFromLight,
// radiance such that the user-defined power will be the actual power
// emitted by the light.
Float k_e = 1;
// we need to know which channels correspond to R, G and B
// we know that the channelDesc is valid as we would have exited in the
// block above otherwise
ImageChannelDesc channelDesc = image.GetChannelDesc({"R", "G", "B"});
if (image) {
// Get the appropriate luminance vector from the image colour space
RGB lum = imageColorSpace->LuminanceVector();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册