This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- ... --> | |
<script | |
src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js" | |
integrity="sha512-dLxUelApnYxpLt6K2iomGngnHO83iUvZytA3YjDUCjT0HDOHKXnVYdf3hU4JjM8uEhxf9nD1/ey98U3t2vZ0qQ==" | |
crossorigin="anonymous" | |
referrerpolicy="no-referrer" | |
></script> |
This file contains 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
import { BufferAttribute, BufferGeometry } from 'three' | |
export const outerWidth = 200 | |
export const outerLength = 200 | |
export default class LandscapeGeometry extends BufferGeometry { | |
private innerWidth: number | |
private innerLength: number | |
constructor (inWidth = 200, inLength = 100) { |
This file contains 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
import express from 'express' | |
import axios from 'axios' | |
const app = express() | |
// settings: | |
const steam_url = 'https://steamcommunity.com/openid/login' | |
const steam_api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' // don't share it 🙈 | |
const service_url = 'http://localhost:83' | |
const login_path = '/login' | |
const login_cb_path = '/login_callback' |