Pjbomb2 / TrueTrace-Unity-Pathtracer

A passion projects that has been going on for awhile, finally at a place where I feel comfortable tentatively uploading it to Github for others
MIT License
630 stars 44 forks source link

Take MaterialPropertyBlock into account #15

Closed cpetry closed 10 months ago

cpetry commented 1 year ago

I'm heavily using MaterialPropertyBlocks to adjust minor changes on materials. See this here: https://docs.unity3d.com/ScriptReference/MaterialPropertyBlock.html

image

When rendering with your TrueTrace these settings seem not to be taken into account: image

In this case here I changed the UV scaling of the texture

Pjbomb2 commented 10 months ago

Added a callable function that allows you to tell it when you change the scale/offset of a texture, as checking this automatically could be a major performance drain with many objects