I have an error that is occurring on the cook of our project for a specific material. There is no errors in PIE, so this has been interesting to track down the problem. It happened after we turned on HWRT as far as I can tell. Below is the errors in the cook logs.
---
LogMaterial: Display: [CookWorker 3]: Missing cached shadermap for M_MergedCharacter_Hair in PCD3D_SM6, Default, SM6, Game (DDC key hash: 687103844b9b28d820cfbe5f0f708e68e5cdafc6), compiling.
[2025-07-24T07:08:31.412Z] LogShaderCompilers: Warning: [CookWorker 3]: Failed to compile Material /Game/CharacterCreator/Characters/Materials/Master/SlotAgnostic/M_MergedCharacter_Hair.M_MergedCharacter_Hair for platform PCD3D_SM6, Default Material will be used in game.
[2025-07-24T07:08:31.412Z] \Engine\Shaders\Private\RayTracing\RayTracingMaterialHitShaders.usf(0): Shader TMaterialCHSFNoLightMapPolicyFAnyHitShader, Permutation 0, VF FLocalVertexFactory:
[2025-07-24T07:08:31.412Z] error: validation errors
[2025-07-24T07:08:31.412Z]
[2025-07-24T07:08:31.412Z] \Engine\Binaries\Win64\RayTracingMaterialHitShaders.dxil(4640,31): Shader TMaterialCHSFNoLightMapPolicyFAnyHitShader, Permutation 0, VF FLocalVertexFactory:
[2025-07-24T07:08:31.412Z] RayTracingMaterialHitShaders.dxil:4640:31: error: No indefinite logarithm.
[2025-07-24T07:08:31.412Z] \Engine\Binaries\Win64\PathTracingMaterialHitShader.dxil(5161,31): Shader FPathTracingMaterialCHS_AHS, Permutation 0, VF FLocalVertexFactory:
[2025-07-24T07:08:31.412Z] PathTracingMaterialHitShader.dxil:5161:31: error: No indefinite logarithm.
[2025-07-24T07:08:31.412Z] \Engine\Binaries\Win64\PathTracingMaterialHitShader.dxil(5178,31): Shader FPathTracingMaterialCHS_AHS, Permutation 0, VF FInstancedStaticMeshVertexFactory:
[2025-07-24T07:08:31.412Z] PathTracingMaterialHitShader.dxil:5178:31: error: No indefinite logarithm.
[2025-07-24T07:08:31.412Z] \Engine\Binaries\Win64\RayTracingMaterialHitShaders.dxil(4657,31): Shader TMaterialCHSFNoLightMapPolicyFAnyHitShader, Permutation 0, VF FInstancedStaticMeshVertexFactory:
[2025-07-24T07:08:31.412Z] RayTracingMaterialHitShaders.dxil:4657:31: error: No indefinite logarithm.
[2025-07-24T07:08:31.412Z]
[2025-07-24T07:08:31.412Z] LogCook: Display: [CookWorker 3]: Cooked packages 6983 Packages Remain 4627 Total 11610
[2025-07-24T07:08:31.412Z] LogMaterial: Warning: [CookWorker 3]: Cooking a material resource (in M_MergedCharacter_Hair hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
---
Searching around hasn’t brought up anything I might be missing, such a a Usage Flag, but it would be lovely if it was just a checkbox
Let me know if there is anything I can do to help provide more information. I’ve set this to community so some others might be able to benefit from the answer, but if I need to provide a material, it would be better if is was private.
Cheers,
Anthony