Minor fixes
This commit is contained in:
parent
b53d2a0560
commit
d4dfe97006
|
|
@ -19,7 +19,7 @@ struct Settings
|
|||
decay: f32,
|
||||
density: f32,
|
||||
weight: f32,
|
||||
lightPosition: vec2<f32>, //< Switch to world position
|
||||
lightPosition: vec2<f32>, //< TODO: Switch to world position
|
||||
}
|
||||
|
||||
const SampleCount: i32 = 200;
|
||||
|
|
|
|||
|
|
@ -51,10 +51,7 @@ fn main(input: VertIn) -> VertOut
|
|||
{
|
||||
// Set translation part to zero
|
||||
let rotationMat = viewerData.viewMatrix;
|
||||
// rotationMat[3].xyz = vec3<f32>(0.0, 0.0, 0.0); // Requires SPIRV generator to handle swizzle for store expressions
|
||||
rotationMat[3][0] = 0.0;
|
||||
rotationMat[3][1] = 0.0;
|
||||
rotationMat[3][2] = 0.0;
|
||||
rotationMat[3].xyz = vec3<f32>(0.0, 0.0, 0.0);
|
||||
|
||||
let output: VertOut;
|
||||
output.position = viewerData.projectionMatrix * rotationMat * vec4<f32>(input.position, 1.0);
|
||||
|
|
|
|||
|
|
@ -570,12 +570,14 @@ namespace Nz
|
|||
|
||||
case ImageType::E1D_Array:
|
||||
imageType.arrayed = true;
|
||||
[[fallthrough]];
|
||||
case ImageType::E1D:
|
||||
imageType.dim = SpirvDim::Dim1D;
|
||||
break;
|
||||
|
||||
case ImageType::E2D_Array:
|
||||
imageType.arrayed = true;
|
||||
[[fallthrough]];
|
||||
case ImageType::E2D:
|
||||
imageType.dim = SpirvDim::Dim2D;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,12 @@ package("qt5base")
|
|||
end)
|
||||
|
||||
on_install("windows", "linux", "macosx", "mingw", "android", "iphoneos", function (package)
|
||||
os.vrunv("python", {"-m", "ensurepip"})
|
||||
-- ensurepip is dropped in recent releases
|
||||
try
|
||||
{
|
||||
function () os.vrunv("python", {"-m", "ensurepip"}) end
|
||||
}
|
||||
|
||||
os.vrunv("python", {"-m", "pip", "install", "-U", "pip"})
|
||||
os.vrunv("python", {"-m", "pip", "install", "aqtinstall"})
|
||||
|
||||
|
|
|
|||
|
|
@ -229,10 +229,10 @@ rule("build_rendererplugins")
|
|||
on_load(function (target)
|
||||
local deps = table.wrap(target:get("deps"))
|
||||
|
||||
if target:kind() == "binary" and (table.find_first(deps, "NazaraRenderer") or table.find_first(deps, "NazaraGraphics")) then
|
||||
if target:kind() == "binary" and (table.contains(deps, "NazaraRenderer") or table.contains(deps, "NazaraGraphics")) then
|
||||
for name, _ in pairs(modules) do
|
||||
local depName = "Nazara" .. name
|
||||
if name:match("^.+Renderer$") and table.find_first(deps, depName) == nil then -- don't overwrite dependency
|
||||
if name:match("^.+Renderer$") and table.contains(deps, depName) == nil then -- don't overwrite dependency
|
||||
target:add("deps", depName, {inherit = false})
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue