c4d_shader.h File Reference

Classes

struct   InitRenderStruct
struct   RayIllumination
struct   TexData
struct   Ray
struct   RayHitID
struct   SurfaceIntersection
struct   Multipass
struct   BaseVolumeData
struct   ChannelData
struct   RenameTextureMessage
struct   VPFragment

Macros

#define  TEX_TILE
#define  TEX_MIRROR
#define  TEX_ALPHA
#define  TEX_BUMP
#define  GET_TEX_BUMP_SAMPLE (texflag)
#define  GET_TEX_CHANNEL (texflag)
#define  MAX_MATERIALCHANNELS
#define  CHANNEL_COLOR
#define  CHANNEL_LUMINANCE
#define  CHANNEL_TRANSPARENCY
#define  CHANNEL_REFLECTION
#define  CHANNEL_ENVIRONMENT
#define  CHANNEL_FOG
#define  CHANNEL_BUMP
#define  CHANNEL_ALPHA
#define  CHANNEL_SPECULAR
#define  CHANNEL_SPECULARCOLOR
#define  CHANNEL_GLOW
#define  CHANNEL_DISPLACEMENT
#define  CHANNEL_DIFFUSION
#define  CHANNEL_NORMAL
#define  CHANNEL_ANY
#define  BASECHANNEL_COLOR_EX
#define  BASECHANNEL_BRIGHTNESS_EX
#define  BASECHANNEL_MIXMODE_EX
#define  BASECHANNEL_MIXSTRENGTH_EX
#define  BASECHANNEL_TEXTURE
#define  BASECHANNEL_BLUR_OFFSET
#define  BASECHANNEL_BLUR_STRENGTH
#define  BASECHANNEL_INTERPOLATION
#define  BASECHANNEL_TIME_FROM
#define  BASECHANNEL_TIME_TO
#define  BASECHANNEL_TIME_FPS
#define  BASECHANNEL_TIME_MODE
#define  BASECHANNEL_TIME_TIMING
#define  BASECHANNEL_TIME_START
#define  BASECHANNEL_TIME_END
#define  BASECHANNEL_TIME_LOOPS
#define  BASECHANNEL_SHADERID
#define  BASECHANNEL_SUGGESTEDFOLDER
#define  SIDE_FRONT_AND_BACK
#define  SIDE_FRONT
#define  SIDE_BACK
#define  L_SPLIT_BIT
#define  MSG_GETALLASSETS
#define  MSG_RENAMETEXTURES

Enumerations

enum   INITRENDERFLAG {
   NONE ,
   TEXTURES ,
   PAINTERNOMIP ,
   NOMIP ,
   PREVIEWRENDER ,
   IRR
}

函数

Int32   CALC_TEXINFO ( Int32 texflag, Int32 channel)
Int32   CALC_TEXINFO_BUMP ( Int32 texflag, Int32 channel, Int32 sample)
enum INITRENDERFLAG   MAXON_ENUM_FLAGS ( INITRENDERFLAG )
向量   TransformColor (const 向量 &input, COLORSPACETRANSFORMATION colortransformation)
maxon::Color   TransformColor (const maxon::Color &input, COLORSPACETRANSFORMATION colortransformation)

变量

  NONE
  TEXTURES
  PAINTERNOMIP
  NOMIP
  PREVIEWRENDER
  IRR
struct InitRenderStruct   MAXON_ENUM_FLAGS

Macro Definition Documentation

◆  GET_TEX_BUMP_SAMPLE

#define GET_TEX_BUMP_SAMPLE (   texflag )

Extracts the bump sample from texflag .

参数
[in] texflag The texture flags.
返回
The bump sample:
  • 0 Left.
  • 1 Right.
  • 2 Above.
  • 3 Below.

◆  GET_TEX_CHANNEL

#define GET_TEX_CHANNEL (   texflag )

Extracts the texture channel from texflag .

参数
[in] texflag The texture flags.
返回
The texture channel: CHANNEL

◆  MAX_MATERIALCHANNELS

#define MAX_MATERIALCHANNELS

The maximum number of channels in a Cinema 4D 材质。

◆  L_SPLIT_BIT

#define L_SPLIT_BIT

Private .

Function Documentation

◆  CALC_TEXINFO()

Int32 CALC_TEXINFO ( Int32   texflag ,
Int32   channel  
)

Inserts channel information into the texture flags.

参数
[in] texflag The texture flags.
[in] channel The texture channel: CHANNEL
返回
The new texture flags.

◆  CALC_TEXINFO_BUMP()

Int32 CALC_TEXINFO_BUMP ( Int32   texflag ,
Int32   channel ,
Int32   sample  
)

Inserts channel and bump sample information into the texture flags.

参数
[in] texflag The texture flags.
[in] channel The texture channel: CHANNEL
[in] sample The bump sample:
  • 0 Left.
  • 1 Right.
  • 2 Above.
  • 3 Below.
返回
The new texture flags.

◆  TransformColor() [1/2]

向量 TransformColor ( const 向量 input ,
COLORSPACETRANSFORMATION   colortransformation  
)

Transforms a color from one color profile to another.

参数
[in] input The color to transform.
[in] colortransformation The color space transformation: COLORSPACETRANSFORMATION
返回
The transformed color.

◆  TransformColor() [2/2]

maxon::Color TransformColor ( const maxon::Color input ,
COLORSPACETRANSFORMATION   colortransformation  
)

Transforms a color from one color profile to another.

参数
[in] input The color to transform.
[in] colortransformation The color space transformation: COLORSPACETRANSFORMATION
返回
The transformed color.

Variable Documentation

◆  NONE

NONE

No flags.

◆  TEXTURES

TEXTURES

Use textures.

◆  PAINTERNOMIP

PAINTERNOMIP

Disable MIP for painting.

◆  NOMIP

NOMIP

Disable MIP.

◆  PREVIEWRENDER

PREVIEWRENDER

Preview render.

注意
The container of the preview rendered document contains the path to the original document in ID DOCUMENT_SECONDARYPATH : if (irs.flags & INITRENDERFLAG::PREVIEWRENDER ) { if (irs.doc && irs.doc->GetDataInstance()) { const Filename originalPath = irs.doc->GetDataInstance()->GetFilename( DOCUMENT_SECONDARYPATH ); } }

◆  IRR

IRR

Interactive region render.

◆  MAXON_ENUM_FLAGS

struct InitRenderStruct MAXON_ENUM_FLAGS
Filename
Manages file and path names.
定义: c4d_file.h:93
INITRENDERFLAG::PREVIEWRENDER
@ PREVIEWRENDER
DOCUMENT_SECONDARYPATH
@ DOCUMENT_SECONDARYPATH
定义: ddoc.h:117