forked from blender/blender
Need to do the same light power as Cycles in Watts for Hydra RPR #34
@ -44,13 +44,13 @@ void LightData::init()
|
||||
case LA_SUN:
|
||||
data_[pxr::HdLightTokens->angle] = light->sun_angle * 180.0 / M_PI;
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case LA_SPOT:
|
||||
data_[pxr::HdLightTokens->shapingConeAngle] = light->spotsize / 2;
|
||||
data_[pxr::HdLightTokens->shapingConeSoftness] = light->spotblend;
|
||||
data_[pxr::UsdLuxTokens->inputsShapingConeAngle] = (float)(light->spotsize / 2.0f * 180.0f / M_PI);
|
||||
data_[pxr::UsdLuxTokens->inputsShapingConeSoftness] = light->spotblend;
|
||||
data_[pxr::UsdLuxTokens->treatAsPoint] = true;
|
||||
break;
|
||||
|
||||
|
||||
case LA_AREA:
|
||||
switch (light->area_shape) {
|
||||
case LA_AREA_SQUARE:
|
||||
@ -83,7 +83,7 @@ void LightData::init()
|
||||
prim_type_ = prim_type(light);
|
||||
|
||||
/* TODO: temporary value, it should be delivered through Python UI */
|
||||
data_[pxr::HdLightTokens->exposure] = 1.0f;
|
||||
data_[pxr::HdLightTokens->exposure] = 0.0f;
|
||||
|
||||
write_transform();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
This seems like a strange value. How was this found?
Every value has been found empirically.