feat: initialize project with core dependencies and game entry point
This commit is contained in:
40
node_modules/three/examples/jsm/postprocessing/FXAAPass.js
generated
vendored
Normal file
40
node_modules/three/examples/jsm/postprocessing/FXAAPass.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
import { FXAAShader } from '../shaders/FXAAShader.js';
|
||||
import { ShaderPass } from './ShaderPass.js';
|
||||
|
||||
/**
|
||||
* A pass for applying FXAA.
|
||||
*
|
||||
* ```js
|
||||
* const fxaaPass = new FXAAPass();
|
||||
* composer.addPass( fxaaPass );
|
||||
* ```
|
||||
*
|
||||
* @augments ShaderPass
|
||||
* @three_import import { FXAAPass } from 'three/addons/postprocessing/FXAAPass.js';
|
||||
*/
|
||||
class FXAAPass extends ShaderPass {
|
||||
|
||||
/**
|
||||
* Constructs a new FXAA pass.
|
||||
*/
|
||||
constructor() {
|
||||
|
||||
super( FXAAShader );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the size of the pass.
|
||||
*
|
||||
* @param {number} width - The width to set.
|
||||
* @param {number} height - The height to set.
|
||||
*/
|
||||
setSize( width, height ) {
|
||||
|
||||
this.material.uniforms[ 'resolution' ].value.set( 1 / width, 1 / height );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export { FXAAPass };
|
||||
Reference in New Issue
Block a user