summaryrefslogtreecommitdiff
path: root/workspaces/test/shaders/render/lighting_utils.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'workspaces/test/shaders/render/lighting_utils.wgsl')
-rw-r--r--workspaces/test/shaders/render/lighting_utils.wgsl6
1 files changed, 0 insertions, 6 deletions
diff --git a/workspaces/test/shaders/render/lighting_utils.wgsl b/workspaces/test/shaders/render/lighting_utils.wgsl
deleted file mode 100644
index d2fd2e2..0000000
--- a/workspaces/test/shaders/render/lighting_utils.wgsl
+++ /dev/null
@@ -1,6 +0,0 @@
-fn calculate_lighting(color: vec3<f32>, normal: vec3<f32>, pos: vec3<f32>, shadow: f32) -> vec3<f32> {
- let light_dir = normalize(vec3<f32>(1.0, 1.0, 1.0));
- let diffuse = max(dot(normal, light_dir), 0.0);
- let lighting = diffuse * (0.1 + 0.9 * shadow) + 0.1; // Ambient + Shadowed Diffuse
- return color * lighting;
-}