parseEffectParameterTextureExtraTechnique method
void
parseEffectParameterTextureExtraTechnique(
- XmlElement xml,
- dynamic data
Implementation
void parseEffectParameterTextureExtraTechnique(XmlElement xml, data ) {
for (final child in xml.descendantElements) {
switch ( child.name.local ) {
case 'repeatU':
case 'repeatV':
case 'offsetU':
case 'offsetV':
data['technique'][ child.name.local ] = double.parse( child.innerText );
break;
case 'wrapU':
case 'wrapV':
// some files have values for wrapU/wrapV which become NaN via int.parse
if ( child.innerText.toUpperCase() == 'TRUE' ) {
data['technique'][ child.name.local ] = 1;
} else if ( child.innerText.toUpperCase() == 'FALSE' ) {
data['technique'][ child.name.local ] = 0;
} else {
data['technique'][ child.name.local ] = int.parse( child.innerText);
}
break;
case 'bump':
data[ child.name.local ] = parseEffectExtraTechniqueBump( child );
break;
}
}
}