the internalformat of Texture

后端 未结 2 1062
挽巷
挽巷 2021-02-11 07:36

Look at the following OpenGL function:

void glTexImage2D(GLenum    target,
                  GLint     level,
                  GLint     internalFormat,
                


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-11 07:47

    How the value is stored internally is not necessarily relevant to how you would access it in GLSL. Using normalised colour values (0-1) is much easier in practice. Is there some reason you want to manipulate pixel values in your pixel shaders in the range of (0-255)?

提交回复
热议问题