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
 

Namespaces

 cinema
 

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 cinema::INITRENDERFLAG MAXON_ENUM_FLAGS (INITRENDERFLAG)
 
Vector64 BasicTransformColor (const Vector64 &input, COLORSPACETRANSFORMATION colortransformation)
 
maxon::Color64 BasicTransformColor (const maxon::Color64 &input, COLORSPACETRANSFORMATION colortransformation)
 
maxon::Color32 BasicTransformColor (const maxon::Color32 &input, COLORSPACETRANSFORMATION colortransformation)
 
void BasicTransformColors (Vector64 *v, Int count, COLORSPACETRANSFORMATION colorSpaceTransformation)
 

Variables

 NONE
 
 TEXTURES
 
 PAINTERNOMIP
 
 NOMIP
 
 PREVIEWRENDER
 
 IRR
 

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.

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)
{
const Filename originalPath = irs.doc->GetDataInstanceRef().GetFilename(DOCUMENT_SECONDARYPATH);
}
}
PREVIEWRENDER
Definition: c4d_shader.h:4
@ DOCUMENT_SECONDARYPATH
Definition: ddoc.h:122

◆ IRR

IRR

Interactive region render.