"Use Nodes" was removed in the compositor to simplify the compositing workflow. This introduced a slight inconsistency with the Shader Node Editor. This PR removes "Use Nodes" for object materials. For Line Style, no changes are planned (not sure how to preserve compatibility yet). This simplifies the state of objects; either they have a material or they don't. Backward compatibility: - If Use Nodes is turned Off, new nodes are added to the node tree to simulate the same material: - DNA: Only `use_nodes` is marked deprecated - Python API: - `material.use_nodes` is marked deprecated and will be removed in 6.0. Reading it always returns `True` and setting it has no effect. - `material.diffuse_color`, `material.specular` etc.. Are not used by EEVEE anymore but are kept because they are used by Workbench. Forward compatibility: Always enable 'Use Nodes' when writing blend files. Known Issues: Some UI tests are failing on macOS Pull Request: https://projects.blender.org/blender/blender/pulls/141278
73 lines
1.3 KiB
Plaintext
73 lines
1.3 KiB
Plaintext
# Blender 5.0.0 Alpha MTL File: 'all_objects.blend'
|
|
# www.blender.org
|
|
|
|
newmtl Blue
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 0.000000 0.000000 1.000000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|
|
|
|
newmtl BlueDark
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 0.000000 0.000000 0.500000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|
|
|
|
newmtl Green
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 0.000000 1.000000 0.000000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|
|
|
|
newmtl GreenDark
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 0.000000 0.500000 0.000000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|
|
|
|
newmtl Material
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 0.800000 0.800000 0.800000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|
|
|
|
newmtl Red
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 1.000000 0.000000 0.000000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|
|
|
|
newmtl RedDark
|
|
Ns 250.000000
|
|
Ka 1.000000 1.000000 1.000000
|
|
Kd 0.500000 0.000000 0.000000
|
|
Ks 0.500000 0.500000 0.500000
|
|
Ke 0.000000 0.000000 0.000000
|
|
Ni 1.450000
|
|
d 1.000000
|
|
illum 2
|