This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SCREEN_WIDTH; | |
var SCREEN_HEIGHT; | |
var canvas, context; | |
var container, stats; | |
var controls; | |
var pathTracingScene, screenTextureScene, screenOutputScene; | |
var pathTracingUniforms, screenTextureUniforms, screenOutputUniforms; | |
var pathTracingDefines; | |
var pathTracingVertexShader, pathTracingFragmentShader; | |
var pathTracingGeometry, pathTracingMaterial, pathTracingMesh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 300 es | |
precision highp float; | |
precision highp int; | |
precision highp sampler2D; | |
#include <pathtracing_uniforms_and_defines> | |
uniform mat4 uTorusInvMatrix; | |
uniform mat3 uTorusNormalMatrix; |