Skip to content

Commit

Permalink
Change numeric constants to be compatible with Godot 3.5
Browse files Browse the repository at this point in the history
and strictly compatible with GLSL!
godotengine/godot#59316
  • Loading branch information
jamie-pate committed Jun 29, 2022
1 parent 7bee4cf commit b1abe2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/MagicaVoxelImporter/points.shader
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ uniform float show_normals : hint_range(0, 1);
// This only works if the mesh was imported with "Copy Bones to UV"
uniform float show_bone_weights : hint_range(0, 1);
varying vec2 voxel_size;
uniform float root_scale = 1.0f;
uniform float root_scale = 1.0;
uniform bool fast;
uniform bool sitting;
uniform float waist = 20f;
uniform float displacement_ratio = 5f;
uniform float waist = 20.0;
uniform float displacement_ratio = 5.0;
// increase lod bias to remove more voxels closer to the camera
uniform float lod_bias = 1.0;
// worst case lod reduction
Expand All @@ -32,7 +32,7 @@ float sit(float f)
{
return -f/displacement_ratio;
}
return 0f;
return 0.0;
}

void vertex() {
Expand Down

0 comments on commit b1abe2a

Please sign in to comment.