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;
|
break;
|
||||||
|
|
||||||
case LA_SPOT:
|
case LA_SPOT:
|
||||||
data_[pxr::HdLightTokens->shapingConeAngle] = light->spotsize / 2;
|
data_[pxr::UsdLuxTokens->inputsShapingConeAngle] = (float)(light->spotsize / 2.0f * 180.0f / M_PI);
|
||||||
data_[pxr::HdLightTokens->shapingConeSoftness] = light->spotblend;
|
data_[pxr::UsdLuxTokens->inputsShapingConeSoftness] = light->spotblend;
|
||||||
data_[pxr::UsdLuxTokens->treatAsPoint] = true;
|
data_[pxr::UsdLuxTokens->treatAsPoint] = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ void LightData::init()
|
|||||||
prim_type_ = prim_type(light);
|
prim_type_ = prim_type(light);
|
||||||
|
|
||||||
/* TODO: temporary value, it should be delivered through Python UI */
|
/* TODO: temporary value, it should be delivered through Python UI */
|
||||||
data_[pxr::HdLightTokens->exposure] = 1.0f;
|
data_[pxr::HdLightTokens->exposure] = 0.0f;
|
||||||
|
|
||||||
write_transform();
|
write_transform();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user