forked from blender/blender
Need to do the same light power as Cycles in Watts for Hydra RPR #34
@ -50,6 +50,7 @@ void LightData::init()
|
||||
data_[pxr::UsdLuxTokens->inputsShapingConeAngle] = light->spotsize / 2.0f * 180.0f / float(M_PI);
|
||||
data_[pxr::UsdLuxTokens->inputsShapingConeSoftness] = light->spotblend;
|
||||
data_[pxr::UsdLuxTokens->treatAsPoint] = true;
|
||||
intensity /= 10.0f;
|
||||
break;
|
||||
|
||||
case LA_AREA:
|
||||
@ -57,20 +58,22 @@ void LightData::init()
|
||||
case LA_AREA_SQUARE:
|
||||
data_[pxr::HdLightTokens->width] = light->area_size;
|
||||
data_[pxr::HdLightTokens->height] = light->area_size;
|
||||
intensity /= 4.0f;
|
||||
break;
|
||||
case LA_AREA_RECT:
|
||||
data_[pxr::HdLightTokens->width] = light->area_size;
|
||||
data_[pxr::HdLightTokens->height] = light->area_sizey;
|
||||
intensity /= 4.0f;
|
||||
break;
|
||||
|
||||
case LA_AREA_DISK:
|
||||
data_[pxr::HdLightTokens->radius] = light->area_size / 2.0f;
|
||||
intensity /= 2.0f;
|
||||
intensity /= 16.0f;
|
||||
break;
|
||||
|
||||
case LA_AREA_ELLIPSE:
|
||||
data_[pxr::HdLightTokens->radius] = (light->area_size + light->area_sizey) / 4.0f;
|
||||
intensity /= 2.0f;
|
||||
intensity /= 16.0f;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user