@@ -41,8 +41,8 @@ public override Material GenerateMaterial(GLTFastMaterial gltfMaterial, IGltfRea
4141 {
4242 var specGloss = gltfMaterial . extensions . KHR_materials_pbrSpecularGlossiness ;
4343
44- SetColor ( specGloss . diffuseColor ) ;
45- SetSpecularColor ( specGloss . specularColor ) ;
44+ SetColor ( specGloss . DiffuseColor ) ;
45+ SetSpecularColor ( specGloss . SpecularColor ) ;
4646 SetGlossiness ( specGloss . glossinessFactor ) ;
4747 SetBaseMapTexture ( specGloss . diffuseTexture , gltf ) ;
4848 SetSpecularMapTexture ( specGloss . specularGlossinessTexture , gltf ) ;
@@ -56,7 +56,7 @@ public override Material GenerateMaterial(GLTFastMaterial gltfMaterial, IGltfRea
5656
5757 if ( roughness != null )
5858 {
59- SetColor ( roughness . baseColor ) ;
59+ SetColor ( roughness . BaseColor ) ;
6060 SetBaseMapTexture ( roughness . baseColorTexture , gltf ) ;
6161 SetMetallic ( roughness . metallicFactor ) ;
6262 SetMetallicRoughnessTexture ( gltf , roughness . metallicRoughnessTexture , roughness . roughnessFactor ) ;
@@ -65,10 +65,10 @@ public override Material GenerateMaterial(GLTFastMaterial gltfMaterial, IGltfRea
6565
6666 SetBumpMapTexture ( gltfMaterial . normalTexture , gltf ) ;
6767 SetOcclusionTexture ( gltfMaterial . occlusionTexture , gltf ) ;
68- SetEmissiveColor ( gltfMaterial . emissive ) ;
68+ SetEmissiveColor ( gltfMaterial . Emissive ) ;
6969 SetEmissiveTexture ( gltfMaterial . emissiveTexture , gltf ) ;
7070
71- SetAlphaMode ( gltfMaterial . alphaModeEnum , gltfMaterial . alphaCutoff ) ;
71+ SetAlphaMode ( gltfMaterial . GetAlphaMode ( ) , gltfMaterial . alphaCutoff ) ;
7272 SetDoubleSided ( gltfMaterial . doubleSided ) ;
7373
7474 SRPBatchingHelper . OptimizeMaterial ( material ) ;
@@ -216,7 +216,7 @@ private void SetAlphaMode(GLTFastMaterial.AlphaMode alphaMode, float alphaCutoff
216216 {
217217 switch ( alphaMode )
218218 {
219- case GLTFastMaterial . AlphaMode . MASK :
219+ case GLTFastMaterial . AlphaMode . Mask :
220220 material . SetOverrideTag ( ShaderUtils . RENDERER_TYPE , "TransparentCutout" ) ;
221221 material . SetInt ( ShaderUtils . SrcBlend , ( int ) BlendMode . One ) ;
222222 material . SetInt ( ShaderUtils . DstBlend , ( int ) BlendMode . Zero ) ;
@@ -231,7 +231,7 @@ private void SetAlphaMode(GLTFastMaterial.AlphaMode alphaMode, float alphaCutoff
231231
232232 break ;
233233
234- case GLTFastMaterial . AlphaMode . BLEND :
234+ case GLTFastMaterial . AlphaMode . Blend :
235235 material . SetOverrideTag ( ShaderUtils . RENDERER_TYPE , "Transparent" ) ;
236236 material . SetInt ( ShaderUtils . SrcBlend , ( int ) BlendMode . SrcAlpha ) ;
237237 material . SetInt ( ShaderUtils . DstBlend , ( int ) BlendMode . OneMinusSrcAlpha ) ;
0 commit comments