diff options
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_tex_magic.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_tex_magic.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_tex_magic.glsl index 942c507cc38..1dc5ff433a8 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_tex_magic.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_tex_magic.glsl @@ -1,7 +1,8 @@ void node_tex_magic( vec3 co, float scale, float distortion, float depth, out vec4 color, out float fac) { - vec3 p = co * scale; + vec3 p = mod(co * scale, 2.0 * M_PI); + float x = sin((p.x + p.y + p.z) * 5.0); float y = cos((-p.x + p.y - p.z) * 5.0); float z = -cos((-p.x - p.y + p.z) * 5.0); |