mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-06-11 13:43:36 +08:00
Fixed casing issues with MetaNames which probably was causing XML issues. Moved shader param names to new ShaderParamNames enum to preserve casing. Moved meta type names to new MetaTypeName enum to avoid polluting MetaNames.
This commit is contained in:
@@ -76,7 +76,7 @@ namespace CodeWalker.Rendering
|
||||
public int RenderVertexColourIndex = 1;
|
||||
public int RenderTextureCoordIndex = 1;
|
||||
public int RenderTextureSamplerCoord = 1;
|
||||
public MetaName RenderTextureSampler = MetaName.DiffuseSampler;
|
||||
public ShaderParamNames RenderTextureSampler = ShaderParamNames.DiffuseSampler;
|
||||
|
||||
|
||||
private Dictionary<VertexType, InputLayout> layouts = new Dictionary<VertexType, InputLayout>();
|
||||
@@ -230,7 +230,7 @@ namespace CodeWalker.Rendering
|
||||
var ihash = geom.TextureParamHashes[i];
|
||||
switch (ihash)
|
||||
{
|
||||
case MetaName.DiffuseSampler:
|
||||
case ShaderParamNames.DiffuseSampler:
|
||||
texture = itex;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user