OpenGL ES 1.x 着色器
我正在尝试寻找如何为 OpenGL ES 1.x(特别是 iPhone)实现简单着色器的示例。 我以前从未使用过着色器,但我确实了解它们的用途。 我认为一旦我能够在模拟器中加载一个简单的着色器,我将能够从那里获取它并做我需要做的事情。 谢谢您的帮助, ~埃里克
I am trying to find examples of how to implement a simple shader for OpenGL ES 1.x (specifically for the iPhone). I have never worked with shaders before, but I do understand what they are used for. I think that once I am able to load a simple shader in the simulator I will be able to take it from there and do what I need to do.
Thanks for the help,
~Eric
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
iPhone 目前使用 OpenGL ES 1.1,不支持可编程管道。 OpenGL ES 2.0 似乎确实有它们,但也不与 1.1 兼容。
The iPhone currently uses OpenGL ES 1.1 which doesn't support a programmable pipeline. OpenGL ES 2.0 does seem to have them though and also be not compatible with 1.1 .
来自这篇文章:
From this post:
我的理解是,iPhone 上的硬件着色器已经被操作系统用于 CoreAnimation 和 OpenGL ES 中的功能。 这意味着您无法使用它们。
您在寻找着色器软件吗? 尝试 http://unity3d.com/unity/features/shaders
My understanding is that the hardware shaders on the iPhone are already being used by the OS for its features in CoreAnimation and OpenGL ES. This means they are not available to you.
Are you looking for a software shader? Try http://unity3d.com/unity/features/shaders