Not sure the title's clear enough. But for the effects i'm trying to achieve i think being able to blend two materials depending on the object's exposure to light would be enough. Not quite sure how to go about it. Any good soul out here willing to put me on the right path please?
Cheers,
A.
Using Spotlight/Area lights exposure to reveal / blend texture maps?
1229 1 1- Adriano
- Member
- 403 posts
- Joined: June 2015
- Offline
- brianBurke
- Member
- 192 posts
- Joined: Nov. 2008
- Offline
hi adriano. you can create a custom light that will do this. using message passing via the illuminance loop, you can pass any variables between the light and the surface. the illuminance loop is a pretty out-dated tool, but can be useful for doing hacky things like this.
in this example, i pass a variable named ‘reveal’ from the light to the surface using a custom light shader and an illuminance loop call in the material.
in this example, i pass a variable named ‘reveal’ from the light to the surface using a custom light shader and an illuminance loop call in the material.
-
- Quick Links