minor update - light ui tweak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user