Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

finding objects with same cubemap in shader?

$
0
0
I am working on my personal cubemap system and I got now the problem that I have rooms with lights that I can turn off and on. so I would need 2 cubemaps for light on and one for lights off. I want to prevent that everything in the scene needs to be updated all the time. so I had the idea maybe its possible to **search** for gameobjects that uses the same Cubemap and change them. I have a list for all dynamic objects that are moving and requesting a up to date cubemap. but when they not moving they will not update her cubemaps like my static objects.

Viewing all articles
Browse latest Browse all 171066


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>