Beispiel #1
0
            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;
            }
Beispiel #2
0
 public MyDebrisVoxel()
 {
     GameLogic = new MyDebrisVoxelLogic();
     Render = new Components.MyRenderComponentDebrisVoxel();
 }
Beispiel #3
0
 public MyDebrisVoxel()
 {
     GameLogic = new MyDebrisVoxelLogic();
     Render    = new Components.MyRenderComponentDebrisVoxel();
 }