Thanks to visit codestin.com
Credit goes to github.com

Skip to content

angular-threejs/angular-three

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,526 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Three workspace

Netlify Status

  • Angular Three: Angular Three Netlify Status
  • Angular Three Demo: Angular Three Demo Netlify Status
  • Angular Three Soba: Angular Three Soba Netlify Status

Here, you'll find the source code for the entire angular-three ecosystem, the documentation, and the examples.

Documentation

The documentation is available at angularthree.netlify.app.

Examples

The examples are available at angularthreedemo.netlify.app.

Features

Pierced Props

Angular Three supports "pierced" property bindings that allow you to set individual components of vector/math properties:

<!-- Instead of setting the entire rotation vector -->
<ngt-mesh [rotation]="[-Math.PI / 2, 0, 0]" />

<!-- You can set individual components -->
<ngt-mesh [rotation.x]="-Math.PI / 2" />

This also works for nested properties like shadow configuration on lights:

<ngt-directional-light
	[castShadow]="true"
	[shadow.mapSize.width]="2048"
	[shadow.mapSize.height]="2048"
	[shadow.camera.near]="0.5"
	[shadow.camera.far]="500"
	[shadow.camera.left]="-10"
	[shadow.camera.right]="10"
/>

Supported pierced properties include:

  • Vector2/3/4: x, y, z, w
  • Euler (rotation): x, y, z
  • Quaternion: x, y, z, w
  • Color: r, g, b
  • Shadow (on lights): shadow.intensity, shadow.bias, shadow.mapSize.width, shadow.camera.near, etc.

About

Angular Renderer for THREE.js

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors