Using Spotlight/Area lights exposure to reveal / blend texture maps?

   1229   1   1
User Avatar
Member
403 posts
Joined: June 2015
Offline
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.
Edited by Adriano - March 15, 2018 03:40:36
User Avatar
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.

Attachments:
reveal_material_bb.jpeg (160.5 KB)
reveal_material_bb.hip (568.6 KB)

  • Quick Links