From 4bb7bae218a02a04c3c006f07fdbba833cbfafd9 Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Sat, 2 Apr 2022 00:00:15 +0300 Subject: [PATCH] fixed pssm glitches --- resources/managed_materials/managed_mats_vehicles.material | 6 ++++++ .../managed_materials/shadows/pssm/on/shadows.material | 1 + resources/materials/character.material | 1 + 3 files changed, 8 insertions(+) diff --git a/resources/managed_materials/managed_mats_vehicles.material b/resources/managed_materials/managed_mats_vehicles.material index 1f4b6a755a..b0804e1a01 100644 --- a/resources/managed_materials/managed_mats_vehicles.material +++ b/resources/managed_materials/managed_mats_vehicles.material @@ -8,6 +8,7 @@ material managed/flexmesh_standard/simple //Texture is rendred here pass BaseRender { + depth_bias -0.1 -0.1 texture_unit Diffuse_Map { texture_alias unknown.dds @@ -23,6 +24,7 @@ material managed/flexmesh_standard/damageonly //Texture is rendred here pass BaseRender { + depth_bias -0.1 -0.1 diffuse vertexcolour texture_unit Diffuse_Map { @@ -46,6 +48,7 @@ material managed/flexmesh_standard/specularonly //Texture is rendred here pass BaseRender { + depth_bias -0.1 -0.1 texture_unit Diffuse_Map { texture_alias unknown.dds @@ -65,6 +68,7 @@ material managed/flexmesh_standard/speculardamage //Texture is rendred here pass BaseRender { + depth_bias -0.1 -0.1 diffuse vertexcolour texture_unit Diffuse_Map { @@ -91,6 +95,7 @@ material managed/mesh_standard/simple //Texture is rendred here pass BaseRender { + depth_bias -0.1 -0.1 texture_unit Diffuse_Map { texture_alias unknown.dds @@ -106,6 +111,7 @@ material managed/mesh_standard/specular //Texture is rendred here pass BaseRender { + depth_bias -0.1 -0.1 texture_unit Diffuse_Map { texture_alias unknown.dds diff --git a/resources/managed_materials/shadows/pssm/on/shadows.material b/resources/managed_materials/shadows/pssm/on/shadows.material index 414d8db0dd..9c53b81b40 100644 --- a/resources/managed_materials/shadows/pssm/on/shadows.material +++ b/resources/managed_materials/shadows/pssm/on/shadows.material @@ -4,6 +4,7 @@ abstract technique Shadows/managed/base_receiver { ambient 1 1 1 1 diffuse 1 1 1 1 + depth_bias 0.1 0.1 vertex_program_ref PSSM/shadow_receiver_vs {} fragment_program_ref PSSM/shadow_receiver_ps {} diff --git a/resources/materials/character.material b/resources/materials/character.material index 31fc3376a6..8baeae2139 100644 --- a/resources/materials/character.material +++ b/resources/materials/character.material @@ -6,6 +6,7 @@ material tracks/character: RoR/Managed_Mats/Base { pass BaseRender { + depth_bias -20 texture_unit Diffuse_Map 1 { texture character.dds