Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

入门/着色器/从文件读取,译注1,有不同理解 #46

Closed
qxly opened this issue Aug 21, 2016 · 1 comment
Closed

入门/着色器/从文件读取,译注1,有不同理解 #46

qxly opened this issue Aug 21, 2016 · 1 comment

Comments

@qxly
Copy link

qxly commented Aug 21, 2016

译注1

实际上把着色器代码保存在文件中适合学习OpenGL的时候,实际开发中最好把一个着色器直接储存为多个字符串,这样具有更高的灵活度。

实际开发,GLSL放在代码中,修改时,程序需要compile,大型程序花费时间很长,灵活度不如写在文件中

@Krasjet
Copy link
Member

Krasjet commented Aug 21, 2016

这个译注的作者是 Django,我个人也不赞同这个译注,还是更喜欢将着色器文件分开放。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants