Skip to content
Myr

version number, doc tweaks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent 98537b7 · Browse files · 1 file+10 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−8 removed

  • other:+10 added−8 removed

1 file+10 added−8 removed

modified:stb_voxel_render.h+10 added-8 removed
1// stb_voxel_render.h - v0.84 - Sean Barrett, 2015 - public domain1// stb_voxel_render.h - v0.85 - Sean Barrett, 2015 - public domain2//3// This library helps render large-scale "voxel" worlds for games,4// in this case, one with blocks that can have textures and that5// can also be a few shapes other than cubes.
6 unmodified lines
12//13// It works by creating triangle meshes. The library includes14//15// - converter from dense 3D arrays of block info to vertex mesh16// - shader for the vertex mesh16// - vertex & fragment shaders for the vertex mesh17// - assistance in setting up shader state18//19// For portability, none of the library code actually accesses20// the 3D graphics API. (At the moment, it's not actually portable
2 unmodified lines
23// You have to do all the caching and tracking of vertex buffers24// yourself. However, you could also try making a game with25// a small enough world that it's fully loaded rather than26// streaming. Currently the preferred vertex format is 20 bytes27// per quad. There are plans to allow much more compact formats28// with a slight reduction in shader features.27// per quad. There are designs to allow much more compact formats28// with a slight reduction in shader features, but no roadmap29// for actually implementing them.30//31//32// USAGE33//
74 unmodified lines
108// instead. This increases the size of some of those tables,109// and avoids a potential slow path (gathering non-uniform110// data from uniforms) on some hardware.111//111// In the future I hope to add additional modes that have significantly112// In the future I might add additional modes that have significantly113// smaller meshes but reduce features, down as small as 6 bytes per quad.114// See elsewhere in this file for a table of candidate modes. Switching115// to a mode will require changing some of your mesh creation code, but116// everything else should be seamless. (And I'd like to change the API
70 unmodified lines
187// Features Porting Bugfixes & Warnings188// Sean Barrett github:r-leyh Jesus Fernandez189// Miguel Lechon github:Arbeiterunfallversicherungsgesetz190// Thomas Frase James Hofmann190// Stephen Olsen191// Stephen Olsen github:guitarfreak192//193// VERSION HISTORY194//195// 0.85 (2017-03-03) add block_selector (by guitarfreak)196// 0.84 (2016-04-02) fix GLSL syntax error on glModelView path197// 0.83 (2015-09-13) remove non-constant struct initializers to support more compilers198// 0.82 (2015-08-01) added input.packed_compact to store rot, vheight & texlerp efficiently199// fix broken tex_overlay2
63 unmodified lines
263// single mesh has twice the legal Z range; e.g. in264// modes 0,1,20,21, Z in the mesh can extend to 511 instead265// of 255. However, half-height blocks cannot be used.266//265// All of the following just #ifdef tested so need no values, and are optional.267// All of the following are just #ifdef tested so need no values, and are optional.268//269// STBVOX_CONFIG_BLOCKTYPE_SHORT270// use unsigned 16-bit values for 'blocktype' in the input instead of 8-bit values271//
31 unmodified lines
303// and relative_pos is the vector from the point to the camera in worldspace304//305// STBVOX_CONFIG_DISABLE_TEX2306// This disables all processing of texture 2 in the shader in case305// you don't use it. Eventually this will be replaced with a mode307// you don't use it. Eventually this could be replaced with a mode308// that omits the unused data entirely.309//310// STBVOX_CONFIG_TEX1_EDGE_CLAMP311// STBVOX_CONFIG_TEX2_EDGE_CLAMP
3492 unmodified lines