remove scripts

This commit is contained in:
2021-02-25 22:43:28 +01:00
parent 8735f2d409
commit 45286b8178
5 changed files with 35 additions and 43 deletions

View File

@@ -1,2 +0,0 @@
for %%i in (*.frag) do glslangValidator -V %%i -o %%i.spv
for %%i in (*.vert) do glslangValidator -V %%i -o %%i.spv

View File

@@ -1,33 +0,0 @@
$compileHashFile = "compilehashes.xml"
if (Get-ChildItem -File $compileHashFile -ErrorAction SilentlyContinue) {
$hashes = Import-Clixml $compileHashFile
} else {
$hashes = @{}
}
function CompileShader($fileName) {
$spvFileName = "$fileName.spv"
$newHash = Get-FileHash -Path $fileName -Algorithm SHA1
$spvExists = $false
if (Get-ChildItem -File $spvFileName -ErrorAction SilentlyContinue) {
$spvExists = $true
}
if ($spvExists -and $hashes.ContainsKey($fileName) -and $hashes[$fileName] -eq $newHash.Hash) {
Write-Output "Skipping $fileName"
} else {
glslangValidator -V $fileName -o $spvFileName
$hashes.$fileName = $newHash.Hash
}
}
Get-ChildItem -Filter *.vert | ForEach-Object {
CompileShader $_.Name
}
Get-ChildItem -Filter *.frag | ForEach-Object {
CompileShader $_.Name
}
Export-Clixml -Path $compileHashFile -InputObject $hashes

View File

@@ -26,7 +26,7 @@ void main() {
normal_cam_u = normalize(tbn * normal_cam_u);
// vec3 light_direction_cam_u = normalize(ubo.light_position - position_wld);
vec3 light_direction_cam_u = normalize(vec3(sin(ubo.time), 1.0, cos(ubo.time)));
vec3 light_direction_cam_u = normalize(vec3(1.0, 1.0, 1.0));
float ambient_strength = 0.1;
vec3 light_color = vec3(1.0, 1.0, 1.0);

Binary file not shown.