You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Vulkano问题:顶点着色器无法访问独立法线缓冲区中的法线

问题:Vulkano顶点着色器无法访问法线缓冲区,提示缺少"normal"属性

我尝试给立方体添加法线来解决内部可见的问题,参考Vulkano官方示例开发时,遇到顶点着色器无法访问法线缓冲区的问题,报错信息如下:

called Result::unwrap() on an Err value: the shader interface contains a variable named "normal", but no such attribute exists in the vertex definition

涉及的相关代码文件:

  • shaders/vertex.glsl
  • src/main.rs
  • shaders/fragment.glsl
  • Cargo.toml

内容的提问来源于stack exchange,提问作者Delfin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 20:44:55