- Home /
Shader distorts 2d texture when selected in "Quad" preview"
Hello! This might be a dumb question, but I seem to be having trouble adding a shader to my 2d sprite. Whenever I use the "Quad" option in the main preview window, the sprite gets distorted like this:
(the right is the distorted sprite in-game, while the other one on the left is what its suppose to look like)
I am trying to make a simple wind shader (I am following Unity's tutorial here: https://www.youtube.com/watch?v=p8H8ZdL_7eA&ab_channel=Unity)
This kept happening to me whenever I use 2d sprites. Can someone help me here? Thanks!
(This is the "Main Preview Window" that I was referring to:)
Answer by potechinno · Oct 04, 2021 at 01:15 AM
Nvm i found the solution: you have to connect the Sample Texture 2D (the one that contains the actual picture) alpha to the Main Stack's alpha channel
Your answer
Follow this Question
Related Questions
Write a Shader for GUI (GUITexture or scripted GUI) 0 Answers
How to Create Material Preview in Custom Editor 0 Answers
Lowering the cost of GUI 1 Answer
Masked RenderTexture not working in WebPlayer 1 Answer
[iOS] Is a mostly opaque texture faster to alpha blend than a mostly translucent one? 0 Answers