forked from shama/voxel-texture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rotation in GLSL per side. Textures finally correct!
At last, texture atlasing with greedy meshing. In summary, used the UV coordinates from three.js (may be a better way to do this?) as the starting tile texture offsets, then repeated with tile UVs from fract() of pos . n. Works but this custom shader is very basic at the moment. Ref voxel/voxelmetaverse#19
- Loading branch information
Showing
1 changed file
with
39 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters