GLSL使用碰到的一些问题

1、 u n i f o r m \color{red}uniform变量在代码中赋值行为说明:
在N卡中,这种行为是允许的,但是在集成显卡中,这种行为是不允许的。会导致集成显卡中模型变成"黑炭"。

2、 f l o a t i n t \color{red}float值强制转换为int类型:
N卡和集成显卡都支持的操作:int i = int(f);

猜你喜欢

转载自blog.csdn.net/xys206006/article/details/82907606