Loading...
88
2 years ago

"Ghost shader" I made a long time ago as an experiment in Unity.

#Unity #Shader #Ghost #Material #Transparency


The idea was to change the transparency instead of the brightness of the illuminated surface. By using the Culling Mask, you can make the material illuminated only by selected light sources.

		
			half4 LightingGhost (SurfaceOutputStandard s, UnityGI gi)
{
	half4 c;
	half t;
	c.a = dot(s.Normal, gi.light.dir);
	if(c.a < 0) c.a = 0;
	c.a *= s.Alpha;
	c.rbg = (s.Albedo + gi.light.color) * c.a;
	t = c.b;
	c.b = c.g;
	c.g = t;
	return c;
}

		
	

I don't remember why I swapped the green and blue channels



0 comments

Loading...

Next up

What's Your Most Feared Minecraft Mob?

My first thought was this green guy who appears out of nowhere and erases all your efforts in one second

#MostFearedMob #ArtWeeklies #Blender #Animation #Minecraft #Cave #Creeper #3D #3DArt

What's Your Favorite Video Game Console Of All Time?

PC - I've never had a console.

#GJAsks #Blender #3DArt #3D #PC #Room #Darkness

My Pokémon Baking Book arrived today

#MyPokemonBakingBook #InsightEditions #Giveaway

The Cryptmaster Anniversary Update is here! 

@akuparagames saw that players loved the in-universe card minigame "Whatever." So for this update, they've put more effort to make it its own Roguelike game mode!

Try the FREE DEMO: https://bit.ly/CryptmasterSteam

Beware of the armored frog

Kikkerstein's tank made in Blender for the War Thunder quest.

#Blender #3D #3DArt #Modeling #Animation #Kikkerstein #Kikkertank #Tank #WarThunder

Let Them Come: Onslaught by @Tuataragames has come to Game Jolt!

Celebrate by completing our quests!

Play the FREE demo of Let Them Come: Onslaught on Steam: https://bit.ly/LTCOdemo

Spirit of the snowy forest

Made in Blender.

Anime girl model made in VRoid Studio (last image).

#Blender #3D #3DArt #Modeling #Animation #Anime #Girl #VRoid #VRoidStudio #Snow #Forest #Winter #Night #Blobcat

Lord Vader decides to delete his Minecraft world

Made in Blender.

#StarWarsArt #FanArtFriday #ArtWeeklies #Minecraft #Blender #Animation #3D #3DArt #DeathStar #Space

The Button Effect – @Frycandle 's minimalist first-person puzzler inspired by The Witness, The Talos Principle and The Beginner's Guide, is coming to Steam! 

Play the demo and wishlist the game now: https://bit.ly/thebuttoneffect

It's just rain

Made in Blender using Dynamic Paint and particles.

#Blender #3D #3DArt #Animation #Rain #Storm #Window #DynamicPaint