Skip to content

Commit

Permalink
flat rendering, not smooth
Browse files Browse the repository at this point in the history
An improvement that should have been made before closing tt-acm#5
  • Loading branch information
bhowes-tt committed Aug 26, 2015
1 parent c8269ab commit 60b29b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Spectacles.RevitExporter/SpectaclesExportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ SpectaclesContainer.SpectaclesMaterial m
m.color = iColor;
m.ambient = m.color;
m.emissive = 0;
m.shading = 1;
m.opacity = 1; // 128 - material.Transparency;
m.opacity = 1.0 - node.Transparency; // Revit MaterialNode has double Transparency in ?range?, three.js expects opacity in [0.0,1.0]
m.transparent = 0.0 < node.Transparency;
Expand Down

0 comments on commit 60b29b4

Please sign in to comment.