Jump to content

D3D11Shader::compile(): Invalid shader Material:"mat/Geometry.mat" on edi


photo

Recommended Posts

I'm using it as a shader to utilize wire mode.

But I don't know the cause, but the following error is output in the editor's console.

It is difficult to find the cause.

Request you to check.

image.png.d16570c60f1f822f76bb8072d6e876a3.png

wiremode shader.upackage

Link to comment

Hi Park,

I've noticed a few oddities here and there with Geometry material.
First of all you have to close the Editor and rename it's extension from .mat to .basemat, since it's a base material.
Second of all, when you specify path to the specific shader it has to be relative to the data/ folder and not relative to the material file. So you have to change path from "shaders/..." to "mat/shaders/...".
Lastly I am not sure what objects that material have to support, but I assume that it will be assigned to regular meshes, then you have to change specified node from "object_dynamic" to "object_mesh_static".

Hope this helps!

Link to comment
×
×
  • Create New...