Need to do the same light power as Cycles in Watts for Hydra RPR #34

Merged
Bogdan Nagirniak merged 12 commits from BLEN-386 into hydra-render 2023-05-05 08:42:35 +02:00
Showing only changes of commit 40c976a81c - Show all commits

View File

@ -45,14 +45,15 @@ void LightData::init()
case LA_SUN:

This seems like a strange value. How was this found?

This seems like a strange value. How was this found?

Every value has been found empirically.

Every value has been found empirically.
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);