@@ -19,7 +19,7 @@ public Material_SpecularGlossiness(List<string> imageList)
19
19
// Track the common properties for use in the readme.
20
20
CommonProperties . Add ( new Property ( PropertyName . ExtensionUsed , "Specular Glossiness" ) ) ;
21
21
CommonProperties . Add ( new Property ( PropertyName . ExtensionRequired , "Specular Glossiness" ) ) ;
22
- CommonProperties . Add ( new Property ( PropertyName . BaseColorTexture , baseColorTextureImage ) ) ;
22
+ CommonProperties . Add ( new Property ( PropertyName . BaseColorTexture , baseColorTextureImage . ToReadmeString ( ) ) ) ;
23
23
24
24
Model CreateModel ( Action < List < Property > , Runtime . MeshPrimitive , Runtime . Material , KHR_materials_pbrSpecularGlossiness > setProperties )
25
25
{
@@ -80,40 +80,40 @@ void SetVertexColor(List<Property> properties, Runtime.MeshPrimitive meshPrimiti
80
80
void SetDiffuseTexture ( List < Property > properties , KHR_materials_pbrSpecularGlossiness extension )
81
81
{
82
82
extension . DiffuseTexture = new Runtime . Texture { Source = diffuseTextureImage } ;
83
- properties . Add ( new Property ( PropertyName . DiffuseTexture , diffuseTextureImage ) ) ;
83
+ properties . Add ( new Property ( PropertyName . DiffuseTexture , diffuseTextureImage . ToReadmeString ( ) ) ) ;
84
84
}
85
85
86
86
void SetDiffuseFactor ( List < Property > properties , KHR_materials_pbrSpecularGlossiness extension )
87
87
{
88
88
var diffuseFactorValue = new Vector4 ( 0.2f , 0.2f , 0.2f , 0.8f ) ;
89
89
extension . DiffuseFactor = diffuseFactorValue ;
90
- properties . Add ( new Property ( PropertyName . DiffuseFactor , diffuseFactorValue ) ) ;
90
+ properties . Add ( new Property ( PropertyName . DiffuseFactor , diffuseFactorValue . ToReadmeString ( ) ) ) ;
91
91
}
92
92
93
93
void SetSpecularGlossinessTexture ( List < Property > properties , KHR_materials_pbrSpecularGlossiness extension )
94
94
{
95
95
extension . SpecularGlossinessTexture = new Runtime . Texture { Source = specularGlossinessTextureImage } ;
96
- properties . Add ( new Property ( PropertyName . SpecularGlossinessTexture , specularGlossinessTextureImage ) ) ;
96
+ properties . Add ( new Property ( PropertyName . SpecularGlossinessTexture , specularGlossinessTextureImage . ToReadmeString ( ) ) ) ;
97
97
}
98
98
99
99
void SetSpecularFactor ( List < Property > properties , KHR_materials_pbrSpecularGlossiness extension )
100
100
{
101
101
var specularFactorValue = new Vector3 ( 0.4f , 0.4f , 0.4f ) ;
102
102
extension . SpecularFactor = specularFactorValue ;
103
- properties . Add ( new Property ( PropertyName . SpecularFactor , specularFactorValue ) ) ;
103
+ properties . Add ( new Property ( PropertyName . SpecularFactor , specularFactorValue . ToReadmeString ( ) ) ) ;
104
104
}
105
105
106
106
void SetSpecularFactorToZero ( List < Property > properties , KHR_materials_pbrSpecularGlossiness extension )
107
107
{
108
108
var specularFactorValue = new Vector3 ( 0.0f , 0.0f , 0.0f ) ;
109
109
extension . SpecularFactor = specularFactorValue ;
110
- properties . Add ( new Property ( PropertyName . SpecularFactor , specularFactorValue ) ) ;
110
+ properties . Add ( new Property ( PropertyName . SpecularFactor , specularFactorValue . ToReadmeString ( ) ) ) ;
111
111
}
112
112
113
113
void SetGlossinessFactor ( List < Property > properties , KHR_materials_pbrSpecularGlossiness extension )
114
114
{
115
115
extension . GlossinessFactor = 0.3f ;
116
- properties . Add ( new Property ( PropertyName . GlossinessFactor , extension . GlossinessFactor ) ) ;
116
+ properties . Add ( new Property ( PropertyName . GlossinessFactor , extension . GlossinessFactor . ToReadmeString ( ) ) ) ;
117
117
}
118
118
119
119
Models = new List < Model >
0 commit comments