pastasfuture / com.hauntedpsx.render-pipelines.psx

A scriptable render pipeline for emulating Playstation-1-style graphics on contemporary hardware.
https://twitter.com/HauntedPs1/
MIT License
383 stars 26 forks source link

Static Skinned Mesh Renderer does not receive or cast shadows in shadowmask #23

Closed tglewis1993 closed 2 years ago

tglewis1993 commented 2 years ago

The below screenshot displays the issue, the shading on the model is correct, but it casts no shadows nor receives shadows cast by other objects from the same light source. shadebug1

Lighting settings in this scene: shadebug2

Point light settings: shadebug3

Skinned Mesh material settings: shadebug4

pastasfuture commented 2 years ago

I discovered that the Lightmapper in Unity does not support skinned meshes - so this is unfortunately an issue outside of the scope of HPSXRP. As we discussed in discord you'll need to flatten down any skinned meshes into regular meshes (in your own 3D software) if you want them to contribute to baked lighting.