mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
4e0af78b31
Improved perlin noise and transform nodes. Added an export texture menu entry that exports a texture for the selected node.
12 lines
259 B
GDScript
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")
|