Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 755 Bytes

orthographic-camera.mdx

File metadata and controls

26 lines (21 loc) · 755 Bytes
title sourcecode
OrthographicCamera
src/core/OrthographicCamera.tsx

A responsive THREE.OrthographicCamera that can set itself as the default.

<OrthographicCamera makeDefault {...props}>
  <mesh />
</OrthographicCamera>

You can use the OrthographicCamera to film contents into a RenderTarget, it has the same API as PerspectiveCamera.

<OrthographicCamera position={[0, 0, 10]}>
  {(texture) => (
    <mesh geometry={plane}>
      <meshBasicMaterial map={texture} />
    </mesh>
  )}
</OrthographicCamera>