saving
This commit is contained in:
parent
9b67689543
commit
742c8149f3
|
|
@ -57,7 +57,8 @@ Output main(Input input)
|
|||
float4 WorldPos = mul(scene[input.Instance].Model, pos);
|
||||
output.Position = mul(ViewProjection, mul(scene[input.Instance].Model, pos));
|
||||
output.WorldPos = WorldPos.xyz;
|
||||
output.Normal = mul(scene[input.Instance].Model, float4(input.Normal, 1.0)).xyz;
|
||||
// output.Normal = mul(scene[input.Instance].Model, float4(input.Normal, 1.0)).xyz;
|
||||
output.Normal = input.Normal;
|
||||
output.DirectionalShadowFragPos = mul(ShadowMapProjection, WorldPos);
|
||||
output.Instance = input.Instance;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ const dependencyList = [_][]const u8{
|
|||
"platform",
|
||||
"rend",
|
||||
"papyrus",
|
||||
"shaderTypes",
|
||||
"sdl3",
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
.papyrus = .{ .path = "../papyrus" },
|
||||
.rend = .{ .path = "../rend" },
|
||||
.sdl3 = .{ .path = "../../lib/sdl3" },
|
||||
.shaderTypes = .{ .path = "../../lib/sdl3/shaderTypes" },
|
||||
},
|
||||
.paths = .{
|
||||
"",
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -48,7 +48,7 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_Uniforms& Uniform
|
|||
float4 _51 = scene._m0[gl_InstanceIndex].Model * _48;
|
||||
out.out_var_TEXCOORD0 = in.in_var_TEXCOORD3;
|
||||
out.out_var_TEXCOORD1 = _51.xyz;
|
||||
out.out_var_TEXCOORD2 = (scene._m0[gl_InstanceIndex].Model * float4(in.in_var_TEXCOORD1, 1.0)).xyz;
|
||||
out.out_var_TEXCOORD2 = in.in_var_TEXCOORD1;
|
||||
out.out_var_TEXCOORD3 = Uniforms.ShadowMapProjection * _51;
|
||||
out.out_var_TEXCOORD4 = gl_InstanceIndex;
|
||||
out.gl_Position = Uniforms.ViewProjection * (scene._m0[gl_InstanceIndex].Model * _48);
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -83,7 +83,6 @@ def cookList(inputFiles):
|
|||
outdir = os.path.join(cookedRoot, fmt[0])
|
||||
for f in inputFiles:
|
||||
basefile = f[:-5]
|
||||
if 'vert' not in basefile and ''
|
||||
|
||||
outfile = os.path.abspath(os.path.join(outdir, os.path.basename(basefile) + '.' + fmt[0] ))
|
||||
os.makedirs(os.path.dirname(outfile), exist_ok=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue