Last active
June 27, 2017 17:18
-
-
Save yorung/04a70f36c09c59268da055ce5ae99779 to your computer and use it in GitHub Desktop.
[HLSL] Variables will not initialized.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float3 lightPosition = { 100, 0, 1000 }; // This makes an implicit constant buffer, but the light position never assigned! | |
float3 CalcLightDir(float3 myPosition) | |
{ | |
return normalize(lightPosition - myPosition); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment