diff --git a/addons/terrabrush/Resources/Shaders/foliage_multimesh_shader_include.gdshaderinc b/addons/terrabrush/Resources/Shaders/foliage_multimesh_shader_include.gdshaderinc index 80c6d43..cc3deb7 100644 --- a/addons/terrabrush/Resources/Shaders/foliage_multimesh_shader_include.gdshaderinc +++ b/addons/terrabrush/Resources/Shaders/foliage_multimesh_shader_include.gdshaderinc @@ -205,7 +205,7 @@ void calculateFoliageVertex(int instanceID, inout vec3 vertex, inout vec3 normal } } else { // Disable instance - vertex.y = 0.0; // Scale down the mesh so it "vanish" + vertex = vec3(0.0); // Scale down the mesh so it "vanish" } cellWidth = pow(float(2), float(currentLODLevel - 1)) * InitialCellWidth; @@ -239,7 +239,7 @@ void calculateFoliageVertex(int instanceID, inout vec3 vertex, inout vec3 normal if (zoneUV.z < 0.0) { // Disable instance - vertex.y = 0.0; // Scale down the mesh so it "vanish" + vertex = vec3(0.0); // Scale down the mesh so it "vanish" } else { vec4 foliagePosition = texture(FoliageTextures, zoneUV); bool foliagePresence = false; @@ -261,7 +261,7 @@ void calculateFoliageVertex(int instanceID, inout vec3 vertex, inout vec3 normal vec4 heightMapPosition = texture(HeightmapTextures, zoneUV); if (heightMapPosition.g > 0.0) { // Disable instance - vertex.y = 0.0; // Scale down the mesh so it "vanish" + vertex = vec3(0.0); // Scale down the mesh so it "vanish" } else { float height = heightMapPosition.x; @@ -312,7 +312,7 @@ void calculateFoliageVertex(int instanceID, inout vec3 vertex, inout vec3 normal } } else { // Disable instance - vertex.y = 0.0; // Scale down the mesh so it "vanish" + vertex = vec3(0.0); // Scale down the mesh so it "vanish" } } } diff --git a/addons/terrabrush/plugin.cfg b/addons/terrabrush/plugin.cfg index e42cbb3..dde5174 100644 --- a/addons/terrabrush/plugin.cfg +++ b/addons/terrabrush/plugin.cfg @@ -3,5 +3,5 @@ name="TerraBrush" description="" author="spimort" -version="0.9.2-alpha" +version="0.9.3-alpha" script="Plugin.cs"