Some sampler fixes for odyssey
This commit is contained in:
parent
05516ed3df
commit
18120fa028
Binary file not shown.
@ -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
|
||||
{
|
||||
|
Binary file not shown.
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user