0
現在、私はメッシュを作成してそれをテクスチャリングしています。これは一方の側からは動作しますが、他方からは透過します。Unity3Dでメッシュの両面をどのようにテクスチャ付けするのですか?
m.name = "TopWallMesh";
m.vertices = new Vector3[] {
new Vector3(-width, 0f, -height),
new Vector3(width, 0f, -height),
new Vector3(-width, 0.1f, -height),
new Vector3(width, 0.1f, -height)
};
m.uv = new Vector2[] {
new Vector2 (0, 0),
new Vector2 (0, 1),
new Vector2 (1, 0),
new Vector2 (1, 1)
};
m.triangles = new int[] { 0, 1, 2, 1, 3, 2 };
m.RecalculateNormals();
これを修正して両面にテクスチャを付けるにはどうすればよいですか?
逆標準で別の面を作成することができます – Lestat