Skip to content

Commit

Permalink
shadertools: Normalize specularColor (#2171)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored Aug 9, 2024
1 parent 9d7d297 commit b672704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export const gouraudMaterial: ShaderModule<GouraudMaterialProps> = {
if (uniforms.specularColor) {
uniforms.specularColor = uniforms.specularColor.map(x => x / 255) as NumberArray3;
}
return {...gouraudMaterial.defaultUniforms, ...props};
return {...gouraudMaterial.defaultUniforms, ...uniforms};
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export const phongMaterial: ShaderModule<PhongMaterialProps> = {
if (uniforms.specularColor) {
uniforms.specularColor = uniforms.specularColor.map(x => x / 255) as NumberArray3;
}
return {...phongMaterial.defaultUniforms, ...props};
return {...phongMaterial.defaultUniforms, ...uniforms};
}
};

0 comments on commit b672704

Please sign in to comment.