how do I acess the vertex color in shader langue from godot 3.0?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Wender Alves Libório
:warning: Old Version Published before Godot 3 was released.

there is few documentation on shaders and I wanted simple vertex color → albedo fragment shader

:bust_in_silhouette: Reply From: Wender Alves Libório

lol tried all combinations until get working

shader_type spatial;


void fragment(){
	ALBEDO = vec3(COLOR[0],COLOR[1],COLOR[2]);
}

there is simple example previewing 3.0 shader here in the final page Making shaders more accessible

an easy way to find names until full documentation is online is to convert a spatial material into shader material (drop down menu in the material).

eons | 2017-12-17 17:09