summaryrefslogtreecommitdiff
path: root/client/src/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/shaders')
-rw-r--r--client/src/shaders/fragment_pbr.wgsl2
-rw-r--r--client/src/shaders/texture_copy.wgsl15
2 files changed, 16 insertions, 1 deletions
diff --git a/client/src/shaders/fragment_pbr.wgsl b/client/src/shaders/fragment_pbr.wgsl
index 2908d6f..f3ed37e 100644
--- a/client/src/shaders/fragment_pbr.wgsl
+++ b/client/src/shaders/fragment_pbr.wgsl
@@ -48,7 +48,7 @@ fn main(vo: VertexOut) -> @location(0) vec4<f32> {
let color = t_albedo.rgb * lighting;
- // TODO better (and faster?) randomneess for alpha dither
+ // TODO better (and faster?) randomness for alpha dither
if fract(dot(sin(vo.clip * 123.) * 1213., vec4(3., 2., 1., 4.))) > alpha {
discard;
}
diff --git a/client/src/shaders/texture_copy.wgsl b/client/src/shaders/texture_copy.wgsl
index ff58f87..be38a76 100644
--- a/client/src/shaders/texture_copy.wgsl
+++ b/client/src/shaders/texture_copy.wgsl
@@ -1,3 +1,18 @@
+// wearechat - generic multiplayer game with voip
+// Copyright (C) 2025 metamuffin
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, version 3 of the License only.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
struct VertexOut {
@builtin(position) clip: vec4<f32>,
@location(0) texcoord: vec2<f32>,