finish changing voxel storage to a 1d aray

This commit is contained in:
0x01FE committed 2025-11-19 21:53:07 -06:00
1 parent 4925849747
commit 55d01e86c1
5 files changed
+26 -13

No files matched your search

+2 -2
View File
@@ -13,10 +13,10 @@ void main()
// You can now use v_VoxelKind to modify the color
// Example: Different colors for different voxel types
vec3 color = u_Color;
if (v_VoxelKind == 0.0) {
if (v_VoxelKind == 1.0) {
// Dirt - brownish
color *= vec3(0.6, 0.4, 0.2);
} else if (v_VoxelKind == 1.0) {
} else if (v_VoxelKind == 2.0) {
// Stone - grayish (keep as is)
}