VPFragment Struct Reference

#include <c4d_shader.h>

详细描述

另请参阅
VolumeData::GetFragments

Public Attributes

RayHitID   id
UChar   subx
UChar   suby
Int16   weight
RayObject op
Vector32   color
Float   z
向量   p
向量   n
VPFragment next

Member Data Documentation

◆  id

RayHitID id

Fragment ID.

◆  subx

UChar subx

A valid sub-X position that is covered by the fragment; where a ray can safely be created that will intersect the fragment: 0 <= subx <= 15 .

◆  suby

UChar suby

A valid sub-Y position that is covered by the fragment; where a ray can safely be created that will intersect the fragment: 0 <= suby <= 15 .

◆  weight

Int16 weight

The weight of the fragment. 256 = 16x16 = full pixel; 0 = empty pixel.

◆  op

RayObject * op

Fragment object.

◆  color

Vector32 color

Fragment color.

◆  z

Float z

Z depth at the subx / suby position.

◆  p

向量 p

Global intersection point at the subx / suby position.

◆  n

向量 n

Normal at the subx / suby position.

◆  next

VPFragment * next

The next fragment, or nullptr if this is the last.