- Home /
How to : making a glowing cube using shaders?
Hello
I was wondering how can I create cube that has glowing edges by using Unity Shaders? Is there any chance of accomplishing that?
I have a standard 3D Cube, let's say it has default material, but I would like to make it a bit glossy with bright shining edges how can I do that?
The cube that I would like to get would look something like that :
Answer by FlaSh-G · Nov 01, 2017 at 10:12 AM
The emission properties of the standard shader are what you looking for. Add a texture with bright edges and a dark center as the emission texture to make the edges bright by themselves (as in "without having to be lit by another light").
To make the bright edges glow, you then add bloom postprocessing effect to your camera. Nowadays, this is done by with the Post Processing Stack from the Asset Store. Here's a howto for setting it up.
That's nice to hear!
Please consider marking the answer as "accepted" then so others can easily see it helped you in the future.
One more quick question @FlaSh-G , is there any way to make a blur effect while the cube is moving? Like a smear when it moves
That's called "$$anonymous$$otion Blur" and is also available in the post processing stack.
Your answer
Follow this Question
Related Questions
Unity 3d PBR shader graph: replace transparency with color 1 Answer
URP Non-Vertex shader 1 Answer
Which material shader will demonstrate glass of vehicle? 1 Answer
Fog Mode Off Functionality 1 Answer
up the contrast (0-1) in shader code 0 Answers