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

Chibi drawing by Aikeji, modeled and animated in 3D.

Made in Blender.

#Blender #3D #3DArt #Modeling #Animation #Chibi #Aikeji

Comparison of view transforms in Blender using Christmas candles as an example

#Blender #3D #3DArt #ViewTransform #Christmas #Candles

Last week at LVL UP EXPO, we celebrated great games made by Jolters including Baldi's Basics Plus by @BasicallyGames !

Buy it on Game Jolt: https://gamejolt.com/games/baldis-basics-plus/481026

Thanks to Razer for providing the laptops and peripherals!

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

PC - I've never had a console.

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

Last week at LVL UP EXPO, Game Jolt celebrated great games made by Jolters including The Bunny Graveyard by @ElPichon !

Learn about the game: https://gamejolt.com/games/thebunnygraveyard/651214

Thanks to Razer for providing the laptops and peripherals!

My Pokémon Baking Book arrived today

#MyPokemonBakingBook #InsightEditions #Giveaway

Lord Vader decides to delete his Minecraft world

Made in Blender.

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

Quests inspired by @WhitethornGames ' Spray Paint Simulator entered your quest log!

Bring color to the world! Restore worn-out surfaces with a fresh coat of paint & watch them come back to life.

Play the free demo to get started: https://bit.ly/spraypaintsimdemo

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