- Home /
Opaque Textures Not Working!
I was wondering how do I import a 2-sided plane into unity with a Texture that has opaque. I cannot seem to figure this out, whenever I import the plane into Unity the opaque parts are just black. I don't want any code or anything. Just how to import it normally.
try re-importing the textures. I had to do that a few days ago.
Answer by Catlard · Mar 10, 2013 at 06:35 AM
Set the shader to a transparent shader. Transparent/diffuse usually works for one sided stuff... but you might also try a shader from the particles menu, so that you can see the back of it. I also know that there's a shader with SpriteManager 2 package that does this well. Does that help?
Yes but before i do, do it, I want to know, Does the shader overwrite the textures?? :/
Overwrite? No, shaders don't change what the actual texture is, they just present it differently!
Here's the shader I mentioned...
Shader "Sprite/Double Sided Vertex Colored" {
Properties {
_Color ("$$anonymous$$ain Color", Color) = (0.5,0.5,0.5,1)
_$$anonymous$$ainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
}
Category {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
ZWrite Off
Blend SrcAlpha One$$anonymous$$inusSrcAlpha
SubShader {
$$anonymous$$aterial {
Diffuse [_Color]
}
Pass {
Color$$anonymous$$aterial AmbientAndDiffuse
Lighting Off
Cull Off
SetTexture [_$$anonymous$$ainTex] {
Combine texture * primary, texture * primary
}
SetTexture [_$$anonymous$$ainTex] {
constantColor [_Color]
Combine previous * constant DOUBLE, previous * constant
}
}
}
}
}
Your answer
Follow this Question
Related Questions
Particle opacity 3 Answers
Display a texture fade? 0 Answers
Texture on plane not displaying properly 0 Answers
Change Texture of Plane with script 0 Answers