public void Start(Vector3D position, Vector3D initialVelocity, float scale, MyVoxelMaterialDefinition mat) { Components.MyRenderComponentDebrisVoxel voxelDebrisRender = Container.Entity.Render as Components.MyRenderComponentDebrisVoxel; voxelDebrisRender.TexCoordOffset = MyUtils.GetRandomFloat(5, 15); voxelDebrisRender.TexCoordScale = MyUtils.GetRandomFloat(8, 12); voxelDebrisRender.VoxelMaterialIndex = mat.Index; base.Start(position, initialVelocity, scale); Container.Entity.Render.NeedsResolveCastShadow = true; Container.Entity.Render.FastCastShadowResolve = true; }
public MyDebrisVoxel() { GameLogic = new MyDebrisVoxelLogic(); Render = new Components.MyRenderComponentDebrisVoxel(); }
public MyDebrisVoxel() { GameLogic = new MyDebrisVoxelLogic(); Render = new Components.MyRenderComponentDebrisVoxel(); }