Loading...
86
1 year 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

To this day, I don't know how they did it

#PhotoDay

Praise the Cat!

Blobcats worshiping their creator in an ancient temple.

Made in Blender for Art Weeklies - Monument theme.

#Blender #Animation #3D #3DArt #Modeling #ArtWeeklies #Cat #Blobcat #KniteBlargh #Golden #Monument #Temple #Pyramid #Ancient

Happy #WIPWednesday!

Are you working on a game? A song? Something else? Tell us in the comments!

Bottled water tree

#PlantPhoto

🕹️ Enter The Highrise Game Jam Before It Ends On May 5! 🕹️

Learn the rules here: https://gamejolt.com/c/gamedev/highrisejam

Learn how to make a world on Highrise (which you MUST do to enter the jam) here: https://gamejolt.com/p/the-highrise-game-jam-is-underway-watch-t…

The jam has cash prizes! 💸💸💸

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

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

Lord Vader decides to delete his Minecraft world

Made in Blender.

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

Highrise Game Jam Reminder: In order to enter to win the Jam, your game must be created in Unity and submitted using the Highrise Studio Hub.

Learn all the deets about the jam at https://gamejolt.com/c/gamedev/highrisejam

Snow globe with a city in retro style

Made in Blender for Art Weeklies - Item and City themes.

#Blender #Animation #3D #3DArt #Modeling #ArtWeeklies #City #Item #SnowGlobe #Retro #LowPoly #PerVertexLighting #PS1Graphics #Old3DGraphics #Early3DGraphics