StjerneIdioten / I3D-Blender-Addon

Rewriting the I3D blender addon from scratch and adding long-sought community features
GNU General Public License v3.0
66 stars 18 forks source link

[Bug Report] FS22 vehicleShader colorMats #146

Closed Maaslandmods closed 2 years ago

Maaslandmods commented 2 years ago

When selecting the FS22 vehicleShader in the Shader Source, only one Parameter appears with the title 'colorMat' instead of 'colorMat0', 'colorMat1', ect.

Blender 2.93.6

FS19: 2021-11-22 18_28_51-NVIDIA GeForce Overlay

FS22: unknown

StjerneIdioten commented 2 years ago

Giants have updated their shader spec from 4 to 5 and in the new spec it would seem that parameters can have an "arraySize" parameter, which determines that the parameter is an array of parameters. You then specify children of the parameter with default values for the indexes.

FS19, Shader Version 4: image

FS22, Shader Version 5: image

The fix is easy enough, but the new version of the exporter should probably be able to tackle different shader versions.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 4.0.0-dev.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 4.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: