Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › [作业3]texture_fragment_shader纹理映射错误 This topic has 4 replies, 2 voices, and was last updated 3 years, 1 month ago by shayito. Viewing 4 reply threads Author Posts 2021年8月11日 at 下午3:13 #9065 Score: 1 我爱图形学Participant Karma: 2 pts float u = std::min(1.0f, std::max(0.0f, payload.tex_coords.x())); float v = std::min(1.0f, std::max(0.0f, payload.tex_coords.y())); return_color = payload.texture->getColor(u, v); 这里取出来的颜色好像很奇怪。。但是也找不到什么问题。。。 This post has received 1 vote up. 2021年8月11日 at 下午3:13 #9066 Score: 0 我爱图形学Participant Karma: 2 pts 图在这里 Attachments:You must be logged in to view attached files. 2021年8月11日 at 下午3:16 #9068 Score: 1 我爱图形学Participant Karma: 2 pts 对不起傻了。。忘记换纹理的路径了 已解决 This post has received 1 vote up. 2021年11月3日 at 下午6:06 #9624 Score: 0 shayitoParticipant Karma: 2 pts 请问是怎么解决的,请教一下qwq 2021年11月3日 at 下午6:27 #9625 Score: 0 shayitoParticipant Karma: 2 pts 我把main.cpp里的改成了r.set_texture(Texture("<我的工程的绝对路径>\models\spot\spot_texture.svg")); 但是报错如下 Attachments:You must be logged in to view attached files. Author Posts Viewing 4 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In