Skip to content

Commit

Permalink
set depth_bias only on character/vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Mar 22, 2022
1 parent 625e582 commit 973dccb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions resources/managed_materials/managed_mats_vehicles.material
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ material managed/flexmesh_standard/simple
//Texture is rendred here
pass BaseRender
{
depth_bias -20
texture_unit Diffuse_Map
{
texture_alias unknown.dds
Expand All @@ -23,6 +24,7 @@ material managed/flexmesh_standard/damageonly
//Texture is rendred here
pass BaseRender
{
depth_bias -20
diffuse vertexcolour
texture_unit Diffuse_Map
{
Expand All @@ -46,6 +48,7 @@ material managed/flexmesh_standard/specularonly
//Texture is rendred here
pass BaseRender
{
depth_bias -20
texture_unit Diffuse_Map
{
texture_alias unknown.dds
Expand All @@ -65,6 +68,7 @@ material managed/flexmesh_standard/speculardamage
//Texture is rendred here
pass BaseRender
{
depth_bias -20
diffuse vertexcolour
texture_unit Diffuse_Map
{
Expand All @@ -91,6 +95,7 @@ material managed/mesh_standard/simple
//Texture is rendred here
pass BaseRender
{
depth_bias -20
texture_unit Diffuse_Map
{
texture_alias unknown.dds
Expand All @@ -106,6 +111,7 @@ material managed/mesh_standard/specular
//Texture is rendred here
pass BaseRender
{
depth_bias -20
texture_unit Diffuse_Map
{
texture_alias unknown.dds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ abstract technique Shadows/managed/base_receiver
{
pass BaseRender
{
depth_bias -20
ambient 1 1 1 1
diffuse 1 1 1 1

Expand Down
1 change: 1 addition & 0 deletions resources/materials/character.material
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ material tracks/character: RoR/Managed_Mats/Base
{
pass BaseRender
{
depth_bias -20
texture_unit Diffuse_Map 1
{
texture character.dds
Expand Down

0 comments on commit 973dccb

Please # to comment.