GoJoo

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: 作业3踩坑分享 #20042 Score: 0
    GoJoo
    Participant

    关于修改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.
Viewing 1 post (of 1 total)