Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 作业三建议 Tagged: suggestion This topic has 0 replies, 1 voice, and was last updated 1 year ago by Chenkey-Z. Viewing 0 reply threads Author Posts 2023年11月6日 at 下午10:04 #17216 Score: 0 Chenkey-ZParticipant Shader.hpp中的fragment_shader_payload结构体的构造函数没有对Eigen::Vector3f view_pos变量进行初始化,如果需要实现多种构造,更推荐的写法是对构造函数进行重载。而不应该让public成员变量在外部被随意赋值或修改。因为如果忘记初始化该变量,或者不小心修改,可能导致后续渲染时,某些参数出现错误的数据(如nan,inf),希望课程组对此进行修正。 Author Posts Viewing 0 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In