Changeset 8728:91e36f94becc in orange


Ignore:
Timestamp:
08/17/11 23:14:23 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
ae8a794c7859db094314e9080ec95308d7febc53
Message:

Fixed transparency

Location:
orange/OrangeWidgets/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot3d.py

    r8727 r8728  
    622622        self.symbol_program.setUniformValue(self.symbol_program_force_color,    0., 0., 0., 0.) 
    623623 
    624         glEnable(GL_DEPTH_TEST) 
    625         glDisable(GL_BLEND) 
     624        glDisable(GL_DEPTH_TEST) 
     625        glEnable(GL_BLEND) 
     626        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) 
     627 
    626628        glBindVertexArray(self.feedback_vao) 
    627629        glDrawArrays(GL_TRIANGLES, 0, self.num_primitives_generated*3) 
  • orange/OrangeWidgets/plot/symbol.vs

    r8724 r8728  
    7575    { 
    7676        pos = abs(pos); 
    77         float manhattan_distance = max(max(pos.x, pos.y), pos.z)+5.; 
     77        float manhattan_distance = max(max(pos.x, pos.y), pos.z)+0.5; 
    7878        float a = min(pow(min(1., 1. / manhattan_distance), 5.), transparency.x); 
    7979 
Note: See TracChangeset for help on using the changeset viewer.