Complete 3D metaverse platform with: - Three.js 3D rendering - Cannon.js physics engine - Pointer lock controls - Procedural cityscape - Floating islands - Portal system - Particle effects - WebXR/VR support ready - Multiplayer ready (Socket.io) Features: - First-person controls (WASD + mouse) - Jump and run mechanics - Chat system - Real-time HUD - Loading screen - Responsive design Built with Vite for fast builds and hot reload. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
473 B
JavaScript
26 lines
473 B
JavaScript
import { vec4, MeshBasicNodeMaterial } from '../../nodes/Nodes.js';
|
|
import QuadMesh from '../../objects/QuadMesh.js';
|
|
|
|
const quadMesh = new QuadMesh( new MeshBasicNodeMaterial() );
|
|
|
|
class PostProcessing {
|
|
|
|
constructor( renderer, outputNode = vec4( 0, 0, 1, 1 ) ) {
|
|
|
|
this.renderer = renderer;
|
|
this.outputNode = outputNode;
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
quadMesh.material.fragmentNode = this.outputNode;
|
|
|
|
quadMesh.render( this.renderer );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default PostProcessing;
|