From 0ee87d7b46c4e340554f25d38d01bc1accb8c826 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 10 Jan 2021 11:59:51 +0100 Subject: env map rendering --- src/extras/custompipes.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/extras/custompipes.cpp') diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index 2cecf1c0..f7f8bbe5 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -46,13 +46,14 @@ CustomMatCopy(void *dst, void *src, int32, int32) rw::TexDictionary *neoTxd; +bool bChromeCheat; bool bRenderingEnvMap; int32 EnvMapSize = 128; rw::Camera *EnvMapCam; rw::Texture *EnvMapTex; rw::Texture *EnvMaskTex; -static rw::RWDEVICE::Im2DVertex EnvScreenQuad[4]; -static int16 QuadIndices[6] = { 0, 1, 2, 0, 2, 3 }; +rw::RWDEVICE::Im2DVertex EnvScreenQuad[4]; +int16 QuadIndices[6] = { 0, 1, 2, 0, 2, 3 }; static rw::Camera* CreateEnvMapCam(rw::World *world) -- cgit v1.2.3 From c631e6c61c326ad17d4ee6483a8268720ea8a0f3 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 10 Jan 2021 14:32:37 +0100 Subject: env map tweaks --- src/extras/custompipes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extras/custompipes.cpp') diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index f7f8bbe5..379e7c8a 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -48,7 +48,7 @@ rw::TexDictionary *neoTxd; bool bChromeCheat; bool bRenderingEnvMap; -int32 EnvMapSize = 128; +int32 EnvMapSize = 256; rw::Camera *EnvMapCam; rw::Texture *EnvMapTex; rw::Texture *EnvMaskTex; -- cgit v1.2.3 From 93ea98520bb652095c9f09ed5032842963e2a86c Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 10 Jan 2021 19:45:58 +0100 Subject: mobile building rendering --- src/extras/custompipes.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/extras/custompipes.cpp') diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index 379e7c8a..1d147ed6 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -370,6 +370,7 @@ AttachVehiclePipe(rw::Clump *clump) * Neo World pipe */ +int32 WorldPipeSwitch = 0; bool LightmapEnable; float LightmapMult = 1.0f; InterpolatedFloat WorldLightmapBlend(1.0f); -- cgit v1.2.3 From 9b2037419f96c6627cb5f2a6f9d127ef1dcdb9df Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 12 Jan 2021 13:41:22 +0100 Subject: mobile vehicle rendering --- src/extras/custompipes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/extras/custompipes.cpp') diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index 1d147ed6..a636f8b0 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -48,7 +48,7 @@ rw::TexDictionary *neoTxd; bool bChromeCheat; bool bRenderingEnvMap; -int32 EnvMapSize = 256; +int32 EnvMapSize = 512; rw::Camera *EnvMapCam; rw::Texture *EnvMapTex; rw::Texture *EnvMaskTex; @@ -342,7 +342,7 @@ ReadTweakValueTable(char *fp, InterpolatedValue &interp) * Neo Vehicle pipe */ -int32 VehiclePipeSwitch = VEHICLEPIPE_MATFX; +int32 VehiclePipeSwitch = VEHICLEPIPE_PS2; float VehicleShininess = 1.0f; float VehicleSpecularity = 1.0f; InterpolatedFloat Fresnel(0.4f); -- cgit v1.2.3 From 55320a03f14c473b0fff89585713d2ebd8feb92a Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 12 Jan 2021 14:07:24 +0100 Subject: little cleanup of vehicle rendering --- src/extras/custompipes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extras/custompipes.cpp') diff --git a/src/extras/custompipes.cpp b/src/extras/custompipes.cpp index a636f8b0..247aa4b1 100644 --- a/src/extras/custompipes.cpp +++ b/src/extras/custompipes.cpp @@ -46,7 +46,7 @@ CustomMatCopy(void *dst, void *src, int32, int32) rw::TexDictionary *neoTxd; -bool bChromeCheat; +bool gGlassCarsCheat; bool bRenderingEnvMap; int32 EnvMapSize = 512; rw::Camera *EnvMapCam; -- cgit v1.2.3