0.15.3 • Published 8 years ago

voxel-shader v0.15.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

voxel-shader

Shader for use with voxel-mesher.

Based on @mikolalysenko's ao-shader

Requires voxel-stitch for textures, game-shell-fps-camera for camera view matrix, and indirectly voxel-mesher through game.voxels.meshes.

Usage

Load with voxel-plugins

Options:

  • perspectiveResize: if true (default), listens for gl-resize game-shell event and updates projection matrix
  • cameraNear, cameraFar: camera near and far clipping planes
  • cameraFOV: field of view in degrees (note: call updateProjectionMatrix() after changing any of the camera options, see camera-debug)

When the plugin is enabled, it will automatically listen for gl-init and gl-render events from game-shell, for initializing and rendering the scene.

Operation

Voxels are rendered in two passes, refer to the voxel-mesher documentation for further details.

#Credits (c) 2013 Mikola Lysenko, (c) 2014 deathcap. MIT License

0.15.3

8 years ago

0.15.2

8 years ago

0.15.1

9 years ago

0.15.0

9 years ago

0.14.0

9 years ago

0.13.1

10 years ago

0.13.0

10 years ago

0.12.0

10 years ago

0.11.1

10 years ago

0.11.0

10 years ago

0.10.0

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago