Skip to content

Instantly share code, notes, and snippets.

@erichlof
Created May 14, 2025 18:43
Show Gist options
  • Save erichlof/f3e0b6ef0eb3c4449f485f7df5ac9790 to your computer and use it in GitHub Desktop.
Save erichlof/f3e0b6ef0eb3c4449f485f7df5ac9790 to your computer and use it in GitHub Desktop.
Experimenting with more traditional, unbiased Monte Carlo rendering
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js PathTracing Renderer - Monte Carlo Rendering</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<link href="css/default.css" rel="stylesheet">
<script type="importmap">
{
"imports": {
"three": "./js/three.module.min.js"
}
}
</script>
<script type="module">
import * as THREE from 'three';
window.THREE = THREE;
import Stats from './js/stats.module.js';
window.Stats = Stats;
import GUI from './js/lil-gui.module.min.js';
window.GUI = GUI;
</script>
</head>
<body>
<div id="container"> </div>
<div id="info">three.js PathTracing Renderer - Monte Carlo Rendering</div>
<div id="cameraInfo" style="position:fixed; left:3%; bottom:2%; font-family:arial; color:rgb(255,255,255);"></div>
<script defer src="js/MobileJoystickControls.js"> </script>
<script defer src="js/PathTracingCommon.js"> </script>
<script defer src="js/InitCommon.js"> </script>
<script defer src="js/Monte_Carlo_Rendering.js"> </script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment