forked from blender/blender
Need to do the same light power as Cycles in Watts for Hydra RPR #34
@ -32,14 +32,14 @@ void LightData::init()
|
|||||||
if (scene_delegate_->engine_type == BlenderSceneDelegate::EngineType::PREVIEW) {
|
if (scene_delegate_->engine_type == BlenderSceneDelegate::EngineType::PREVIEW) {
|
||||||
intensity *= 0.001f;
|
intensity *= 0.001f;
|
||||||
|
|||||||
}
|
}
|
||||||
//intensity *= 0.001f;
|
|
||||||
|
|
||||||
data_[pxr::HdLightTokens->color] = pxr::GfVec3f(light->r, light->g, light->b);
|
data_[pxr::HdLightTokens->color] = pxr::GfVec3f(light->r, light->g, light->b);
|
||||||
|
|
||||||
switch (light->type) {
|
switch (light->type) {
|
||||||
case LA_LOCAL:
|
case LA_LOCAL:
|
||||||
data_[pxr::HdLightTokens->radius] = light->radius;
|
data_[pxr::HdLightTokens->radius] = std::max(light->radius, 0.000001f);
|
||||||
Bogdan Nagirniak
commented
if radius == 0, maybe if radius == 0, maybe `data_[pxr::UsdLuxTokens->treatAsPoint] = true;` ?
|
|||||||
data_[pxr::HdLightTokens->normalize] = true;
|
data_[pxr::HdLightTokens->normalize] = true;
|
||||||
|
intensity /= 40.0f;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LA_SUN:
|
case LA_SUN:
|
||||||
Brian Savery (AMD)
commented
This seems like a strange value. How was this found? This seems like a strange value. How was this found?
Georgiy Markelov
commented
Every value has been found empirically. Every value has been found empirically.
|
|||||||
|
Loading…
Reference in New Issue
Block a user
Do we still need this multiplication?