Pruebas Babylonjs

Developer
Size
1,940 Kb
Views
10,120

How do I make an pruebas babylonjs?

What is a pruebas babylonjs? How do you make a pruebas babylonjs? This script and codes were developed by Juan Manuel on 27 December 2022, Tuesday.

Pruebas Babylonjs Previews

Pruebas Babylonjs - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pruebas Babylonjs</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id="main">Tu navegador no soporta Canvas. Actualiízate a Mozilla Firefox</canvas> <script src='https://cdnjs.cloudflare.com/ajax/libs/babylonjs/2.5.0/babylon.js'></script> <script src="js/index.js"></script>
</body>
</html>

Pruebas Babylonjs - Script Codes CSS Codes

 html, body, canvas{ margin: 0; padding: 0; width: 100%; height: 100%;
}

Pruebas Babylonjs - Script Codes JS Codes

var canvas = document.getElementById("main");
var engine = new BABYLON.Engine(canvas);
var scene = new BABYLON.Scene(engine);
scene.clearColor = new BABYLON.Color3(0.6,0.6,0.6);
function renderLoop(){ box.rotation.x += 0.01; box.rotation.y += 0.01; scene.render();
}
engine.runRenderLoop(renderLoop);
var camera = new BABYLON.FreeCamera("camera", new BABYLON.Vector3(0,0,-10),scene);
var light = new BABYLON.PointLight("light", new BABYLON.Vector3(10,10,0),scene);
var box = new BABYLON.Mesh.CreateBox("box",2,scene);
box.rotation.x = -0.8;
box.rotation.y = -0.4;
box.material = new BABYLON.StandardMaterial("material",scene);
box.material.emmisiveColor = new BABYLON.Color3(255, 1, 1);
Pruebas Babylonjs - Script Codes
Pruebas Babylonjs - Script Codes
Home Page Home
Developer Juan Manuel
Username juanmanuelcarnerero
Uploaded December 27, 2022
Rating 3
Size 1,940 Kb
Views 10,120
Do you need developer help for Pruebas Babylonjs?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Juan Manuel (juanmanuelcarnerero) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!