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
/* eslint-disable no-underscore-dangle */ | |
/** | |
This code has been taken from BabylonJS | |
https://github.com/BabylonJS/Babylon.js/blob/master/src/Misc/videoRecorder.ts | |
and modified by Thorsten Bux ([email protected]) | |
* */ | |
type Nullable<T> = T | null; | |
/** | |
* Downloads a blob in the browser |
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
/* eslint-disable max-classes-per-file */ | |
class LowPassFilter { | |
y: number | null; | |
s: number | null; | |
alpha = 0; | |
constructor(alpha: number) { | |
this.setAlpha(alpha); |
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
const threePipelineModule = () => { | |
let scene3 | |
let _videoWidth | |
let _videoHeight | |
let fxaaPass = {} | |
return { | |
name : 'customthreemodule', | |
onStart : ({ canvas, canvasWidth, canvasHeight, videoWidth, videoHeight, GLctx }) => { | |
const scene = new window.THREE.Scene() | |
const camera = new window.THREE.PerspectiveCamera( |
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
I, the contributor hereby agree to always be awesome |