Nuke binary plugins  14.0.8
slr::SlrVertex Class Reference

Public Member Functions

const float * array () const
 
float * array ()
 
const float & operator[] (int32_t i) const
 
float & operator[] (int32_t i)
 
float x () const
 
float y () const
 
float z () const
 
float w () const
 
const fdk::Vec4f & rgba () const
 
fdk::Vec4f & rgba ()
 
const fdk::Vec3f & rgb () const
 
fdk::Vec3f & rgb ()
 
float r () const
 
float g () const
 
float b () const
 
float a () const
 
float opacity () const
 
void setToZero ()
 Set all attribs to 0.
 
void lerp (const SlrVertex &b, float t)
 Destructive linear interpolate between this and SlrVertex b by t.
 
void offset (const SlrVertex &b, const SlrVertex &delta, float t)
 Sets all attribs to b+delta*t.
 
void scale (float s)
 Scale all attribs.
 
void offset (const SlrVertex &b, const SlrVertex &dx, float x, const SlrVertex &dy, float y)
 Sets all attribs to b+dx*x+dy*y.
 
void midpoint (const SlrVertex &a, const SlrVertex &b)
 Sets all attribs to the midpoint between a and b ((a+b)/2).
 

Public Attributes

float black
 0 Chan_Black - unused padding
 
fdk::Vec4f Cf
 1 Chan_Red..Chan_Alpha
 
fdk::Vec4f P
 5 Chan_Px..Chan_Pw
 
fdk::Vec4f UV
 9 Chan_UVx..Chan_UVw
 
fdk::Vec3f N
 13 Chan_Nx..Chan_Nz
 
fdk::Vec3f PL
 16 Chan_PLx..Chan_PLz
 
fdk::Vec3f PW
 19 Chan_PWx..Chan_PWz
 
fdk::Vec3f MB
 22 Chan_MBx..Chan_MBz
 
fdk::Vec3f VEL
 25 Chan_VELx..Chan_VELz
 

Friends

std::ostream & operator<< (std::ostream &, const SlrVertex &)
 

Detailed Description

Fixed-size array of floating point numbers that are interpolated across a render primitive. This currently matches legacy ScanlineRender but can be expanded.

An SlrShadingContext contains 3 of these: the current value, and the derivatives horizontally and vertically.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com