mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Fixed most vulkan validation layers
This commit is contained in:
@@ -80,12 +80,13 @@ struct CameraView {
|
||||
[[vk::binding(0, 6)]]
|
||||
StructuredBuffer<CameraView> cameras;
|
||||
|
||||
struct PSInput {
|
||||
struct PSInput
|
||||
{
|
||||
float4 Position : SV_Position;
|
||||
float3 Color : TEXCOORD0;
|
||||
float2 UV : TEXCOORD1;
|
||||
float3 Normal : TEXCOORD2;
|
||||
float3x3 TBN : TEXCOORD3;
|
||||
//float3x3 TBN : TEXCOORD3;
|
||||
};
|
||||
|
||||
struct PSOutput {
|
||||
@@ -118,7 +119,7 @@ PSOutput main(PSInput input)
|
||||
{
|
||||
// Sample from texture.
|
||||
}
|
||||
normal = mul(input.TBN, normal);
|
||||
//normal = mul(input.TBN, normal);
|
||||
normal = input.Normal / 2.0f + 0.5f;
|
||||
output.oNormal = float4(normal, 1.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user