Missing change for fix e8c63066e3

This commit is contained in:
2026-08-03 07:47:30 +02:00
parent d845eb54ce
commit 8632890068
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ void Foliage::DrawInstance(DrawContext& context, FoliageInstance& instance, int3
Matrix::Transformation(transform.Scale, transform.Orientation, translation, instance.CachedDrawWorld);
instance.CachedDrawWorldValid = true;
}
instanceData.Store(instance.CachedDrawWorld, instance.CachedDrawWorld, instance.LightmapUVsArea, drawCall.Surface.GeometrySize, instance.Random, worldDeterminantSign, (byte)(lodDitherFactor * 255));
instanceData.Store(instance.CachedDrawWorld, instance.CachedDrawWorld, instance.LightmapUVsArea, drawCall.Surface.GeometrySize, instance.Random, worldDeterminantSign, (int8)(lodDitherFactor * 127));
}
}
@@ -10,7 +10,7 @@
/// <summary>
/// Current materials shader version.
/// </summary>
#define MATERIAL_GRAPH_VERSION 186
#define MATERIAL_GRAPH_VERSION 185
class Material;
class GPUShader;
+1 -1
View File
@@ -78,7 +78,7 @@ void ShaderObjectData::Load(Matrix& worldMatrix, Matrix& prevWorldMatrix, Half4&
geometrySize = Float3(Raw[6]);
perInstanceRandom = Raw[6].W;
uint32 packed7x = *(uint32*)&Raw[7].X;
lodDitherFactor = packed7x & 255;
lodDitherFactor = (packed7x & 127) * ((packed7x & 128) == 128 ? -1 : 1);
worldDeterminantSign = (packed7x & 256) == 256 ? -1.0f : 1.0f;
skinningOffset = *(uint32*)&Raw[7].Y;
skinningPrevOffset = (packed7x >> 16) - 32760;