Beispiel #1
0
        internal override void FillCullingInformation(MeshCulling culling)
        {
            base.FillCullingInformation(culling);

            if (ReplacementMeshes.Any())
            {
                var builder = new GeometryBuilder();
                foreach (var meshRef in ReplacementMeshes)
                {
                    builder.CombineGeometry(meshRef.GetGeometry(true));
                }

                if (Surface.SurfaceID == 0)
                {
                    builder.RemoveTextureCoords();
                }

                culling.ReplacementMesh = builder.GetGeometry();
            }
        }