minor update - light ui tweak

This commit is contained in:
2025-01-23 20:55:55 +01:00
parent c355509870
commit d8851cc679
12 changed files with 66 additions and 21 deletions

View File

@@ -19,8 +19,7 @@ cbuffer SunLightBuffer
float4 ambientColor;
float4 diffuseColor;
float3 lightDirection;
float specularPower;
float4 specularColor;
float intensity;
};
//////////////
@@ -39,6 +38,7 @@ struct PixelInputType
float2 tex : TEXCOORD0;
float3 normal : NORMAL;
float3 lightDir : TEXCOORD1;
float intensity : TEXCOORD2;
};
////////////////////////////////////////////////////////////////////////////////
@@ -67,6 +67,8 @@ PixelInputType SunLightVertexShader(VertexInputType input)
// Use the light direction directly.
output.lightDir = normalize(lightDirection);
output.intensity = intensity;
return output;
}