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/Vector3.h

    r3007 r3023  
    2626{
    2727public:
    28     float x, y, z;
    29 
    3028    Vector3()
    3129    {}
     
    177175    }
    178176
     177    float x, y, z;
     178
    179179private:
    180180    float radians(float degree) const
     
    186186typedef std::vector<Vector3> Vector3Array;
    187187
     188/**
     189 * \brief Linear interpolation of 2 vectors
     190 */
     191inline Vector3 vlerp(const Vector3& v1, const Vector3& v2, double t)
     192{
     193    return Vector3(v1.x * (1.0-t) + v2.x * t,
     194                   v1.y * (1.0-t) + v2.y * t,
     195                   v1.z * (1.0-t) + v2.z * t);
     196}
     197
    188198#endif
Note: See TracChangeset for help on using the changeset viewer.