StefNN
December 28, 2017, 3:26am
1
Hello guys, i have a problem, i can’t figured out how to make object appears only if there lighted.
I explain, i have a “flashlight” like a UV Light, for exemple i have a text in my scene, i want it to be invisible all the times, excepts if i pass my flashlight on it
maybe do a spherecast about the size of the flashlight.
StefNN
December 28, 2017, 6:10am
3
Yes but that way will just alloy me to cast the object, for turn it off or on
What i want to do is a little more complicated of that, i want to be able to see only what the flashlight are enlightened
A good exemple in the real life are the invisible pen, you can only see what is enlightened
mgear
December 29, 2017, 9:01am
5
there used to be some shader in the forums that does it…
not sure which thread was it,
Hi everyone,
Long time reading, first time posting, blablabla...
I try to make a shader that is invisible when not lit directly by any light source. I almost have something but now I have reach my limit of understanding.
Shader "Custom/RevealAlpha" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_SpecColor ("Specular Color", Color) = (0.5, 0.5, 0.5, 1)
_MainTex("MainTex", 2D) = "white" {}
_lerper ("lerper", range (0,1)) = 0
_Cutoff ("Alpha cutoff", Range(0,1)) = …
Hello,
I posted a topic about this problem in the general support area, but as it was concluded that shaders would be the solution I will continue this here.
The real world example I'm trying to accomplish is that something's writting with invisible, UV-sensitive ink, then one shines on it with an UV-lightsource and the ink lights up so the message can be read.
Now, I've figured out I can light something only by one lightsource and leave it unaffected by others using layers, but it still s…
Hello,
I need help with creating a surface shader that reveals only the part of the _MainTex that is in the light of a certain colour. The rest of the surfaces will then be transparent, showing any objects behind it.
Due to the dynamic shadows that I will be using(shadows on the object will hide the texture as well), I tried to detect the light colour values in a custom lighting model (_PrePass) and then set the alpha accordingly. But I realised that for a surface to be rendered transparent,…