Commit 99b1f1ce authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

Proper shading for GlutPrimitve in Shader Pipeline.

parent 7b1f0cfa
Pipeline #685 passed with stage
......@@ -435,13 +435,14 @@ getRenderObjects(IRenderer* _renderer, GLState& _state , const DrawModes::DrawM
Material localMaterial = *_mat;
if (setColor_)
{
localMaterial.color(primitives_[i].color);
localMaterial.ambientColor(primitives_[i].color);
//localMaterial.color(primitives_[i].color);
//localMaterial.ambientColor(primitives_[i].color);
localMaterial.diffuseColor(primitives_[i].color);
localMaterial.baseColor(primitives_[i].color);
localMaterial.baseColor(primitives_[i].color * .5);
}
ro.setMaterial(&localMaterial);
ro.shaderDesc.shadeMode = SG_SHADE_PHONG;
switch (primitives_[i].type) {
case SPHERE:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment