Hi friends,
I hope someone can help.
I created Texture2d in a script:
Texture2D texture = new Texture2D(width, height);
texture.SetPixels(colorMap);
texture.filterMode = FilterMode.Trilinear;
texture.wrapMode = TextureWrapMode.Clamp;
texture.anisoLevel = 9;
texture.Apply();
and used it in SetTexture:
textureRenderer.material.SetTexture("_BaseColorMap", texture);
I can see the texture in the inspector view, but it’s all black in the scene or game view (can’t be due to bad lighting as the tree in the scene is clearly visible, I think):
Unity ver. 2020.2.0f1