Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dotnet-websharper/threejs.trackballcontrols

Three.js TrackballControls for WebSharper
https://github.com/dotnet-websharper/threejs.trackballcontrols

Last synced: 7 days ago
JSON representation

Three.js TrackballControls for WebSharper

Awesome Lists containing this project

README

        

# TrackballControls

WebSharper binding for TrackballControls, which enables controlling a three.js camera with mouse or touchscreen.

## Example
```fsharp
let camera = new THREE.PerspectiveCamera(45., 16./9.)

let controls = new THREE.TrackballControls(camera)

//---
//Render loop
[]
let render (frame : unit -> unit) = X

let rec frame () =
renderer.render(scene, camera)
controls.Update()

render frame
//---
```