forked from blender/blender
Need to do the same light power as Cycles in Watts for Hydra RPR #34
@ -45,14 +45,15 @@ void LightData::init()
|
||||
case LA_SUN:
|
||||
|
||||
data_[pxr::HdLightTokens->angle] = light->sun_angle * 180.0f / float(M_PI);
|
||||
break;
|
||||
|
||||
|
||||
case LA_SPOT:
|
||||
data_[pxr::UsdLuxTokens->inputsShapingConeAngle] = light->spotsize / 2.0f * 180.0f / float(M_PI);
|
||||
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:
|
||||
switch (light->area_shape) {
|
||||
case LA_AREA_SQUARE:
|
||||
@ -85,7 +86,7 @@ void LightData::init()
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
data_[pxr::HdLightTokens->intensity] = intensity;
|
||||
|
||||
prim_type_ = prim_type(light);
|
||||
|
Loading…
Reference in New Issue
Block a user
This seems like a strange value. How was this found?
Every value has been found empirically.