HLSL 中有 GLSL 的 ftransform() 翻译吗?

发布于 2024-07-11 17:25:35 字数 116 浏览 6 评论 0原文

使用 GLSL 顶点着色器时,让着色器作为固定功能管道工作的一种方法是调用:

ftransform();

功能。 HLSL的顶点着色器有类似的功能吗?

谢谢

When using GLSL vertex shaders, a way to let the shader work as a fixed-function pipeline is to call the:

ftransform();

function. Is there a similar function for HLSL's vertex shaders?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无人问我粥可暖 2024-07-18 17:25:35

我从 ATI 网站找到了本教程,这是一个 < href="http://msdn.microsoft.com/en-us/library/bb944006(VS.85).aspx" rel="nofollow noreferrer">MSDN 链接解释如何编写 HLSL 着色器Direct3D 9。希望有帮助。

编辑:根据这本书,微软本身不鼓励固定功能管道,因为在 HLSL 中它们可以让您直接访问底层硬件。

I've found this tutorial from ATI's website and this is a link to MSDN explaining how to write HLSL Shaders in Direct3D 9. Hope it helps.

EDIT: according to this book, fixed function pipeline is discouraged by Microsoft itself as in HLSL they give you direct access to the underlying hardware.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文