material-maker/addons/procedural_material/material_preview.gd
RodZill4 4e0af78b31 Improved nodes and added texture export
Improved perlin noise and transform nodes.
Added an export texture menu entry that exports a texture for the selected node.
2018-07-26 00:08:34 +02:00

12 lines
259 B
GDScript

tool
extends Viewport
var material = null
func _ready():
material = ShaderMaterial.new()
material.shader = Shader.new()
$Objects/Cube.set_surface_material(0, material)
$Objects/Cylinder.set_surface_material(0, material)
$AnimationPlayer.play("rotate")