PrismaticFlower / shaderpatch

Improved shaders (and fun stuff for modders) for Star Wars Battlefront II (2005) - Incompatible with Classic Collection
MIT License
39 stars 2 forks source link

Foliage normals are flipped for normal_ext materials. #68

Closed PrismaticFlower closed 5 years ago

PrismaticFlower commented 5 years ago

Custom materials include the code needed to properly align a normal for double sided surfaces. Unfortunately as it turns out this cause foliage to have flipped normal (the winding order for vertices is likely different for foliage and cloth), as can be seen below.

2019-06-12 00_45_18

There isn't a "backwards" compatible solution to this so I think I'll solve it by introducing normal_ext.foliage and normal_ext.foliage.specular rendertypes in the next feature release to let mappers solve it.

PrismaticFlower commented 5 years ago

Resolved in latest release, see DynamicNormalSign.