|
@@ -488,6 +488,11 @@
|
|
|
|
|
|
parameters.color = parseColor( properties.Diffuse );
|
|
parameters.color = parseColor( properties.Diffuse );
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ if ( properties.DisplacementFactor ) {
|
|
|
|
+
|
|
|
|
+ parameters.displacementScale = parseFloat( properties.DisplacementFactor );
|
|
|
|
+
|
|
}
|
|
}
|
|
if ( properties.Specular ) {
|
|
if ( properties.Specular ) {
|
|
|
|
|
|
@@ -496,7 +501,7 @@
|
|
}
|
|
}
|
|
if ( properties.Shininess ) {
|
|
if ( properties.Shininess ) {
|
|
|
|
|
|
- parameters.shininess = properties.Shininess.value;
|
|
|
|
|
|
+ parameters.shininess = parseFloat( properties.Shininess.value );
|
|
|
|
|
|
}
|
|
}
|
|
if ( properties.Emissive ) {
|
|
if ( properties.Emissive ) {
|
|
@@ -511,7 +516,7 @@
|
|
}
|
|
}
|
|
if ( properties.Opacity ) {
|
|
if ( properties.Opacity ) {
|
|
|
|
|
|
- parameters.opacity = properties.Opacity.value;
|
|
|
|
|
|
+ parameters.opacity = parseFloat( properties.Opacity.value );
|
|
|
|
|
|
}
|
|
}
|
|
if ( parameters.opacity < 1.0 ) {
|
|
if ( parameters.opacity < 1.0 ) {
|