DarioSamo / sm64rt-legacy-renderer

MIT License
73 stars 7 forks source link

Specular map support and conversion of "normalMapScale" to "uvDetailScale". #22

Closed Ridge-Racer closed 3 years ago

Ridge-Racer commented 3 years ago

Extended the implementation of normal maps that was already done (thank you Dario) so that specular maps are also supported. Samples the map on hit and uses the value to multiply specular intensity. normalMapScale has been changed to uvDetailScale as it is now used for both normal and specular maps.

Ridge-Racer commented 3 years ago

Should be final. All requested changes made and an extra variable declaration cleaned up in surface.hlsl.