孤星Auggst

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: [作业0]模型没有渲染出来 #10925 Score: 0
    孤星Auggst
    Participant

    PhongVertexShader中用uModelViewMatrix替换uModelMatrix和uViewMatrix,可以解决模型不渲染的问题
    PhongFragmentShader中这一行修改一下,可以解决光照的问题
    float light_atten_coff = uLightIntensity / length(uLightPos – vFragPos);

Viewing 1 post (of 1 total)