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
Private
.
Function Documentation
◆
CALC_TEXINFO()
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()
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]
Transforms a color from one color profile to another.
-
参数
-
-
返回
-
The transformed color.
◆
TransformColor()
[2/2]
Transforms a color from one color profile to another.
-
参数
-
-
返回
-
The transformed color.
Variable Documentation
◆
NONE
No flags.
◆
TEXTURES
Use textures.
◆
PAINTERNOMIP
Disable MIP for painting.
◆
NOMIP
Disable MIP.
◆
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
Interactive region render.
◆
MAXON_ENUM_FLAGS