mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 18:14:46 +08:00
Fixed capsule lights rendering
This commit is contained in:
@@ -56,7 +56,7 @@ VS_Output main(float4 ipos : POSITION, uint iid : SV_InstanceID)
|
||||
else if (InstType == 4)//capsule
|
||||
{
|
||||
float3 cpos = ipos.xyz * extent;
|
||||
cpos += InstCapsuleExtent * (ipos.w * 2 - 1) * 0.1;
|
||||
cpos.y += abs(InstCapsuleExtent.y) * (ipos.w - 0.5);
|
||||
opos = (cpos.x * InstTangentX.xyz) + (cpos.y * InstDirection.xyz) + (cpos.z * InstTangentY.xyz);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user