mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Simplify normal
This commit is contained in:
parent
317e320f44
commit
979c82c129
@ -13,14 +13,14 @@ struct VertexInput {
|
||||
|
||||
struct VertexOutput {
|
||||
@builtin(position) position: vec4<f32>,
|
||||
@location(0) normal: vec4<f32>,
|
||||
@location(0) normal: vec3<f32>,
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex(in: VertexInput) -> VertexOutput {
|
||||
var out: VertexOutput;
|
||||
out.position = uniforms.transform * vec4(in.position, 1.0);
|
||||
out.normal = uniforms.transform_for_normals * vec4(in.normal, 0.0);
|
||||
out.normal = (uniforms.transform_for_normals * vec4(in.normal, 0.0)).xyz;
|
||||
|
||||
return out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user