c4d_shader.h File Reference

Classes

class  OcioConverter
 
class  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 class  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)
 
Vector64 TransformColor (const Vector64 &input, COLORSPACETRANSFORMATION colortransformation)
 
maxon::Color64 TransformColor (const maxon::Color64 &input, COLORSPACETRANSFORMATION colortransformation)
 
maxon::Color32 TransformColor (const maxon::Color32 &input, COLORSPACETRANSFORMATION colortransformation)
 
void TransformColors (Vector64 *v, Int count, COLORSPACETRANSFORMATION colorSpaceTransformation)
 

Variables

 NONE
 
 TEXTURES
 
 PAINTERNOMIP
 
 NOMIP
 
 PREVIEWRENDER
 
 IRR
 
class OcioConverter 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/3]

Vector64 TransformColor ( const Vector64 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/3]

maxon::Color64 TransformColor ( const maxon::Color64 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() [3/3]

maxon::Color32 TransformColor ( const maxon::Color32 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.

◆ TransformColors()

void TransformColors ( Vector64 v,
Int  count,
COLORSPACETRANSFORMATION  colorSpaceTransformation 
)

Transforms an array of colors from one color profile to another.

Parameters
[in]vThe color array to transform.
[in]countNumber of points to transform.
[in]colorSpaceTransformationThe color space transformation: COLORSPACETRANSFORMATION

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);
}
}
Manages file and path names.
Definition: c4d_file.h:94
@ DOCUMENT_SECONDARYPATH
Definition: ddoc.h:122

◆ IRR

IRR

Interactive region render.

◆ MAXON_ENUM_FLAGS

class OcioConverter MAXON_ENUM_FLAGS