1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Some sampler fixes for odyssey

This commit is contained in:
KillzXGaming 2019-06-12 16:18:30 -04:00
parent 05516ed3df
commit 18120fa028
4 changed files with 10 additions and 9 deletions

Binary file not shown.

View File

@ -811,17 +811,23 @@ namespace FirstPlugin
texture.Type = MatTexture.TextureType.Diffuse;
}
}
if (useSampler == "_n0")
else if (TextureName.Contains("sss"))
{
texture.Type = MatTexture.TextureType.SubSurfaceScattering;
m.HasSubSurfaceScatteringMap = true;
}
else if (useSampler == "_n0")
{
m.HasNormalMap = true;
texture.Type = MatTexture.TextureType.Normal;
}
if (useSampler == "_e0")
else if (useSampler == "_e0")
{
m.HasEmissionMap = true;
texture.Type = MatTexture.TextureType.Emission;
}
if (TextureName.Contains("mtl"))
else if (TextureName.Contains("mtl"))
{
m.HasMetalnessMap = true;
texture.Type = MatTexture.TextureType.Metalness;
@ -831,12 +837,6 @@ namespace FirstPlugin
texture.Type = MatTexture.TextureType.Roughness;
m.HasRoughnessMap = true;
}
else if (TextureName.Contains("sss"))
{
texture.Type = MatTexture.TextureType.SubSurfaceScattering;
m.HasSubSurfaceScatteringMap = true;
}
}
else
{

View File

@ -103,6 +103,7 @@ uniform int HasShadowMap;
uniform int HasAmbientOcclusionMap;
uniform int HasLightMap;
uniform int HasTransparencyMap;
uniform int HasTransmissionMap;
uniform int HasEmissionMap;
uniform int HasDiffuseLayer;
uniform int HasMetalnessMap;