forked from blender/blender
Need to do the same light power as Cycles in Watts for Hydra RPR #34
@ -46,8 +46,8 @@ void LightData::init()
|
||||
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;
|
||||
|
||||
@ -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