diff --git a/src/tydra/obj-export.cc b/src/tydra/obj-export.cc index 98011771..7a9d42fc 100644 --- a/src/tydra/obj-export.cc +++ b/src/tydra/obj-export.cc @@ -233,7 +233,7 @@ bool export_to_obj(const RenderScene &scene, const int mesh_id, ss << "Kd " << col[0] << " " << col[1] << " " << col[2] << "\n"; } - if (scene.materials[mat_id].surfaceShader.useSpecularWorkFlow) { + if (scene.materials[mat_id].surfaceShader.useSpecularWorkflow) { if (scene.materials[mat_id].surfaceShader.specularColor.is_texture()) { int32_t texId = scene.materials[mat_id].surfaceShader.specularColor.texture_id; if ((texId < 0) || (texId >= int(scene.textures.size()))) { diff --git a/src/tydra/render-data.cc b/src/tydra/render-data.cc index 167c5670..75c3b1a7 100644 --- a/src/tydra/render-data.cc +++ b/src/tydra/render-data.cc @@ -4827,11 +4827,11 @@ bool RenderSceneConverter::ConvertPreviewSurfaceShader( int val; if (!shader.useSpecularWorkflow.get_value().get(env.timecode, &val)) { PUSH_ERROR_AND_RETURN( - fmt::format("Failed to get useSpcularWorkFlow value at time `{}`.", + fmt::format("Failed to get useSpcularWorkflow value at time `{}`.", env.timecode)); } - rshader.useSpecularWorkFlow = val ? true : false; + rshader.useSpecularWorkflow = val ? true : false; } } @@ -6882,7 +6882,7 @@ std::string DumpPreviewSurface(const PreviewSurfaceShader &shader, ss << "PreviewSurfaceShader {\n"; ss << pprint::Indent(indent + 1) - << "useSpecularWorkFlow = " << std::to_string(shader.useSpecularWorkFlow) + << "useSpecularWorkflow = " << std::to_string(shader.useSpecularWorkflow) << "\n"; ss << pprint::Indent(indent + 1) << "diffuseColor = "; diff --git a/src/tydra/render-data.hh b/src/tydra/render-data.hh index 7b20358e..1cfab818 100644 --- a/src/tydra/render-data.hh +++ b/src/tydra/render-data.hh @@ -1082,7 +1082,7 @@ struct ShaderParam { // UsdPreviewSurface struct PreviewSurfaceShader { - bool useSpecularWorkFlow{false}; + bool useSpecularWorkflow{false}; ShaderParam diffuseColor{{0.18f, 0.18f, 0.18f}}; ShaderParam emissiveColor{{0.0f, 0.0f, 0.0f}}; diff --git a/src/tydra/usd-export.cc b/src/tydra/usd-export.cc index dfb27c9e..3e2e80a0 100644 --- a/src/tydra/usd-export.cc +++ b/src/tydra/usd-export.cc @@ -961,7 +961,7 @@ static bool ToMaterialPrim(const RenderScene &scene, const std::string &abs_path surfaceShader.outputsSurface.set_authored( true); // Author `token outputs:surface` - surfaceShader.useSpecularWorkflow = rmat.surfaceShader.useSpecularWorkFlow ? 1 : 0; + surfaceShader.useSpecularWorkflow = rmat.surfaceShader.useSpecularWorkflow ? 1 : 0; if (rmat.surfaceShader.diffuseColor.is_texture()) {