Skip to content

Commit

Permalink
siren rc 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dyama committed Jun 27, 2014
1 parent f246ce3 commit c6dbf42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sirenenv/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ void display(const TopoDS_Shape& shape)

if (type == TopAbs_COMPOUND || type == TopAbs_SOLID || type == TopAbs_SHELL || type == TopAbs_FACE) {

Handle(Graphic3d_ShaderProgram) myShader;
myShader = new Graphic3d_ShaderProgram(Graphic3d_ShaderProgram::ShaderName_Phong);
hashape->Attributes()->ShadingAspect()->Aspect()->SetShaderProgram(myShader);
//Handle(Graphic3d_ShaderProgram) myShader;
//myShader = new Graphic3d_ShaderProgram(Graphic3d_ShaderProgram::ShaderName_Phong);
//hashape->Attributes()->ShadingAspect()->Aspect()->SetShaderProgram(myShader);

cur->aiscxt->SetMaterial(hashape, /*Graphic3d_NameOfMaterial::*/Graphic3d_NOM_DEFAULT);
cur->aiscxt->SetDisplayMode(hashape, 1/* 0:wireframe, 1:shading */, Standard_False);
Expand Down

0 comments on commit c6dbf42

Please sign in to comment.