1037 this->SetLightingEnabled(_material->LightingEnabled());
1038 this->SetAmbient(_material->Ambient());
1039 this->SetDiffuse(_material->Diffuse());
1040 this->SetSpecular(_material->Specular());
1041 this->SetEmissive(_material->Emissive());
1042 this->SetRenderOrder(_material->RenderOrder());
1043 this->SetShininess(_material->Shininess());
1044 this->SetAlphaFromTexture(_material->TextureAlphaEnabled(),
1045 _material->AlphaThreshold(), _material->TwoSidedEnabled());
1047 this->SetTransparency(_material->Transparency());
1049 this->SetDepthCheckEnabled(_material->DepthCheckEnabled());
1050 this->SetDepthWriteEnabled(_material->DepthWriteEnabled());
1051 this->SetReflectivity(_material->Reflectivity());
1052 this->SetCastShadows(_material->CastShadows());
1053 this->SetReceiveShadows(_material->ReceiveShadows());
1054 this->SetReflectionEnabled(_material->ReflectionEnabled());
1055 this->SetTexture(_material->Texture(), _material->TextureData());
1056 this->SetNormalMap(_material->NormalMap(), _material->NormalMapData());
1057 this->SetRoughnessMap(_material->RoughnessMap(),
1058 _material->RoughnessMapData());
1059 this->SetMetalnessMap(_material->MetalnessMap(),
1060 _material->MetalnessMapData());
1061 this->SetRoughness(_material->Roughness());
1062 this->SetMetalness(_material->Metalness());
1063 this->SetEnvironmentMap(_material->EnvironmentMap(),
1064 _material->EnvironmentMapData());
1065 this->SetEmissiveMap(_material->EmissiveMap(),
1066 _material->EmissiveMapData());
1067 this->SetLightMap(_material->LightMap(), _material->LightMapData(),
1068 _material->LightMapTexCoordSet());
1069 this->SetShaderType(_material->ShaderType());
1070 this->SetVertexShader(_material->VertexShader());
1071 this->SetFragmentShader(_material->FragmentShader());
1078 this->SetLightingEnabled(_material.
Lighting());
1079 this->SetAmbient(_material.
Ambient());
1080 this->SetDiffuse(_material.
Diffuse());
1081 this->SetSpecular(_material.
Specular());
1082 this->SetEmissive(_material.
Emissive());
1083 this->SetShininess(_material.
Shininess());
1089 this->SetReflectivity(0);
1092 this->SetCastShadows(
true);
1094 this->SetReceiveShadows(
true);
1096 this->SetReflectionEnabled(
true);
1098 this->ClearNormalMap();
1108 this->SetRoughness(pbrMat->
Roughness());
1109 this->SetMetalness(pbrMat->
Metalness());
1136 this->SetLightingEnabled(
true);
1137 this->SetDepthCheckEnabled(
true);
1138 this->SetDepthWriteEnabled(
true);
1139 this->SetAmbient(0.3, 0.3, 0.3);
1140 this->SetDiffuse(1.0, 1.0, 1.0);
1141 this->SetSpecular(0.2, 0.2, 0.2);
1142 this->SetEmissive(0, 0, 0);
1143 this->SetRenderOrder(0);
1144 this->SetShininess(1.5);
1145 this->SetTransparency(0);
1146 this->SetReflectivity(0);
1147 this->SetCastShadows(
true);
1148 this->SetReceiveShadows(
true);
1149 this->SetReflectionEnabled(
true);
1150 this->ClearTexture();
1151 this->ClearNormalMap();
1152 this->ClearRoughnessMap();
1153 this->ClearMetalnessMap();
1154 this->ClearEmissiveMap();
1155 this->ClearLightMap();