Jump to content

.basemat won't be exported during build


photo

Recommended Posts

Hi,

I have noticed, that in latest engine release (2.15.1), the .basemat-file is not exported during the final build. However, the used .frag file and all derived materials will be exported just fine. After an successful build, copy&paste the initial .basemat file will solve the problem.

Steps to reproduce:

  1. Create a new .basemat file in an folder (named shaders/basemats).
  2. Insert all code, create a new .frag file in the same folder and let the editor build them successfully.
  3. Create an derived .mat file inside the editor via the "Materials" tab as usual.
  4. Use the derived material normally in your project (we use FindMaterialByPath in code)
  5. Build the complete project via editor as .bat file-project
  6. Starting the project via .bat file shows an error, that the derived mat could not be loaded (because GUID for basemat could not be found).

As a workaround just copy the .basemat file to the correct folder, where it was placed before the project build.

I have attached my used custom materials for testing, it is just an basic outline-material.

Hope that helps.

shaders.7z

Link to comment
×
×
  • Create New...