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
| /** | |
| "by/composed by": https://x.com/bandinopla | |
| Based on article by Roman Liutikov: https://romanliutikov.com/blog/ps1-style-graphics-in-threejs | |
| Modifications done with DeepSeek: https://chat.deepseek.com/ | |
| */ | |
| import * as THREE from 'three'; | |
| export class PS1Material extends THREE.ShaderMaterial { | |
| constructor({ map, color }: { map: THREE.Texture, color:THREE.ColorRepresentation }) { | |
| super({ |
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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| usage() { | |
| cat <<EOF |