forked from blender/blender
Make diffuse use mid gray #10
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user