Missing change for fix e8c63066e3
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user