跳到主要内容

RenderSettingsFlag

Ploy3D / RenderSettingsFlag

Enumeration: RenderSettingsFlag

渲染设置标记。

Table of contents

Enumeration Members

Enumeration Members

Attributes0

Attributes0 = 1

包含顶点缓存布局0中定义的顶点属性(坐标、法线、切线、UV)。


Attributes1

Attributes1 = 2

包含顶点缓存布局1中定义的顶点属性(骨骼索引、骨骼权重)。


Attributes2

Attributes2 = 4

包含顶点缓存布局2中定义的顶点属性(保留,未使用)。


CastShadows

CastShadows = 16

投射阴影。


Morphing

Morphing = 128

子网格形变。


Props_baseTex

Props_baseTex = 256

定义并赋值了baseColor属性贴图。


Props_blendMode

Props_blendMode = 28

最高4位记录混合模式索引。


Props_clearCoat

Props_clearCoat = 131072

定义并赋值了清漆层参数。


Props_cloth

Props_cloth = 33554432

使用布料光照模型。


Props_combining_roughness_metallic

Props_combining_roughness_metallic = 2048

是否合并metallicTex和roughnessTex为一张贴图。


Props_doubleSided

Props_doubleSided = 262144

定义双面渲染。


Props_emissiveIntensity

Props_emissiveIntensity = 32768

定义了emissiveIntensity并且赋值大于0。


Props_emissiveTex

Props_emissiveTex = 65536

定义并赋值了emissiveColor属性贴图。


Props_light_aoTex

Props_light_aoTex = 16384

定义并赋值了环境光遮蔽贴图。


Props_metallicTex

Props_metallicTex = 512

定义并赋值了metallic属性贴图。


Props_normalTex

Props_normalTex = 4096

定义并赋值了法线贴图。


Props_normalTexFlipY

Props_normalTexFlipY = 8192

定义并赋值了法线贴图,法线贴图Y通道需要翻转(使用OpenGL格式)。 红色成分在右边为凸,左边为凹。 凸情况下:绿色成分大的在上为OpenGL格式的,在下为DirectX格式 凹情况下:绿色成分大的在下为OpenGL格式的,在上为DirectX格式


Props_reflections

Props_reflections = 524288

启用反射。


Props_roughnessTex

Props_roughnessTex = 1024

定义并赋值了roughness属性贴图。


Props_specular_glossiness

Props_specular_glossiness = 134217728

使用SPECULAR_GLOSSINESS参数,将转换为标准PBR参数。


Props_sssTex

Props_sssTex = 1048576

定义并赋值了SSS属性贴图。


Props_subsurface

Props_subsurface = 67108864

使用次表面光照模型。


Props_unlit

Props_unlit = 16777216

不受光照影响。


ReceiveShadows

ReceiveShadows = 32

接收阴影。


Skinning

Skinning = 64

骨骼蒙皮。