Pass roughness & metalness factors to shader

This commit is contained in:
Lauri Räsänen 2023-11-11 17:31:04 +02:00
parent 8b99a617f4
commit f9798743b8
4 changed files with 50 additions and 10 deletions

View file

@ -27,6 +27,13 @@ struct GlobalUniforms {
@group(0) @binding(2)
var<uniform> global_uniforms: GlobalUniforms;
struct MaterialUniform {
metallic_factor: f32,
rougness_factor: f32,
_padding1: f32,
_padding2: f32,
}
struct VertexInput {
@location(0) position: vec3<f32>,
@location(1) tex_coords: vec2<f32>,