blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

Feature Request: add ability for a TEXTURE block to modify shader properties #149

Closed ChrisAdderley closed 4 years ago

ChrisAdderley commented 4 years ago

It would be great to be able to modify shader properties within a TEXTURE or a SUBTYPE block, in the same way that the Restock things you wrote do, eg.

COLOR_PROPERTY
    {
      name = _SpecColor
      color = 0.753, 0.753, 0.753, 1.0
    }

    FLOAT_PROPERTY
    {
      name = _Shininess
      value = 0.3
    }

This would increase the flexibility of texture switching significantly.

blowfishpro commented 4 years ago

Will probably implement this as an alternative to the TEXTURE blocks, that was done before I really understood the scope of what needed to be changed. Might copy a bunch of the code I put in Restock for this

ChrisAdderley commented 4 years ago

Sounds good to me!

blowfishpro commented 4 years ago

Implemented in #185