关于修改active_shader = texture_fragment_shader进行查看时,老师默认的程序代码会出现如图Tex1的情况。
只需要在main.cpp中,修改如图Algo的代码,
添加auto texture_tex = “spot_texture.png”;
r.set_texture(Texture(obj_path + texture_tex));
然后将
texture_fragment_shader中
r.set_texture(Texture(obj_path + texture_tex));
替换掉原本的
r.set_texture(Texture(obj_path + texture_path));
即可
Attachments:
You must be
logged in to view attached files.