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);
|
||||||
data_[pxr::HdLightTokens->normalize] = true;
|
data_[pxr::HdLightTokens->normalize] = true;
|
||||||
|
intensity /= 40.0f;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LA_SUN:
|
case LA_SUN:
|
||||||
|
Loading…
Reference in New Issue
Block a user