Skip to content

Commit

Permalink
Fix embed
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Oct 2, 2024
1 parent 3a0b9fc commit d21c442
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,11 @@ class ShaderCompiler {
if (compiled_shader === null) {
compiled_shader = new CompiledShader();
}
compiled_shader.files = [path_resolve('build', 'temp', path_basename_noext(shader) + '.' + self.type)];
let type = self.type;
if (type == "hlsl") {
type = "d3d11";
}
compiled_shader.files = [path_resolve('build', 'temp', path_basename_noext(shader) + '.' + type)];

compiled_shader.name = AssetConverter.create_export_info(shader, false, options, ".").name;
compiled_shaders.push(compiled_shader);
Expand Down

0 comments on commit d21c442

Please sign in to comment.