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 logo from './logo.svg'; | |
import './App.css'; | |
import { Canvas, useFrame, useThree, extend, useLoader } from 'react-three-fiber' | |
import { Line, Text, useTexture } from '@react-three/drei'; | |
import * as THREE from 'three' | |
import { useRef, Suspense } from 'react' | |
import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls' | |
extend({OrbitControls}) | |
// react, react three fiber, background, load 360 image | |
const deg2rad = degrees => degrees * (Math.PI / 180); |
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
defmodule Hydra do | |
use GenServer | |
def run(data) do | |
{:ok, pid} = GenServer.start(__MODULE__, data, []) | |
GenServer.cast(pid, :process) | |
end | |
def init(data) do | |
{:ok, data} |