Ignore:
Timestamp:
Jun 5, 2012 12:08:41 PM (12 years ago)
Author:
ldelgass
Message:

Protocol, control for two-sided lighting in volume shader. Cutplane rendering
changes -- don't need to clip cutplanes, use simplified cutplane shader instead of switch in main volume shader. Still need to fix cutplanes of zincblende
volumes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nanovis2/packages/vizservers/nanovis/ConvexPolygon.h

    r2877 r3023  
    3939
    4040    // Clips the polygon, retaining the portion where ax + by + cz + d >= 0
    41     void clip(Plane& clipPlane, bool copyToTexcoords);
     41    bool clip(Plane& clipPlane, bool copyToTexcoords);
    4242
    4343    void emit(bool useTexture);
     
    6363    }
    6464
    65     bool isRetained(const Vector4& point, const Vector4& plane)
    66     {
    67         return ((point * plane) >= 0); 
    68     }
    69 
    7065    VertexVector vertices;
    7166    TexVector texcoords;
Note: See TracChangeset for help on using the changeset viewer.