mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 12:25:27 +08:00
Deferred shading
This commit is contained in:
@@ -33,7 +33,7 @@ namespace CodeWalker.Rendering
|
||||
}
|
||||
}
|
||||
|
||||
public UnitCapsule(Device device, byte[] vsbytes, int detail)
|
||||
public UnitCapsule(Device device, byte[] vsbytes, int detail, bool invert = false)
|
||||
{
|
||||
|
||||
InputLayout = new InputLayout(device, vsbytes, new[]
|
||||
@@ -208,8 +208,8 @@ namespace CodeWalker.Rendering
|
||||
foreach (var tri in curtris)
|
||||
{
|
||||
idata.Add((uint)tri.v1);
|
||||
idata.Add((uint)tri.v2);
|
||||
idata.Add((uint)tri.v3);
|
||||
idata.Add((uint)(invert ? tri.v3 : tri.v2));
|
||||
idata.Add((uint)(invert ? tri.v2 : tri.v3));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user