Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
411 views
in Technique[技术] by (71.8m points)

unity3d - Getting angles in my 2d circles when using texture in unity

I am building my first 2D mobile game using unity, everything works as expected when I create a circle with a new default Material, but when I use a Material that has a Shader and a texture the circle shows angles.

I am using unity 2020.2.1f1 with Universal Render Pipeline running on Linux.

I have attached an image of the problem, the left circle uses a Material with Shader and texture and the right one uses a Material without texture.

I would like the left circle to be also a proper circle as the one in the right side.

Circles

Shader

There is also an error that says Material does not have _MainTex texture property. It is required for SprintRenderer But when I add that as reference of the property, the texture is not shown at all. I don't know if that could be related.

question from:https://stackoverflow.com/questions/66050132/getting-angles-in-my-2d-circles-when-using-texture-in-unity

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

When I install unity 2019.4.19f1 the circle is rendered as I expected. So that is how I fixed it.

The message: Material does not have _MainTex texture property. It is required for SprintRenderer wasn't related with the problem.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...