Fixed remaining syntax errors in OSL files. node_sepcomb_rgb.osl is split into 2...
[blender.git] / intern / cycles / kernel / osl / nodes / node_wave_texture.osl
index 693f09ae24c6c036025643ef3e6bd27cb107beb1..83f55631f98c991a7b5ac767a4944d17052dbad6 100644 (file)
@@ -38,7 +38,7 @@ float wave(point p, float scale, string type, float detail, float distortion, fl
        }
        
        if(distortion != 0.0) {
-               n = n +(distortion * noise_turbulence(p*dscale, "Perlin", detail, 0));
+               n = n +(distortion * noise_turbulence(p*dscale, "Perlin", (int)detail, 0));
        }
        result = noise_wave("Sine", n);