With declaration of GLSL version in vertex/fragment shader, like #version 120, You mustn't directly set varying variable or an error C7563 will occur.If you wish to change components of it, initialize another variable by this varying variable and then take
operations on this new created one.
GLSL varying variable
最新推荐文章于 2025-07-16 14:43:03 发布
本文介绍了在GLSL(OpenGL着色语言)中如何正确地使用varying变量。当声明了GLSL版本如#version 120时,直接设置varying变量会导致错误C7563的发生。为了避免这一问题,可以通过初始化一个新的变量来操作varying变量的组件。
2万+

被折叠的 条评论
为什么被折叠?



