Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const extensionStates = this.props.globalState.glTFLoaderExtensionDefaults;
const loaderState = this.props.globalState.glTFLoaderDefaults;
var animationStartMode = [
{ label: "None", value: GLTFLoaderAnimationStartMode.NONE },
{ label: "First", value: GLTFLoaderAnimationStartMode.FIRST },
{ label: "ALL", value: GLTFLoaderAnimationStartMode.ALL }
];
var coordinateSystemMode = [
{ label: "Auto", value: GLTFLoaderCoordinateSystemMode.AUTO },
{ label: "Right handed", value: GLTFLoaderCoordinateSystemMode.FORCE_RIGHT_HANDED }
];
return (
<div>
</div>
extensionStates["KHR_materials_sheen"] = extensionStates["KHR_materials_sheen"] || { enabled: true };
extensionStates["KHR_materials_specular"] = extensionStates["KHR_materials_specular"] || { enabled: true };
extensionStates["KHR_materials_unlit"] = extensionStates["KHR_materials_unlit"] || { enabled: true };
extensionStates["KHR_lights_punctual"] = extensionStates["KHR_lights_punctual"] || { enabled: true };
extensionStates["KHR_texture_transform"] = extensionStates["KHR_texture_transform"] || { enabled: true };
extensionStates["EXT_lights_image_based"] = extensionStates["EXT_lights_image_based"] || { enabled: true };
const loaderState = this.props.globalState.glTFLoaderDefaults;
if (loaderState["animationStartMode"] === undefined) {
loaderState["animationStartMode"] = GLTFLoaderAnimationStartMode.FIRST;
}
loaderState["capturePerformanceCounters"] = loaderState["capturePerformanceCounters"] || false;
loaderState["compileMaterials"] = loaderState["compileMaterials"] || false;
loaderState["compileShadowGenerators"] = loaderState["compileShadowGenerators"] || false;
loaderState["coordinateSystemMode"] = loaderState["coordinateSystemMode"] || GLTFLoaderCoordinateSystemMode.AUTO;
loaderState["loggingEnabled"] = loaderState["loggingEnabled"] || false;
loaderState["transparencyAsCoverage"] = loaderState["transparencyAsCoverage"] || false;
loaderState["useClipPlane"] = loaderState["useClipPlane"] || false;
loaderState["validate"] = loaderState["validate"] || true;
}