skyslide22 / blendermania-addon

Blender addon for trackmania2020 & maniaplanet. 1 Click export & convert to .gbx.
35 stars 7 forks source link

Blender 3.0 fixes, mat color for CustomColor, use _R, _N files for materials #4

Closed frolad closed 2 years ago

frolad commented 2 years ago

1) Fix Blender 3.0 changes for the node "Principled BSDF" (still should work with 2.93+) 2) Add _R and _N TexImage nodes and attach them to BSDF Roughness, Metallic and Normal 3) Use material nodes for Custom* Materials (so we could have _R, _N, _I for them as well) 4) Replace surfaceColor with BSDF Base Color (or diffuse_color if mat has no nodes) 5) Use alpha channel instead of useCustomColor, if alpha is 0 -> use default custom material color