Make diffuse use mid gray #10

Closed
Jeroen Bakker wants to merge 1 commits from eevee-next/lookdev-diffuse-mid-gray into eevee-next/lookdev-spheres

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -80,7 +80,7 @@ MaterialModule::MaterialModule(Instance &inst) : inst_(inst)
bNode *bsdf = nodeAddStaticNode(nullptr, ntree, SH_NODE_BSDF_DIFFUSE); bNode *bsdf = nodeAddStaticNode(nullptr, ntree, SH_NODE_BSDF_DIFFUSE);
bNodeSocket *base_color = nodeFindSocket(bsdf, SOCK_IN, "Color"); bNodeSocket *base_color = nodeFindSocket(bsdf, SOCK_IN, "Color");
copy_v3_fl(((bNodeSocketValueRGBA *)base_color->default_value)->value, 0.8f); copy_v3_fl(((bNodeSocketValueRGBA *)base_color->default_value)->value, 0.18f);
bNode *output = nodeAddStaticNode(nullptr, ntree, SH_NODE_OUTPUT_MATERIAL); bNode *output = nodeAddStaticNode(nullptr, ntree, SH_NODE_OUTPUT_MATERIAL);