简体   繁体   English

SVG 纹理从three.js 中的画布模糊

[英]SVG texture blurried from canvas in three.js

im trying to use an SVG as texture over a model with UV mapping, the thing is that is getting very blurried, im taking the texture from a 2D canvas and it looks ok but over the model it looks so bad, screenshot attached, any idea?我试图在带有 UV 映射的模型上使用 SVG 作为纹理,问题是变得非常模糊,我从 2D 画布中获取纹理,它看起来不错,但在模型上看起来很糟糕,附上截图,任何想法?

The purpose to use an SVG is because in that way i can manipulate the color properties dinamically, so use a JPG or PNG is not an option使用 SVG 的目的是因为这样我可以动态地操作颜色属性,所以使用 JPG 或 PNG 不是一种选择

在此处输入图片说明

EDIT:Live version here -> test.fasterwear.com编辑:这里的实时版本 - > test.fasterwear.com

Thanks!谢谢!

I think I see your problem.我想我看到了你的问题。 Have a look at the values returned by看看返回的值

var svgSize = svg.getBoundingClientRect();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM