6 public const int Index = 261;
13 Color sideColor =
new(180, 170, 160);
68 List<BlockDropValue> dropValues,
69 out
bool showDebris) {
77 return Color.
Lerp(
new Color(128, 110, 110),
new Color(255, 255, 220), num / 4.2949673E+09f);
virtual void GenerateCubeVertices(Block block, int value, int x, int y, int z, Color color, TerrainGeometrySubset[] subsetsByFace)
float DestructionDebrisScale
virtual int GetFaceTextureSlot(int face, int value)
static void DrawCubeBlock(PrimitivesRenderer3D primitivesRenderer, int value, Vector3 size, ref Matrix matrix, Color color, Color topColor, DrawBlockEnvironmentData environmentData)
BoundingBox[] m_collisionBoxes
override BoundingBox[] GetCustomCollisionBoxes(SubsystemTerrain terrain, int value)
override void GetDropValues(SubsystemTerrain subsystemTerrain, int oldValue, int newValue, int toolLevel, List< BlockDropValue > dropValues, out bool showDebris)
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
override BlockDebrisParticleSystem CreateDebrisParticleSystem(SubsystemTerrain subsystemTerrain, Vector3 position, int value, float strength)
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
static Color GetColor(int x, int y, int z)
TerrainGeometrySubset[] AlphaTestSubsetsByFace
static int ToCell(float x)
static Color Lerp(Color c1, Color c2, float f)