diff --git a/OpenRA.Mods.Common/Graphics/VoxelActorPreview.cs b/OpenRA.Mods.Common/Graphics/ModelActorPreview.cs similarity index 94% rename from OpenRA.Mods.Common/Graphics/VoxelActorPreview.cs rename to OpenRA.Mods.Common/Graphics/ModelActorPreview.cs index 8e3cc065f0..4d5ec1437c 100644 --- a/OpenRA.Mods.Common/Graphics/VoxelActorPreview.cs +++ b/OpenRA.Mods.Common/Graphics/ModelActorPreview.cs @@ -14,7 +14,7 @@ using OpenRA.Graphics; namespace OpenRA.Mods.Common.Graphics { - public class VoxelPreview : IActorPreview + public class ModelPreview : IActorPreview { readonly ModelAnimation[] components; readonly float scale; @@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Graphics readonly WVec offset; readonly int zOffset; - public VoxelPreview(ModelAnimation[] components, WVec offset, int zOffset, float scale, WAngle lightPitch, WAngle lightYaw, + public ModelPreview(ModelAnimation[] components, WVec offset, int zOffset, float scale, WAngle lightPitch, WAngle lightYaw, float[] lightAmbientColor, float[] lightDiffuseColor, WAngle cameraPitch, PaletteReference colorPalette, PaletteReference normalsPalette, PaletteReference shadowPalette) { diff --git a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj index 953fbab091..a1e83aa8f9 100644 --- a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj +++ b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj @@ -164,7 +164,7 @@ - + diff --git a/OpenRA.Mods.Common/Traits/Render/RenderVoxels.cs b/OpenRA.Mods.Common/Traits/Render/RenderVoxels.cs index 91bf8b5426..ae03812e3e 100644 --- a/OpenRA.Mods.Common/Traits/Render/RenderVoxels.cs +++ b/OpenRA.Mods.Common/Traits/Render/RenderVoxels.cs @@ -63,7 +63,7 @@ namespace OpenRA.Mods.Common.Traits.Render .SelectMany(rvpi => rvpi.RenderPreviewVoxels(init, this, image, init.GetOrientation(), facings, palette)) .ToArray(); - yield return new VoxelPreview(components, WVec.Zero, 0, Scale, LightPitch, + yield return new ModelPreview(components, WVec.Zero, 0, Scale, LightPitch, LightYaw, LightAmbientColor, LightDiffuseColor, body.CameraPitch, palette, init.WorldRenderer.Palette(NormalsPalette), init.WorldRenderer.Palette(ShadowPalette)); }