owl-project / NVISII

Apache License 2.0
319 stars 27 forks source link

Shifting texture coordinates? #140

Open seann999 opened 2 years ago

seann999 commented 2 years ago

This is related to https://github.com/owl-project/NVISII/issues/106 (wasn't sure if I should create a new issue)

Is there a function to shift textures, i.e. add an offset to the UV coordinates? This is for domain randomization purposes. I'm guessing there isn't atm, but thought I'd ask just in case.

natevm commented 2 years ago

There isn’t yet, but would be a great feature to have. Unfortunately I’m finding myself pretty busy these days, so a pull request would be much appreciated.

Almost all the code is there, just for scaling textures rather than translating them.