Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} else {
this.props.sceneNavigator.push(sceneKey, {scene:scene, passProps:{title:sceneKey}});
}
}
}
});
const styles = StyleSheet.create({
centeredText: {
fontSize: 30,
fontFamily: 'Arial',
color: '#ffffff',
}
});
ViroMaterials.createMaterials({
blue: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#0000ff"
},
black: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#000000"
},
red: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#ff0000"
},
box_texture: {
_onObjectLoadStart(index) {
return () => {
this.props.onLoadCallback(index, LoadConstants.LOADING);
};
},
_onObjectLoadEnd(index) {
return () => {
this.props.onLoadCallback(index, LoadConstants.LOADED);
//this.props.arSceneNavigator.viroAppProps.loadingObjectCallback(index, LoadingConstants.LOADED);
};
},
});
ViroMaterials.createMaterials({
transparentFloor: {
diffuseColor: "#ff000000",
},
porsche: {
diffuseTexture: require("../res/car_porsche/Porsche911turboS_diff.jpg"),
},
bball: {
diffuseTexture: require("../res/bball/bball.jpg"),
},
ring: {
diffuseTexture: require("../res/portal_ring/portal_ring.png"),
},
tesla: {
shininess: 1.0,
lightingModel:"Blinn",
},
backgroundColor: '#FFFFFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
color: '#333333',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
ViroMaterials.createMaterials({
blue: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#0000ff"
},
black: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#000000"
},
red: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#ff0000"
},
wework_title: {
if (currentVideo + 1 < videos.length){
this.setState({
videoIndex: (currentVideo + 1),
videoPaused: false
});
}
},
});
ViroAnimations.registerAnimations({
fadeOut:{properties:{opacity: 0.0}, duration: 500},
fadeIn:{properties:{opacity: 1.0}, duration: 500},
});
ViroMaterials.createMaterials({
opaqueWhite: {
shininess: 2.0,
lightingModel: "Lambert",
diffuseColor: "#FFFFFF"
},
});
module.exports = ViroTheatre;
snowRate={1.0}
fallSpeed={1.0}
windShear={1.0} />
);
},
});
var styles = StyleSheet.create({
helloWorldTextStyle: {
fontFamily: 'HelveticaNeue-Medium',
fontSize: 40,
color: '#ffffff',
},
});
ViroMaterials.createMaterials({
ground:{
cullMode: "None",
shininess: 2.0,
diffuseColor: "#ff9999",
lightingModel: "Blinn",
}
});
module.exports = ViroParticleTemplates;