Advertisement
Pixezy

funcs_hologram

Nov 2nd, 2024
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float random(float x){
  2.     return fract(sin(x * 12.9898 + 78.233) * 43758.5453);
  3. }
  4. float random2_1 (vec2 uv) {
  5.     return fract(sin(dot(uv.xy + vec2(sin(TIME), cos(TIME)),
  6.                       vec2(12.9898,78.233))) * 43758.5453123);
  7. }
  8. float fresnel(float amount, vec3 normal, vec3 view){
  9.     return pow((1.0 - clamp(dot(normalize(normal), normalize(view)), 0.0, 1.0 )), amount);
  10. }
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement