Ejemplo n.º 1
0
 public void BeforeRender(WorldRenderer wr)
 {
     renderProxy = Game.Renderer.WorldVoxelRenderer.RenderAsync(
         wr, voxels, camera, scale, groundNormal, lightSource,
         lightAmbientColor, lightDiffuseColor,
         palette, normalsPalette, shadowPalette);
 }
Ejemplo n.º 2
0
        public void BeforeRender(WorldRenderer wr)
        {
            var draw = voxels.Where(v => v.DisableFunc == null || !v.DisableFunc());

            renderProxy = Game.Renderer.WorldVoxelRenderer.RenderAsync(
                wr, draw, camera, scale, groundNormal, lightSource,
                lightAmbientColor, lightDiffuseColor,
                palette, normalsPalette, shadowPalette);
        }
Ejemplo n.º 3
0
 public VoxelRenderable(IEnumerable <VoxelAnimation> voxels, WPos pos, int zOffset, WRot camera, float scale,
                        WRot lightSource, float[] lightAmbientColor, float[] lightDiffuseColor,
                        PaletteReference color, PaletteReference normals, PaletteReference shadow)
 {
     this.voxels            = voxels;
     this.pos               = pos;
     this.zOffset           = zOffset;
     this.scale             = scale;
     this.camera            = camera;
     this.lightSource       = lightSource;
     this.lightAmbientColor = lightAmbientColor;
     this.lightDiffuseColor = lightDiffuseColor;
     this.palette           = color;
     this.normalsPalette    = normals;
     this.shadowPalette     = shadow;
     this.renderProxy       = null;
 }
Ejemplo n.º 4
0
		public VoxelRenderable(IEnumerable<VoxelAnimation> voxels, WPos pos, int zOffset, WRot camera, float scale,
		                       WRot lightSource, float[] lightAmbientColor, float[] lightDiffuseColor,
		                       PaletteReference color, PaletteReference normals, PaletteReference shadow)
		{
			this.voxels = voxels;
			this.pos = pos;
			this.zOffset = zOffset;
			this.scale = scale;
			this.camera = camera;
			this.lightSource = lightSource;
			this.lightAmbientColor = lightAmbientColor;
			this.lightDiffuseColor = lightDiffuseColor;
			this.palette = color;
			this.normalsPalette = normals;
			this.shadowPalette = shadow;
			this.renderProxy = null;
		}
Ejemplo n.º 5
0
			public FinalizedVoxelRenderable(WorldRenderer wr, VoxelRenderable voxel)
			{
				this.voxel = voxel;
				var draw = voxel.voxels.Where(v => v.DisableFunc == null || !v.DisableFunc());

				renderProxy = Game.Renderer.WorldVoxelRenderer.RenderAsync(
					wr, draw, voxel.camera, voxel.scale, VoxelRenderable.GroundNormal, voxel.lightSource,
					voxel.lightAmbientColor, voxel.lightDiffuseColor,
					voxel.palette, voxel.normalsPalette, voxel.shadowPalette);
			}
Ejemplo n.º 6
0
		public void BeforeRender(WorldRenderer wr)
		{
			var draw = voxels.Where(v => v.DisableFunc == null || !v.DisableFunc());

			renderProxy = Game.Renderer.WorldVoxelRenderer.RenderAsync(
				wr, draw, camera, scale, groundNormal, lightSource,
				lightAmbientColor, lightDiffuseColor,
				palette, normalsPalette, shadowPalette);
		}
Ejemplo n.º 7
0
 public void BeforeRender(WorldRenderer wr)
 {
     renderProxy = Game.Renderer.WorldVoxelRenderer.RenderAsync(
         wr, voxels, camera, scale, groundNormal, lightSource,
         lightAmbientColor, lightDiffuseColor,
         palette, normalsPalette, shadowPalette);
 }