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
}
 

Functions

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

Variables

 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.

Parameters
[in]texflagThe texture flags.
Returns
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.

Parameters
[in]texflagThe texture flags.
Returns
The texture channel: CHANNEL

◆ MAX_MATERIALCHANNELS

#define MAX_MATERIALCHANNELS

The maximum number of channels in a Cinema 4D material.

◆ 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.

Parameters
[in]texflagThe texture flags.
[in]channelThe texture channel: CHANNEL
Returns
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.

Parameters
[in]texflagThe texture flags.
[in]channelThe texture channel: CHANNEL
[in]sampleThe bump sample:
  • 0 Left.
  • 1 Right.
  • 2 Above.
  • 3 Below.
Returns
The new texture flags.

◆ TransformColor() [1/2]

Vector TransformColor ( const Vector input,
COLORSPACETRANSFORMATION  colortransformation 
)

Transforms a color from one color profile to another.

Parameters
[in]inputThe color to transform.
[in]colortransformationThe color space transformation: COLORSPACETRANSFORMATION
Returns
The transformed color.

◆ TransformColor() [2/2]

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

Transforms a color from one color profile to another.

Parameters
[in]inputThe color to transform.
[in]colortransformationThe color space transformation: COLORSPACETRANSFORMATION
Returns
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.

Note
The container of the preview rendered document contains the path to the original document in ID DOCUMENT_SECONDARYPATH:
{
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
DOCUMENT_SECONDARYPATH
@ DOCUMENT_SECONDARYPATH
Definition: ddoc.h:117
Filename
Manages file and path names.
Definition: c4d_file.h:94
INITRENDERFLAG::PREVIEWRENDER
@ PREVIEWRENDER