Vulkano问题:顶点着色器无法访问独立法线缓冲区中的法线
问题:Vulkano顶点着色器无法访问法线缓冲区,提示缺少"normal"属性
我尝试给立方体添加法线来解决内部可见的问题,参考Vulkano官方示例开发时,遇到顶点着色器无法访问法线缓冲区的问题,报错信息如下:
called
Result::unwrap()on anErrvalue: the shader interface contains a variable named "normal", but no such attribute exists in the vertex definition
涉及的相关代码文件:
shaders/vertex.glslsrc/main.rsshaders/fragment.glslCargo.toml
内容的提问来源于stack exchange,提问作者Delfin
相关产品推荐
相关产品推荐

