- Home /
Question by
ZackOfAllTrades · Nov 14, 2017 at 12:40 AM ·
texturegraphicssampling
How do I change the default value for an empty new Texture2D?
void Start(){
Texture2D tex = new Texture2D(500,500);
Debug.Log(tex.GetPixel(0,0)); // output: RGBA(0.804, 0.804, 0.804, 0.804)
}
I would like the default no value to be 0. How can I change this?
Comment
Are you want to save texture or get texture from camera render ?
Your answer
Follow this Question
Related Questions
Texture missing data 1 Answer
Copying Textures and transparency. 0 Answers
Is it possible to make an image sequence into an animated normal map? 0 Answers
Why do I get those green lines? 0 Answers
What Shader to use 1 Answer