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
use std::{ | |
marker::PhantomData, | |
ops::{Add, Mul}, | |
}; | |
trait Field: Copy + Default + Add<Output = Self> + Mul<Output = Self> {} | |
/* | |
We want a TowerField struct, such that it can be multiplied by itself or any subfield. |
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
import { Grid, Instance, InstancedAttribute, Instances, OrbitControls, PerformanceMonitor, shaderMaterial, Stats, StatsGl } from "@react-three/drei"; | |
import { Canvas, createRoot, events, extend, ThreeElements, useFrame } from "@react-three/fiber"; | |
import { useControls } from "leva"; | |
import GUI from "lil-gui"; | |
import React, { useEffect, useRef, useState } from 'react'; | |
import * as THREE from 'three'; | |
extend(THREE); | |
console.log('hi'); |
OlderNewer