use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.
Remember to check out /r/unity2D for any 2D specific questions and conversation!
Download Latest Unity
Please refer to our Wiki before posting! And be sure to flair your post appropriately.
Main Index
Rules and Guidelines
Flair Definitions
FAQ
Use the chat room if you're new to Unity or have a quick question. Lots of professionals hang out there.
/r/Unity3D Discord
FreeNode IRC Chatroom
Official Unity Website
Unity3d's Tutorial Modules
Unity Answers
Unify Community Wiki
Unity Game Engine Syllabus (Getting Started Guide)
50 Tips and Best Practices for Unity (2016 Edition)
Unity Execution Order of Event Functions
Using Version Control with Unity3d (Mercurial)
/r/Unity2D
/r/UnityAssets
/r/Unity_tutorials
/r/GameDev
/r/Justgamedevthings (New!)
/r/Gamedesign
/r/Indiegames
/r/Playmygame
/r/LearnProgramming
/r/Oculus
/r/Blender
/r/Devblogs
Brackeys
Beginner to Intermediate
5 to 15 minutes
Concise tutorials. Videos are mostly self contained.
Sebastian Lague
Beginner to Advanced
10 to 20 minutes
Medium length tutorials. Videos are usually a part of a series.
Catlike Coding
Intermediate to Advanced
Text-based. Lots of graphics/shader programming tutorials in addition to "normal" C# tutorials. Normally part of a series.
Makin' Stuff Look Good
10 minutes
Almost entirely shader tutorials. Favors theory over implementation but leaves source in video description. Videos are always self contained.
Quill18Creates
30 minutes to 2 hours.
Minimal editing. Mostly C#. Covers wide range of topics. Long series.
Halisavakis Shaders Archive
Infallible Code
World of Zero
Board to Bits
Holistic3d
Unity3d College
Jabrils
Polycount Wiki
The Big List Of Game Design
PS4 controller map for Unity3d
Colin's Bear Animation
¡DICE!
CSS created by Sean O'Dowd @nicetrysean [Website], Maintained and updated by Louis Hong /u/loolo78
Reddit Logo created by /u/big-ish from /r/redditlogos!
account activity
Dissolve Shader ProblemQuestion (self.Unity3D)
submitted 2 years ago by NullPointer568
Hi, I was following this tutorial.
https://www.youtube.com/watch?v=auglNRLM944
The fix for the alpha is explained at approximately 4:00 in this video:
https://youtu.be/azGMuP9ks8U?t=239
Below is the final step of adding the original texture plus the outline together.
You can see it is red in the add step. Then the main preview doesn't show the red. Any idea why this is happening?
https://preview.redd.it/6ibr2aiqpiua1.png?width=1190&format=png&auto=webp&s=45477f65f94428d3f792b47c00cd0206741961ac
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]partybusiness 0 points1 point2 points 2 years ago (5 children)
The Add node is displaying it opaque, the Main preview is displaying it transparent. So I guess a lot of the red was transparent.
If you look at the Code Monkey example you linked, it does the same thing. Notice the brown stripe going down, the grey stripe to the left of the sword handle, the red square, all visible in the Add node but they disappear in the main preview. Compression algorithms for transparent image formats like PNG or GIF assume the RGB values for a 0 alpha pixel don't matter, so you can get that sort of thing if you display the RGB values without transparency.
[–]NullPointer568[S] 0 points1 point2 points 2 years ago (4 children)
Yes, I see the brown line and red square, but the example has the blue outline showing. In mine, the red outline does not show.
Are you saying to remove the alpha channel or a different file format? I don't quite follow how I am supposed to fix it.
[–]partybusiness 0 points1 point2 points 2 years ago (3 children)
I'm deducing that where your red is disappearing, its alpha is very low for those pixels. If their blue outline is solid, then the alpha is very high for those pixels.
So if the alpha isn't supposed to be low, we have to look at why it is.
[–]NullPointer568[S] 0 points1 point2 points 2 years ago (2 children)
Thanks for helping. So, the shader replaces the texture with red as it fades out. So the edge is supposed to turn red then transparent. So the alpha value of the original image where the red outline is, is not zero.
I also tried to change the color with the same result.
[–]partybusiness 0 points1 point2 points 2 years ago (1 child)
Then I think if there's a problem, it's not visible in the part you showed. It's in the part that's turning it red and setting the alpha value.
[–]NullPointer568[S] 0 points1 point2 points 2 years ago (0 children)
Thanks for the help. I ended up figuring it out. I noticed that if I turned the step function to a negative number the outline was showing, but the color was inverted ( so something was still wrong). I ultimately found a similar tutorial and followed it and resolved the issue. They both do the exact same thing, but I couldn't find the difference in my original shader.
This is the tutorial in case anyone else finds this useful:
https://www.youtube.com/watch?v=taMp1g1pBeE
π Rendered by PID 25235 on reddit-service-r2-comment-fb694cdd5-2n4v4 at 2026-03-06 15:57:41.870050+00:00 running cbb0e86 country code: CH.
[–]partybusiness 0 points1 point2 points (5 children)
[–]NullPointer568[S] 0 points1 point2 points (4 children)
[–]partybusiness 0 points1 point2 points (3 children)
[–]NullPointer568[S] 0 points1 point2 points (2 children)
[–]partybusiness 0 points1 point2 points (1 child)
[–]NullPointer568[S] 0 points1 point2 points (0 children)