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
 
struct  ShaderReadData
 

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_SHADERV5TOV6
 
#define MSG_SHADERV6TOV7
 
#define MSG_SHADERREAD
 
#define MSG_RENAMETEXTURES
 

Enumerations

enum  INITRENDERFLAG {
  INITRENDERFLAG_0,
  INITRENDERFLAG_TEXTURES,
  INITRENDERFLAG_PAINTERNOMIP,
  INITRENDERFLAG_NOMIP,
  INITRENDERFLAG_PREVIEWRENDER,
  INITRENDERFLAG_IRR
}
 

Functions

Int32 CALC_TEXINFO (Int32 texflag, Int32 channel)
 
Int32 CALC_TEXINFO_BUMP (Int32 texflag, Int32 channel, Int32 sample)
 
Vector TransformColor (const Vector &input, COLORSPACETRANSFORMATION colortransformation)
 

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()

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.