mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 14:43:34 +00:00
adding noise generator base class
This commit is contained in:
@@ -39,7 +39,7 @@ fn main(input: VertOut) -> FragOut
|
||||
const ambient = vec3[f32](0.1, 0.1, 0.1);
|
||||
const directional_color = vec3[f32](5.0, 5.0, 5.0);
|
||||
const specular_strength = 0.5;
|
||||
let directional_vector = normalize(vec3[f32](0.85, 0.8, 0.75));
|
||||
let directional_vector = normalize(vec3[f32](1.0, 0.8, 0.75));
|
||||
|
||||
let directional: f32 = max(dot(input.transformed_norm.xyz, directional_vector), 0.0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user