This commit is contained in:
2026-10-13 15:27:01 +08:00
parent 850d657404
commit c81571ec1e
28 changed files with 551 additions and 113 deletions
+17
View File
@@ -0,0 +1,17 @@
group_uniforms Reflections;
uniform float metallic : hint_range(0,1) = 0.0;
uniform float roughness : hint_range(0,1) = 1.0;
uniform sampler2D texture_surface : hint_default_white;
group_uniforms;
struct Surface {
float metallic;
float roughness;
};
Surface reflections_fragment(vec2 uv) {
return Surface(
metallic * texture(texture_surface, uv).r,
roughness * texture(texture_surface, uv).g
);
}