Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业2 setColor函数为什么要把颜色值归一化

Viewing 0 reply threads
  • Author
    Posts
    • #7555 Score: 0
      cggg
      Participant
      -2 pt

      color[ind] = Vector3f((float)r/255.,(float)g/255.,(float)b/255.);

      我在使用这个颜色值的时候乘了255才可以正常显示。那么这一句有什么用处吗?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.