Contents |
NoiseTexture implements Perlin noise for both color and normal perturbation -bump-.
NoiseTexture has 2 textures as dependencies, color_1 and color_2.
NoiseTexture is accesible by the Blocks Tree, and it's GUI is also implemented in MaterialsGUI.
The SceneEngine factory NoiseTexture creates a new NoiseTexture that can be linked to a material:
-- Create the NoiseTexture noise_texture = sceng.NoiseTexture( { size=3.0, color_1=gmt.Color(1,0,0) } ) noise_texture:Set( "color_2", gmt.Color(0,1,1) ) -- Create the ShaderMaterial shader_material = sceng.ShaderMaterial( { diffuse_color=gmt.Color(0.5,0.5,0.5), diffuse_texture=noise_texture } )
NoiseTexture is implemented in the ScEngMaterials project, and is part of SceneEngine's core libraries.
Experiment with a noise library like Noise++ or libnoise.
Implement fractal noise and turbulence.